| object | | |
RequestId | string | | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
PageNumber | integer | The page number of the returned page. | 1 |
PageSize | integer | The number of entries returned per page. | 50 |
TotalCount | integer | The total number of scaling rules. | 1 |
ScalingRules | array<object> | | |
| object | | |
MetricName | string | The name of the metric of the event-triggered task that is associated with the scaling rule. | CpuUtilization |
AdjustmentType | string | The adjustment method of the scaling rule. Valid values:
- QuantityChangeInCapacity: adds or removes the specified number of Elastic Compute Service (ECS) instances to or from the scaling group.
- PercentChangeInCapacity: adds or removes the specified percentage of ECS instances to or from the scaling group.
- TotalCapacity: adjusts the number of ECS instances in the scaling group to the specified number.
| QuantityChangeInCapacity |
InitialMaxSize | integer | The maximum number of ECS instances that can be contained in the scaling group. If you specify this parameter, you must also specify PredictiveValueBehavior. | 100 |
EstimatedInstanceWarmup | integer | The warm-up period of instances. During the warm-up period, a series of preparation measures are taken for the new instances. Performance metrics of instances being warmed up are not counted towards the monitoring range. | 300 |
ScaleOutEvaluationCount | integer | The number of consecutive times that the event-triggered task created for scale-out purposes must meet the threshold conditions before an alert is triggered. After a target tracking scaling rule is created, an event-triggered task is automatically created and associated with the target tracking scaling rule. | 3 |
PredictiveScalingMode | string | The mode of the predictive scaling rule. Valid values:
- PredictAndScale: provides predictions and creates prediction tasks.
- PredictOnly: provides predictions but does not create prediction tasks.
| PredictAndScale |
MinAdjustmentMagnitude | integer | The minimum number of instances that must be scaled. This parameter takes effect only if you set ScalingRuleType to SimpleScalingRule or StepScalingRule and set AdjustmentType to PercentChangeInCapacity. | 1 |
ScalingRuleAri | string | The unique identifier of the scaling rule. | ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7**** |
PredictiveTaskBufferTime | integer | The amount of buffer time before prediction tasks are executed. By default, all prediction tasks that are automatically created based on a predictive scaling rule are executed on the hour. You can specify a buffer time for resource preparation before prediction tasks are executed. Valid values: 0 to 60. Unit: minutes. | 30 |
MinSize | integer | The minimum number of ECS instances that must be contained in the scaling group. | 1 |
ScalingGroupId | string | The ID of the scaling group. | asg-bp1ffogfdauy0jw0**** |
PredictiveValueBehavior | string | The action on the predicted maximum value. Valid values:
- MaxOverridePredictiveValue: uses the initial maximum capacity as the maximum value for prediction tasks if the predicted value is greater than the initial maximum capacity.
- PredictiveValueOverrideMax: uses the predicted value as the maximum value for prediction tasks when the predicted value is greater than the initial maximum capacity.
- PredictiveValueOverrideMaxWithBuffer: increases the predicted value by a ratio that is specified by PredictiveValueBuffer, and uses the increased value as the maximum value for prediction tasks if the predicted value increased by this ratio is greater than the initial maximum capacity.
| MaxOverridePredictiveValue |
TargetValue | float | The target value of the metric. If you set ScalingRuleType to TargetTrackingScalingRule or PredictiveScalingRule, Auto Scaling keeps the metric value close to the target value by adding instances to or removing instances from the scaling group. | 0.125 |
Cooldown | integer | The cooldown period of the scaling rule. This parameter is available only if you set ScalingRuleType to SimpleScalingRule. Valid values: 0 to 86400. Unit: seconds. | 20 |
MaxSize | integer | The maximum number of ECS instances that can be contained in the scaling group. | 2 |
PredictiveValueBuffer | integer | The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. If the predicted value increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks. Valid values: 0 to 100. | 50 |
ScalingRuleType | string | The type of the scaling rule. Valid values:
- SimpleScalingRule: a simple scaling rule. Once a simple scaling rule is executed, Auto Scaling adjusts the number of ECS instances in the scaling group based on the values of AdjustmentType and AdjustmentValue.
- TargetTrackingScalingRule: a target tracking scaling rule. Once a target tracking scaling rule is executed, Auto Scaling dynamically calculates the number of ECS instances or elastic container instances to scale based on the predefined metric (MetricName) and attempts to maintain the metric value close to the specified target value (TargetValue).
- StepScalingRule: a step scaling rule. Once a step scaling rule is executed, Auto Scaling scales instances step by step based on the predefined thresholds and metric values.
- PredictiveScalingRule: a predictive scaling rule. Once a predictive scaling rule is executed, Auto Scaling analyzes the historical monitoring data based on the machine learning technology and predicts the trends of metric data. Auto Scaling also creates scheduled tasks to enable dynamic adjustment of the boundary values for the scaling group.
| SimpleScalingRule |
AdjustmentValue | integer | The number of instances that must be scaled based on the scaling rule. | 1 |
ScaleInEvaluationCount | integer | The number of consecutive times that the event-triggered task for scale-in purposes must meet the threshold conditions before an alert is triggered. After a target tracking scaling rule is created, an event-triggered task is automatically created and associated with the target tracking scaling rule. | 15 |
DisableScaleIn | boolean | Indicates whether scale-in is disabled. This parameter takes effect only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values:
| true |
ScalingRuleName | string | The name of the scaling rule. | scalingrule**** |
ScalingRuleId | string | The ID of the scaling rule. | asr-bp1dvirgwkoowxk7**** |
Alarms | array<object> | The event-triggered tasks that are associated with the scaling rule. The value of this parameter is returned only if you set ShowAlarmRules to true. Otherwise, null is returned. | |
| object | The event-triggered tasks that are associated with the scaling rule. Event-triggered tasks that are associated with the scaling rule are returned only if you set the ShowAlarmRules parameter to true. Otherwise, an empty list is returned. | |
AlarmTaskId | string | The ID of the event-triggered task that is associated with the scaling rule. | asg-bp18p2yfxow2dloq****_1f9458d1-70e1-4bee-8c7f-7a47695b**** |
ComparisonOperator | string | The comparison operator between the statistical value and the threshold of the metric of the event-triggered task that is associated with the scaling rule. The comparison operator indicates the relationship in which the metric value and the metric threshold can meet the alert condition.
- Valid value if the metric value is greater than or equal to the threshold: >=
- Valid value if the metric value is less than or equal to the threshold: <=
- Valid value if the metric value is greater than the threshold: >
- Valid value if the metric value is less than the threshold: <
| >= |
MetricName | string | The name of the metric of the event-triggered task that is associated with the scaling rule. | CpuUtilization |
EvaluationCount | integer | The number of consecutive times when the event-triggered task that is associated with the scaling rule must meet the alert condition before an alert is triggered. | 3 |
AlarmTaskName | string | The name of the event-triggered task that is associated with the scaling rule. | alarmtask**** |
MetricType | string | The type of the metric of the event-triggered task that is associated with the scaling rule. Valid values:
- system: system metrics
- custom: custom metrics
| system |
Threshold | float | The alert threshold of the event-triggered task that is associated with the scaling rule. | 50 |
Statistics | string | The statistical method of the event-triggered task that is associated with the scaling rule. Valid values:
| Average |
Dimensions | array<object> | The dimensions of the event-triggered task that is associated with the scaling rule. | |
| object | The dimensions of the event-triggered task that is associated with the scaling rule. | |
DimensionKey | string | The key of the dimension that is associated with the metric. Valid values:
- ScalingGroupId: the ID of the scaling group.
- userId: the ID of the user account.
| scaling_group |
DimensionValue | string | The value of the dimension that is associated with the metric. | asg-bp18p2yfxow2dloq**** |
StepAdjustments | array<object> | The step adjustments of the step scaling rule. | |
| object | The step adjustments of the step scaling rule. | |
MetricIntervalUpperBound | float | The upper limit of a step adjustment. Valid values: -9.999999E18 to 9.999999E18. | 5.0 |
ScalingAdjustment | integer | The number of ECS instances that are scaled in a step adjustment. | 1 |
MetricIntervalLowerBound | float | The lower limit of a step adjustment. Valid values: -9.999999E18 to 9.999999E18. | 1.0 |
AlarmDimensions | array<object> | The dimensions. This parameter is applicable to target tracking scaling rules. You can specify this parameter if your predefined metric requires extra dimensions. For example, if you predefine the LoadBalancerRealServerAverageQps metric, you must use this parameter to specify the rulePool dimension. | |
| object | | |
DimensionKey | string | The dimension key of the metric. | rulePool |
DimensionValue | string | The dimension value of the metric. | sgp-l1cbirz451yxu2dxxx |