latestOpenAPI 3.0.02026-08-2045003.8 MB
72813baf8d47
Ocean Automatic Rightsizing
Create Ocean Rightsizing Rule
post/ocean/{oceanId}/rightSizing/rule
Parameters
#/paths/~1ocean~1%7BoceanId%7D~1rightSizing~1rule/get/parameters/0 — unresolved $ref
#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref
Request body
Example request
{
"ruleName": "dev-rule",
"restartReplicas": "ALL_MANIFEST",
"recommendationApplicationIntervals": [
{
"repetitionBasis": "WEEKLY",
"weeklyRepetitionBasis": {
"intervalDays": [
"MONDAY",
"WEDNESDAY"
],
"intervalHours": {
"startTime": "12:00",
"endTime": "14:00"
}
}
},
{
"repetitionBasis": "MONTHLY",
"monthlyRepetitionBasis": {
"intervalMonths": [
2,
4,
6
],
"weekOfTheMonth": [
"FIRST",
"LAST"
],
"weeklyRepetitionBasis": {
"intervalDays": [
"MONDAY"
],
"intervalHours": {
"startTime": "03:00",
"endTime": "04:00"
}
}
}
}
],
"recommendationApplicationMinThreshold": {
"cpuPercentage": 0.412,
"memoryPercentage": 0.36
},
"recommendationApplicationBoundaries": {
"cpu": {
"max": 100
},
"memory": {
"min": 1,
"max": 80
}
},
"recommendationApplicationOverheadValues": {
"cpuPercentage": 0.8,
"memoryPercentage": 0.5
},
"recommendationApplicationHPA": {
"allowHPARecommendations": true
},
"autoApplyDefinition": {
"enabled": true,
"namespaces": [
"namespace1",
"namespace2",
"namespace3"
],
"labels": {
"app": "my-app",
"environment": "production"
}
},
"cpuPercentile": 95,
"memoryPercentile": 90
}