as — Auto Scaling
as · type
ScalingPolicy
14 fields
| Field | Type | Description |
|---|---|---|
| AutoScalingGroupId | string | Auto scaling group ID. |
| AutoScalingPolicyId | string | Alarm trigger policy ID. |
| ScalingPolicyType | string | Scaling policy type. Valid values: |
| ScalingPolicyName | string | Alarm trigger policy name. |
| AdjustmentType | string | The method to adjust the desired capacity after the alarm is triggered. It’s only available when `ScalingPolicyType` is `Simple`. Valid values: `CHANGE_IN_CAPACITY`: Increase or decrease the desired capacity `EXACT_CAPACITY`: Adjust to the specified desired capacity `PERCENT_CHANGE_IN_CAPACITY`: Adjust the desired capacity by percentage |
| AdjustmentValue | integer | The adjusted value of desired capacity after the alarm is triggered. This parameter is only applicable to a simple policy. |
| Cooldown | integer | Cooldown duration in seconds, applies only to simple policies. value range [0,3600]. default cooldown: 300 seconds. |
| MetricAlarm | MetricAlarm | Alarm monitoring metrics of a simple policy. |
| PredefinedMetricType | string | Preset monitoring item. It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Valid values: ASG_AVG_CPU_UTILIZATION: Average CPU utilization ASG_AVG_LAN_TRAFFIC_OUT: Average private bandwidth out ASG_AVG_LAN_TRAFFIC_IN: Average private bandwidth in ASG_AVG_WAN_TRAFFIC_OUT: Average public bandwidth out ASG_AVG_WAN_TRAFFIC_IN: Average public bandwidth in |
| TargetValue | integer | Target value. It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Value ranges: `ASG_AVG_CPU_UTILIZATION` (in %): [1, 100) `ASG_AVG_LAN_TRAFFIC_OUT` (in Mbps): >0 `ASG_AVG_LAN_TRAFFIC_IN` (in Mbps): >0 `ASG_AVG_WAN_TRAFFIC_OUT` (in Mbps): >0 `ASG_AVG_WAN_TRAFFIC_IN` (in Mbps): >0 |
| EstimatedInstanceWarmup | integer | Instance warm-up period (in seconds). It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Value range: 0-3600. |
| DisableScaleIn | boolean | Whether to disable scale-in. It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Valid values: `true`: Scaling in is not allowed. `false`: Allows both scale-out and scale-in |
| MetricAlarms | MetricAlarm[] | List of alarm monitoring metrics. This parameter is only applicable to a target tracking policy. |
| NotificationUserGroupIds | string[] | Notification group ID, which is the set of user group IDs. |
