public class CreateScalingPolicyRequest extends AbstractModel
Constructor and Description |
---|
CreateScalingPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAdjustmentType()
获取告警触发后,期望实例数修改方式。取值 :
CHANGE_IN_CAPACITY:增加或减少若干期望实例数EXACT_CAPACITY:调整至指定期望实例数 PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数 |
Integer |
getAdjustmentValue()
获取告警触发后,期望实例数的调整值。取值:
当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。 |
String |
getAutoScalingGroupId()
获取伸缩组ID。
|
Integer |
getCooldown()
获取冷却时间,单位为秒。默认冷却时间300秒。
|
MetricAlarm |
getMetricAlarm()
获取告警监控指标。
|
String[] |
getNotificationUserGroupIds()
获取通知组ID,即为用户组ID集合,用户组ID可以通过[DescribeUserGroup](https://cloud.tencent.com/document/api/378/4404)查询。
|
String |
getScalingPolicyName()
获取告警触发策略名称。
|
void |
setAdjustmentType(String AdjustmentType)
设置告警触发后,期望实例数修改方式。取值 :
CHANGE_IN_CAPACITY:增加或减少若干期望实例数EXACT_CAPACITY:调整至指定期望实例数 PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数 |
void |
setAdjustmentValue(Integer AdjustmentValue)
设置告警触发后,期望实例数的调整值。取值:
当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。 |
void |
setAutoScalingGroupId(String AutoScalingGroupId)
设置伸缩组ID。
|
void |
setCooldown(Integer Cooldown)
设置冷却时间,单位为秒。默认冷却时间300秒。
|
void |
setMetricAlarm(MetricAlarm MetricAlarm)
设置告警监控指标。
|
void |
setNotificationUserGroupIds(String[] NotificationUserGroupIds)
设置通知组ID,即为用户组ID集合,用户组ID可以通过[DescribeUserGroup](https://cloud.tencent.com/document/api/378/4404)查询。
|
void |
setScalingPolicyName(String ScalingPolicyName)
设置告警触发策略名称。
|
void |
toMap(HashMap<String,String> map,
String prefix)
内部实现,用户禁止调用
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId
- 伸缩组ID。public String getScalingPolicyName()
public void setScalingPolicyName(String ScalingPolicyName)
ScalingPolicyName
- 告警触发策略名称。public String getAdjustmentType()
public void setAdjustmentType(String AdjustmentType)
AdjustmentType
- 告警触发后,期望实例数修改方式。取值 :public Integer getAdjustmentValue()
public void setAdjustmentValue(Integer AdjustmentValue)
AdjustmentValue
- 告警触发后,期望实例数的调整值。取值:public MetricAlarm getMetricAlarm()
public void setMetricAlarm(MetricAlarm MetricAlarm)
MetricAlarm
- 告警监控指标。public Integer getCooldown()
public void setCooldown(Integer Cooldown)
Cooldown
- 冷却时间,单位为秒。默认冷却时间300秒。public String[] getNotificationUserGroupIds()
public void setNotificationUserGroupIds(String[] NotificationUserGroupIds)
NotificationUserGroupIds
- 通知组ID,即为用户组ID集合,用户组ID可以通过[DescribeUserGroup](https://cloud.tencent.com/document/api/378/4404)查询。Copyright © 2019. All rights reserved.