public class CreateScalingPolicyRequest extends AbstractModel
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 number of instances after the alarm is triggered.
|
Long |
getAdjustmentValue()
Get The adjusted value of desired number of instances after the alarm is triggered.
|
String |
getAutoScalingGroupId()
Get Auto scaling group ID.
|
Long |
getCooldown()
Get Cooldown period in seconds.
|
MetricAlarm |
getMetricAlarm()
Get Alarm monitoring metric.
|
String[] |
getNotificationUserGroupIds()
Get This parameter is diused.
|
String |
getScalingPolicyName()
Get Alarm trigger policy name.
|
void |
setAdjustmentType(String AdjustmentType)
Set The method to adjust the desired number of instances after the alarm is triggered.
|
void |
setAdjustmentValue(Long AdjustmentValue)
Set The adjusted value of desired number of instances after the alarm is triggered.
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set Auto scaling group ID.
|
void |
setCooldown(Long Cooldown)
Set Cooldown period in seconds.
|
void |
setMetricAlarm(MetricAlarm MetricAlarm)
Set Alarm monitoring metric.
|
void |
setNotificationUserGroupIds(String[] NotificationUserGroupIds)
Set This parameter is diused.
|
void |
setScalingPolicyName(String ScalingPolicyName)
Set Alarm trigger policy name.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public 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 getAdjustmentType()
public void setAdjustmentType(String AdjustmentType)
AdjustmentType
- The method to adjust the desired number of instances after the alarm is triggered. Value range: public Long getAdjustmentValue()
public void setAdjustmentValue(Long AdjustmentValue)
AdjustmentValue
- The adjusted value of desired number of instances after the alarm is triggered. Value range: public MetricAlarm getMetricAlarm()
public void setMetricAlarm(MetricAlarm MetricAlarm)
MetricAlarm
- Alarm monitoring metric.public Long getCooldown()
public void setCooldown(Long Cooldown)
Cooldown
- Cooldown period in seconds. Default value: 300 seconds.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 © 2023. All rights reserved.