This API creates a autoscale.an HPA.
Description
This API creates an HPA.
...
Input
Code Block |
---|
Type: application/json |
Param | Source | Type | Required | Description |
---|---|---|---|---|
configuration | body | object | yes |
|
item | body | object | yes |
|
env | body.item | string | yes | |
name | body.item | string | yes | |
version | body.item | string | yes | |
replica | body | object | yes |
|
min | body.replica | integer | yes |
|
max | body.replica | integer | yes |
|
metrics | body | array of objects | yes | conditional |
body.metrics
Conditional anyOf the following objects:
["type", "name", "target", "percentage"]
["type", "name", "target", "value"]
["type", "name", "target", "value"]
Param | Source | Type | Required | Description | ||
---|---|---|---|---|---|---|
type | body.metrics | enum | Yes | | ||
name | body.metrics | enum | Yes | | ||
taget | body.metrics | enum | Yes |
| ||
percentage | body.metrics | integer | Yes |
|
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.metrics | enum | Yes | |
name | body.metrics | enum | Yes | |
taget | body.metrics | enum | Yes | |
value | body.metrics | string | Yes |
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.metrics | enum | Yes | |
name | body.metrics | enum | Yes | |
taget | body.metrics | enum | Yes | |
value | body.metrics | string | Yes |