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 告警触发后,期望实例数修改方式。取值 :
CHANGE_IN_CAPACITY:增加或减少若干期望实例数EXACT_CAPACITY:调整至指定期望实例数 PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数 |
Long |
getAdjustmentValue()
Get 告警触发后,期望实例数的调整值。取值:
当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。 |
String |
getAutoScalingGroupId()
Get 伸缩组ID。
|
Long |
getCooldown()
Get 冷却时间,单位为秒。默认冷却时间300秒。
|
MetricAlarm |
getMetricAlarm()
Get 告警监控指标。
|
String[] |
getNotificationUserGroupIds()
Get 此参数已不再生效,请使用[创建通知](https://cloud.tencent.com/document/api/377/33185)。
通知组ID,即为用户组ID集合。
|
String |
getScalingPolicyName()
Get 告警触发策略名称。
|
void |
setAdjustmentType(String AdjustmentType)
Set 告警触发后,期望实例数修改方式。取值 :
CHANGE_IN_CAPACITY:增加或减少若干期望实例数EXACT_CAPACITY:调整至指定期望实例数 PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数 |
void |
setAdjustmentValue(Long AdjustmentValue)
Set 告警触发后,期望实例数的调整值。取值:
当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。 |
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set 伸缩组ID。
|
void |
setCooldown(Long Cooldown)
Set 冷却时间,单位为秒。默认冷却时间300秒。
|
void |
setMetricAlarm(MetricAlarm MetricAlarm)
Set 告警监控指标。
|
void |
setNotificationUserGroupIds(String[] NotificationUserGroupIds)
Set 此参数已不再生效,请使用[创建通知](https://cloud.tencent.com/document/api/377/33185)。
通知组ID,即为用户组ID集合。
|
void |
setScalingPolicyName(String ScalingPolicyName)
Set 告警触发策略名称。
|
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
- 伸缩组ID。public String getScalingPolicyName()
public void setScalingPolicyName(String ScalingPolicyName)
ScalingPolicyName
- 告警触发策略名称。public String getAdjustmentType()
public void setAdjustmentType(String AdjustmentType)
AdjustmentType
- 告警触发后,期望实例数修改方式。取值 :public Long getAdjustmentValue()
public void setAdjustmentValue(Long AdjustmentValue)
AdjustmentValue
- 告警触发后,期望实例数的调整值。取值:public MetricAlarm getMetricAlarm()
public void setMetricAlarm(MetricAlarm MetricAlarm)
MetricAlarm
- 告警监控指标。public Long getCooldown()
public void setCooldown(Long Cooldown)
Cooldown
- 冷却时间,单位为秒。默认冷却时间300秒。public String[] getNotificationUserGroupIds()
public void setNotificationUserGroupIds(String[] NotificationUserGroupIds)
NotificationUserGroupIds
- 此参数已不再生效,请使用[创建通知](https://cloud.tencent.com/document/api/377/33185)。
通知组ID,即为用户组ID集合。Copyright © 2022. All rights reserved.