public class ScalingPolicy extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ScalingPolicy() | 
| ScalingPolicy(ScalingPolicy source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAdjustmentType()Get The method to adjust the desired capacity after the alarm is triggered. | 
| Long | getAdjustmentValue()Get The adjusted value of desired capacity after the alarm is triggered. | 
| String | getAutoScalingGroupId()Get Auto scaling group ID. | 
| String | getAutoScalingPolicyId()Get Alarm trigger policy ID. | 
| Long | getCooldown()Get Cooldown duration in seconds, applies only to simple policies. | 
| Boolean | getDisableScaleIn()Get Whether to disable scale-in. | 
| Long | getEstimatedInstanceWarmup()Get Instance warm-up period (in seconds). | 
| MetricAlarm | getMetricAlarm()Get Alarm monitoring metrics of a simple policy. | 
| MetricAlarm[] | getMetricAlarms()Get List of alarm monitoring metrics. | 
| String[] | getNotificationUserGroupIds()Get Notification group ID, which is the set of user group IDs. | 
| String | getPredefinedMetricType()Get Preset monitoring item. | 
| String | getScalingPolicyName()Get Alarm trigger policy name. | 
| String | getScalingPolicyType()Get Scaling policy type. | 
| Long | getTargetValue()Get Target value. | 
| void | setAdjustmentType(String AdjustmentType)Set The method to adjust the desired capacity after the alarm is triggered. | 
| void | setAdjustmentValue(Long AdjustmentValue)Set The adjusted value of desired capacity after the alarm is triggered. | 
| void | setAutoScalingGroupId(String AutoScalingGroupId)Set Auto scaling group ID. | 
| void | setAutoScalingPolicyId(String AutoScalingPolicyId)Set Alarm trigger policy ID. | 
| void | setCooldown(Long Cooldown)Set Cooldown duration in seconds, applies only to simple policies. | 
| void | setDisableScaleIn(Boolean DisableScaleIn)Set Whether to disable scale-in. | 
| void | setEstimatedInstanceWarmup(Long EstimatedInstanceWarmup)Set Instance warm-up period (in seconds). | 
| void | setMetricAlarm(MetricAlarm MetricAlarm)Set Alarm monitoring metrics of a simple policy. | 
| void | setMetricAlarms(MetricAlarm[] MetricAlarms)Set List of alarm monitoring metrics. | 
| void | setNotificationUserGroupIds(String[] NotificationUserGroupIds)Set Notification group ID, which is the set of user group IDs. | 
| void | setPredefinedMetricType(String PredefinedMetricType)Set Preset monitoring item. | 
| void | setScalingPolicyName(String ScalingPolicyName)Set Alarm trigger policy name. | 
| void | setScalingPolicyType(String ScalingPolicyType)Set Scaling policy type. | 
| void | setTargetValue(Long TargetValue)Set Target value. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ScalingPolicy()
public ScalingPolicy(ScalingPolicy source)
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId - Auto scaling group ID.public String getAutoScalingPolicyId()
public void setAutoScalingPolicyId(String AutoScalingPolicyId)
AutoScalingPolicyId - Alarm trigger policy ID.public String getScalingPolicyType()
public void setScalingPolicyType(String ScalingPolicyType)
ScalingPolicyType - Scaling policy type. Valid values:
- `SIMPLE`: A simple policy.
- `TARGET_TRACKING`: A target tracking policy.public String getScalingPolicyName()
public void setScalingPolicyName(String ScalingPolicyName)
ScalingPolicyName - Alarm trigger policy name.public String getAdjustmentType()
public void setAdjustmentType(String AdjustmentType)
AdjustmentType - The method to adjust the desired capacity after the alarm is triggered. It’s only available when `ScalingPolicyType` is `Simple`. Valid values: public Long getAdjustmentValue()
public void setAdjustmentValue(Long AdjustmentValue)
AdjustmentValue - The adjusted value of desired capacity after the alarm is triggered. This parameter is only applicable to a simple policy.public Long getCooldown()
public void setCooldown(Long Cooldown)
Cooldown - Cooldown duration in seconds, applies only to simple policies. value range [0,3600]. default cooldown: 300 seconds.public MetricAlarm getMetricAlarm()
public void setMetricAlarm(MetricAlarm MetricAlarm)
MetricAlarm - Alarm monitoring metrics of a simple policy.public String getPredefinedMetricType()
public void setPredefinedMetricType(String PredefinedMetricType)
PredefinedMetricType - Preset monitoring item. It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Valid values: public Long getTargetValue()
public void setTargetValue(Long TargetValue)
TargetValue - Target value. It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Value ranges: public Long getEstimatedInstanceWarmup()
public void setEstimatedInstanceWarmup(Long EstimatedInstanceWarmup)
EstimatedInstanceWarmup - Instance warm-up period (in seconds). It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Value range: 0-3600.
Note: This field may return `null`, indicating that no valid values can be obtained.public Boolean getDisableScaleIn()
public void setDisableScaleIn(Boolean DisableScaleIn)
DisableScaleIn - Whether to disable scale-in. It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Valid values: public MetricAlarm[] getMetricAlarms()
public void setMetricAlarms(MetricAlarm[] MetricAlarms)
MetricAlarms - List of alarm monitoring metrics. This parameter is only applicable to a target tracking policy.
Note: This field may return `null`, indicating that no valid values can be obtained.public String[] getNotificationUserGroupIds()
public void setNotificationUserGroupIds(String[] NotificationUserGroupIds)
NotificationUserGroupIds - Notification group ID, which is the set of user group IDs.Copyright © 2025. All rights reserved.