From 4da297148113b9447e9f6727e15a3c5c11ddc886 Mon Sep 17 00:00:00 2001 From: rdombarabahallirenukamurthy Date: Fri, 24 Jul 2026 11:42:02 +0530 Subject: [PATCH] SOD-7881 Update openApi spec to set, get and update recommendation baseline percentile in OceanRightSizingRule --- .../ocean/rightsizing/responses/oceanRightsizingRule.yaml | 8 ++++++++ .../rightsizing/schemas/oceanRightsizingRuleRequest.yaml | 8 ++++++++ .../schemas/oceanRightsizingUpdateRuleRequest.yaml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/api/services/ocean/rightsizing/responses/oceanRightsizingRule.yaml b/api/services/ocean/rightsizing/responses/oceanRightsizingRule.yaml index b2d85df76..cacbd7993 100644 --- a/api/services/ocean/rightsizing/responses/oceanRightsizingRule.yaml +++ b/api/services/ocean/rightsizing/responses/oceanRightsizingRule.yaml @@ -37,6 +37,14 @@ properties: $ref: "../schemas/oceanRightsizingRuleRecommendationApplicationHPA.yaml" autoApplyDefinition: $ref: "../schemas/oceanRightsizingRuleAutoApplyDefinition.yaml" + cpuPercentile: + type: integer + description: vCPU percentile for calculating recommendations. + example: 95 + memoryPercentile: + type: integer + description: Memory percentile for calculating recommendations. + example: 90 downsideOnly: type: boolean description: When set to 'true', only downscale recommendations will be applied. diff --git a/api/services/ocean/rightsizing/schemas/oceanRightsizingRuleRequest.yaml b/api/services/ocean/rightsizing/schemas/oceanRightsizingRuleRequest.yaml index 3c2f3de0e..27411ed6b 100644 --- a/api/services/ocean/rightsizing/schemas/oceanRightsizingRuleRequest.yaml +++ b/api/services/ocean/rightsizing/schemas/oceanRightsizingRuleRequest.yaml @@ -37,6 +37,14 @@ properties: $ref: "../schemas/oceanRightsizingRuleRecommendationApplicationHPA.yaml" autoApplyDefinition: $ref: "../schemas/oceanRightsizingRuleAutoApplyDefinition.yaml" + cpuPercentile: + type: integer + description: vCPU percentile for calculating recommendations. + example: 95 + memoryPercentile: + type: integer + description: Memory percentile for calculating recommendations. + example: 90 downsideOnly: type: boolean description: When set to 'true', only downscale recommendations will be applied. diff --git a/api/services/ocean/rightsizing/schemas/oceanRightsizingUpdateRuleRequest.yaml b/api/services/ocean/rightsizing/schemas/oceanRightsizingUpdateRuleRequest.yaml index fd1864212..5d2b6986a 100644 --- a/api/services/ocean/rightsizing/schemas/oceanRightsizingUpdateRuleRequest.yaml +++ b/api/services/ocean/rightsizing/schemas/oceanRightsizingUpdateRuleRequest.yaml @@ -33,6 +33,14 @@ properties: $ref: "../schemas/oceanRightsizingRuleRecommendationApplicationHPA.yaml" autoApplyDefinition: $ref: "../schemas/oceanRightsizingRuleAutoApplyDefinition.yaml" + cpuPercentile: + type: integer + description: vCPU percentile for calculating recommendations. + example: 95 + memoryPercentile: + type: integer + description: Memory percentile for calculating recommendations. + example: 90 downsideOnly: type: boolean description: When set to 'true', only downscale recommendations will be applied.