Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
post:
summary: "Set Cluster Recommendations Percentile"
summary: "Set Rightsizing Cluster configuration"
description: |
Set Recommendations Percentile for the Ocean Cluster.
Set Cluster Configuration for the Ocean Cluster.
<br />
<br />
**This action can take a few minutes to complete.**
operationId: "SetClusterRecommendationsPercentile"
operationId: "SetClusterConfiguration"
tags:
- "Ocean Automatic Rightsizing"
parameters:
Expand All @@ -21,7 +21,28 @@ post:
- $ref: "../schemas/oceanRightsizingSetClusterRecommendationsPercentileRequest.yaml"
responses:
200:
description: Ocean Cluster Recommendations Percentile Response
description: Ocean Cluster configuration Response
$ref: "../responses/oceanRightsizingClusterConfigurationCreateResponse.yaml"
400:
description: "Bad Request"

get:
summary: "Get Rightsizing Cluster configuration"
description: |
Get Cluster Configuration for the Ocean Cluster.
<br />
<br />
**This action can take a few minutes to complete.**
operationId: "GetClusterConfiguration"
tags:
- "Ocean Automatic Rightsizing"
parameters:
- $ref: "../parameters/oceanId.yaml"
- $ref: "../parameters/clusterIdentifier.yaml"
- $ref: "../../../../commons/parameters/accountId.yaml"
responses:
200:
description: Ocean Cluster configuration Response
$ref: "../responses/oceanRightsizingClusterConfigurationResponse.yaml"
400:
description: "Bad Request"
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
description: Ocean Rightsizing Cluster Configuration Response
content:
application/json:
schema:
allOf:
- $ref: "../../../../commons/schemas/responseItemWrapper.yaml"
- type: object
properties:
request:
type: object
properties:
url:
example: "/ocean/{oceanId}/rightSizing/cluster/configuration"
method:
example: "POST"
response:
type: object
properties:
items:
type: array
items:
type: object
properties:
oceanId:
type: string
example: "o-abcd1234"
clusterIdentifier:
type: string
example: "dev-cluster"
config:
type: object
properties:
recommendationsCpuPercentile:
type: integer
example: 85
recommendationsMemoryPercentile:
type: integer
example: 85
downsideOnly:
type: boolean
example: false
adjustLimitOnDownsize:
type: boolean
example: true
kind:
example: "mcs:ocean:rightSizing:clusterConfiguration"
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ content:
url:
example: "/ocean/{oceanId}/rightSizing/cluster/configuration"
method:
example: "POST"
example: "GET"
response:
type: object
properties:
Expand All @@ -39,5 +39,8 @@ content:
downsideOnly:
type: boolean
example: false
adjustLimitOnDownsize:
type: boolean
example: true
kind:
example: "mcs:ocean:rightSizing:clusterConfiguration"
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ properties:
downsideOnly:
type: boolean
description: When set to 'true', only downscale recommendations will be applied.
example: false
default: false
adjustLimitOnDownsize:
type: boolean
description: When set to 'true', the limit will be adjusted when downscale recommendations are applied.
example: true
default: false
Loading