public class CreateScalingPolicyRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateScalingPolicyRequest() | 
| CreateScalingPolicyRequest(CreateScalingPolicyRequest 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 Specifies how to adjust the number of desired capacity when the alarm is triggered. | 
| String | getAutoScalingGroupId()Get Auto scaling group ID. | 
| Long | getCooldown()Get Cooldown period (in seconds). | 
| Boolean | getDisableScaleIn()Get Whether to disable scale-in. | 
| Long | getEstimatedInstanceWarmup()Get Instance warm-up period (in seconds). | 
| MetricAlarm | getMetricAlarm()Get Alarm monitoring metric. | 
| String[] | getNotificationUserGroupIds()Get This parameter is diused. | 
| 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 Specifies how to adjust the number of desired capacity when the alarm is triggered. | 
| void | setAutoScalingGroupId(String AutoScalingGroupId)Set Auto scaling group ID. | 
| void | setCooldown(Long Cooldown)Set Cooldown period (in seconds). | 
| 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 metric. | 
| void | setNotificationUserGroupIds(String[] NotificationUserGroupIds)Set This parameter is diused. | 
| 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, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateScalingPolicyRequest()
public CreateScalingPolicyRequest(CreateScalingPolicyRequest source)
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId - Auto scaling group ID.public String getScalingPolicyName()
public void setScalingPolicyName(String ScalingPolicyName)
ScalingPolicyName - Alarm trigger policy name.public String getScalingPolicyType()
public void setScalingPolicyType(String ScalingPolicyType)
ScalingPolicyType - Scaling policy type. Valid values: 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 - Specifies how to adjust the number of desired capacity when the alarm is triggered. It’s only available when `ScalingPolicyType` is `Simple`. Values: public Long getCooldown()
public void setCooldown(Long Cooldown)
Cooldown - Cooldown period (in seconds). This parameter is only applicable to a simple policy. Default value: 300.public MetricAlarm getMetricAlarm()
public void setMetricAlarm(MetricAlarm MetricAlarm)
MetricAlarm - Alarm monitoring metric. It’s only available when `ScalingPolicyType` is `Simple`.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. Default value: 300.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 String[] getNotificationUserGroupIds()
public void setNotificationUserGroupIds(String[] NotificationUserGroupIds)
NotificationUserGroupIds - This parameter is diused. Please use [CreateNotificationConfiguration](https://intl.cloud.tencent.com/document/api/377/33185?from_cn_redirect=1) instead.
Notification group ID, which is the set of user group IDs.Copyright © 2024. All rights reserved.