ScaleAction Class

The parameters for the scaling action.

All required parameters must be populated in order to send to server.

Constructor

ScaleAction(*, direction: str | _models.ScaleDirection, type: str | _models.ScaleType, cooldown: timedelta, value: str = '1', **kwargs: Any)

Keyword-Only Parameters

Name Description
direction

the scale direction. Whether the scaling action increases or decreases the number of instances. Required. Known values are: "None", "Increase", and "Decrease".

type

the type of action that should occur when the scale rule fires. Required. Known values are: "ChangeCount", "PercentChangeCount", "ExactCount", and "ServiceAllowedNextValue".

value
str

the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.

Default value: 1
cooldown

the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. Required.

Variables

Name Description
direction

the scale direction. Whether the scaling action increases or decreases the number of instances. Required. Known values are: "None", "Increase", and "Decrease".

type

the type of action that should occur when the scale rule fires. Required. Known values are: "ChangeCount", "PercentChangeCount", "ExactCount", and "ServiceAllowedNextValue".

value
str

the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.

cooldown

the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. Required.