diff --git a/api/services/ocean/rightsizing/responses/oceanRightsizingRecommendationsResponse.yaml b/api/services/ocean/rightsizing/responses/oceanRightsizingRecommendationsResponse.yaml index 075c2102..491e5fdc 100644 --- a/api/services/ocean/rightsizing/responses/oceanRightsizingRecommendationsResponse.yaml +++ b/api/services/ocean/rightsizing/responses/oceanRightsizingRecommendationsResponse.yaml @@ -22,56 +22,51 @@ content: $ref: "../schemas/oceanRightsizingRecommendation.yaml" example: - namespace: "kube-system" - workloadName: "redis-controller" - workloadType: "deployment" - requestedCPU: 50 - suggestedCPU: 4 - requestedMemory: 50 - suggestedMemory: 19 - monthlyMaxSavings": 17.312044994154263 + workloadName: "ebs-csi-controller" + workloadType: "Deployment" + requestedCPU: 0.84 + suggestedCPU: 60.0 + requestedMemory: 900.0 + suggestedMemory: 192.0 + monthlyMaxSavings: null ruleName: "attachedRule" - optimizationStatus: "PARTLY_OPTIMIZED" + hpa: null + optimizationStatus: "limited" reasonsForPartialOptimized: - - "Threshold did not allow us to apply the recommendation" - - "The ranges of the rule prevent the apply of the recommendations" - - "Recommendation did not perform due to preliminary exclusion" + - "restart_policy" + - "boundaries" containers: - - name: "dnsmasq" - requestedCPU: 10 - suggestedCPU: 2 - requestedMemory: 40 - suggestedMemory: 15 + - name: "csi-snapshotter" + requestedCPU: 140.0 + suggestedCPU: 0.01 + requestedMemory: 150.0 + suggestedMemory: 32.0 preliminary: false - - name: "sidecar" - requestedCPU: 40 - suggestedCPU: 2 - requestedMemory: 10 - suggestedMemory: 4 - preliminary: true - - namespace: "sparkSpace" - workloadName: "test-redis" - workloadType: "deployment" - requestedCPU: 50 - suggestedCPU: 2 - requestedMemory: 30 - suggestedMemory: 20 - monthlyMaxSavings: 28.258386736965104 - ruleName: null - optimizationStatus: "NOT_OPTIMIZED" - containers: - - name: "dns-controller" - requestedCPU: 20 - suggestedCPU: 1 - requestedMemory: 20 - suggestedMemory: 15 + reasonsForPartialOptimized: + - "boundaries" + idealVsAppliedRecommendationValues: + overhead: null + boundaries: + idealRecommendedCpu: 10 + idealRecommendedMemory: 32 + appliedRecommendedCpu: 140 + appliedRecommendedMemory: 150 + - name: "csi-resizer" + requestedCPU: 140.0 + suggestedCPU: 0.01 + requestedMemory: 150.0 + suggestedMemory: 32.0 preliminary: false - - name: "kubedns" - requestedCPU: 30 - suggestedCPU: 1 - requestedMemory: 10 - suggestedMemory: 5 - preliminary: true + reasonsForPartialOptimized: + - "boundaries" + idealVsAppliedRecommendationValues: + overhead: null + boundaries: + idealRecommendedCpu: 10 + idealRecommendedMemory: 32 + appliedRecommendedCpu: 140 + appliedRecommendedMemory: 150 count: - example: 2 + example: 1 kind: example: "mcs:ocean:rightSizing:recommendations" \ No newline at end of file diff --git a/api/services/ocean/rightsizing/schemas/oceanRightsizingRecommendation.yaml b/api/services/ocean/rightsizing/schemas/oceanRightsizingRecommendation.yaml index dd488600..379c4f92 100644 --- a/api/services/ocean/rightsizing/schemas/oceanRightsizingRecommendation.yaml +++ b/api/services/ocean/rightsizing/schemas/oceanRightsizingRecommendation.yaml @@ -61,4 +61,17 @@ properties: description: The requested memory preliminary: type: boolean - description: The recommendation is preliminary \ No newline at end of file + description: The recommendation is preliminary + optimizationStatus: + type: string + description: The optimization status of the workload + reasonsForPartialOptimized: + type: array + description: The reasons for the partly optimized status + items: + type: string + idealVsAppliedRecommendationValues: + type: array + description: The ideal vs applied recommendation values + items: + type: object