public class ModifyScalingPolicyRequest extends AbstractModel
Constructor and Description |
---|
ModifyScalingPolicyRequest() |
ModifyScalingPolicyRequest(ModifyScalingPolicyRequest 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 |
getAutoScalingPolicyId()
Get 告警策略ID。
|
Long |
getCooldown()
Get 冷却时间,单位为秒。
|
MetricAlarm |
getMetricAlarm()
Get 告警监控指标。
|
String[] |
getNotificationUserGroupIds()
Get 通知组ID,即为用户组ID集合,用户组ID可以通过[ListGroups](https://cloud.tencent.com/document/product/598/34589)查询。
如果需要清空通知用户组,需要在列表中传入特定字符串 "NULL"。
|
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 |
setAutoScalingPolicyId(String AutoScalingPolicyId)
Set 告警策略ID。
|
void |
setCooldown(Long Cooldown)
Set 冷却时间,单位为秒。
|
void |
setMetricAlarm(MetricAlarm MetricAlarm)
Set 告警监控指标。
|
void |
setNotificationUserGroupIds(String[] NotificationUserGroupIds)
Set 通知组ID,即为用户组ID集合,用户组ID可以通过[ListGroups](https://cloud.tencent.com/document/product/598/34589)查询。
如果需要清空通知用户组,需要在列表中传入特定字符串 "NULL"。
|
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 ModifyScalingPolicyRequest()
public ModifyScalingPolicyRequest(ModifyScalingPolicyRequest source)
public String getAutoScalingPolicyId()
public void setAutoScalingPolicyId(String AutoScalingPolicyId)
AutoScalingPolicyId
- 告警策略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 Long getCooldown()
public void setCooldown(Long Cooldown)
Cooldown
- 冷却时间,单位为秒。public MetricAlarm getMetricAlarm()
public void setMetricAlarm(MetricAlarm MetricAlarm)
MetricAlarm
- 告警监控指标。public String[] getNotificationUserGroupIds()
public void setNotificationUserGroupIds(String[] NotificationUserGroupIds)
NotificationUserGroupIds
- 通知组ID,即为用户组ID集合,用户组ID可以通过[ListGroups](https://cloud.tencent.com/document/product/598/34589)查询。
如果需要清空通知用户组,需要在列表中传入特定字符串 "NULL"。Copyright © 2021. All rights reserved.