Description
This API creates an HPA.
Input
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.name | enum | Yes | |
name | body.name | enum | Yes | |
taget | body.name.item | enum | Yes |
|
percentage | body.name.item | integer | Yes | "minimum": 1, "maximum": 100 |
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.name | enum | Yes | |
name | body.name | enum | Yes | |
taget | body.name.item | enum | Yes | |
value | body.name.item | string | Yes |
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.name | enum | Yes | |
name | body.name | enum | Yes | |
taget | body.name.item | enum | Yes | |
value | body.name.item | string | Yes |
Add Comment