public class ModifyScalingPolicyRequest extends AbstractModel
header, skipSign
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 The method to adjust the desired capacity after the alarm is triggered.
|
Long |
getAdjustmentValue()
Get The adjustment value for the expected number of instances after an alarm is triggered.
|
String |
getAutoScalingPolicyId()
Get Specifies the alert policy 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 The Alarm policy name must be unique in your account.
|
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 The adjustment value for the expected number of instances after an alarm is triggered.
|
void |
setAutoScalingPolicyId(String AutoScalingPolicyId)
Set Specifies the alert policy 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 The Alarm policy name must be unique in your account.
|
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, toJsonString
public ModifyScalingPolicyRequest()
public ModifyScalingPolicyRequest(ModifyScalingPolicyRequest source)
public String getAutoScalingPolicyId()
public void setAutoScalingPolicyId(String AutoScalingPolicyId)
AutoScalingPolicyId
- Specifies the alert policy ID. obtain the alert policy ID by logging in to the console (https://console.cloud.tencent.com/autoscaling/group) or calling the api DescribeScalingPolicies (https://intl.cloud.tencent.com/document/api/377/33178?from_cn_redirect=1), and retrieve the AutoScalingPolicyId from the returned information.public String getScalingPolicyName()
public void setScalingPolicyName(String ScalingPolicyName)
ScalingPolicyName
- The Alarm policy name must be unique in your account. the name length cannot exceed 60 characters. the name only supports chinese, english, digits, underscores, hyphens, and decimal separators.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
- The adjustment value for the expected number of instances after an alarm is triggered. It applies only to simple policies. public Long getCooldown()
public void setCooldown(Long Cooldown)
Cooldown
- Cooldown period (in seconds). It’s only available when `ScalingPolicyType` is `Simple`.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.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 © 2025. All rights reserved.