public class CreateScalingPolicyRequest extends AbstractModel
header, skipSign
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 After an Alarm is triggered, specifies the method for modifying the expected number of instances.
|
Long |
getAdjustmentValue()
Get Adjustment value for the expected number of instances after an Alarm is triggered, which is applicable only to simple policies and required in simple policy scenarios.
|
String |
getAutoScalingGroupId()
Get Scaling group ID.
|
Long |
getCooldown()
Get Cooldown period (in seconds).
|
Boolean |
getDisableScaleIn()
Get Whether to disable scale-in, which is applicable only to target tracking policies.
|
Long |
getEstimatedInstanceWarmup()
Get Instance warm-up period (in seconds).
|
MetricAlarm |
getMetricAlarm()
Get Alarm monitoring metric, apply only to simple policies, required in the scenario of simple policy.
|
String[] |
getNotificationUserGroupIds()
Get This parameter is diused.
|
String |
getPredefinedMetricType()
Get Predefined monitoring item, applicable only to target tracking policies.
|
String |
getScalingPolicyName()
Get The Alarm policy name must be unique in your account.
|
String |
getScalingPolicyType()
Get Alarm trigger policy type.
|
Long |
getTargetValue()
Get Target value, applicable only to the target tracking policy, required in the scenario.
|
void |
setAdjustmentType(String AdjustmentType)
Set After an Alarm is triggered, specifies the method for modifying the expected number of instances.
|
void |
setAdjustmentValue(Long AdjustmentValue)
Set Adjustment value for the expected number of instances after an Alarm is triggered, which is applicable only to simple policies and required in simple policy scenarios.
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set Scaling group ID.
|
void |
setCooldown(Long Cooldown)
Set Cooldown period (in seconds).
|
void |
setDisableScaleIn(Boolean DisableScaleIn)
Set Whether to disable scale-in, which is applicable only to target tracking policies.
|
void |
setEstimatedInstanceWarmup(Long EstimatedInstanceWarmup)
Set Instance warm-up period (in seconds).
|
void |
setMetricAlarm(MetricAlarm MetricAlarm)
Set Alarm monitoring metric, apply only to simple policies, required in the scenario of simple policy.
|
void |
setNotificationUserGroupIds(String[] NotificationUserGroupIds)
Set This parameter is diused.
|
void |
setPredefinedMetricType(String PredefinedMetricType)
Set Predefined monitoring item, applicable only to target tracking policies.
|
void |
setScalingPolicyName(String ScalingPolicyName)
Set The Alarm policy name must be unique in your account.
|
void |
setScalingPolicyType(String ScalingPolicyType)
Set Alarm trigger policy type.
|
void |
setTargetValue(Long TargetValue)
Set Target value, applicable only to the target tracking policy, required in the scenario.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateScalingPolicyRequest()
public CreateScalingPolicyRequest(CreateScalingPolicyRequest source)
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId
- Scaling group ID. obtain the scaling group ID by logging in to the console (https://console.cloud.tencent.com/autoscaling/group) or calling the api DescribeAutoScalingGroups (https://intl.cloud.tencent.com/document/api/377/20438?from_cn_redirect=1), and retrieve AutoScalingGroupId 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 points.public String getScalingPolicyType()
public void setScalingPolicyType(String ScalingPolicyType)
ScalingPolicyType
- Alarm trigger policy type. default: SIMPLE. valid values:.
public String getAdjustmentType()
public void setAdjustmentType(String AdjustmentType)
AdjustmentType
- After an Alarm is triggered, specifies the method for modifying the expected number of instances. required in the scenario of simple policies. valid values:.
public Long getAdjustmentValue()
public void setAdjustmentValue(Long AdjustmentValue)
AdjustmentValue
- Adjustment value for the expected number of instances after an Alarm is triggered, which is applicable only to simple policies and required in simple policy scenarios.
public Long getCooldown()
public void setCooldown(Long Cooldown)
Cooldown
- Cooldown period (in seconds). This parameter is only applicable to a simple policy. Default value: 300.public MetricAlarm getMetricAlarm()
public void setMetricAlarm(MetricAlarm MetricAlarm)
MetricAlarm
- Alarm monitoring metric, apply only to simple policies, required in the scenario of simple policy.public String getPredefinedMetricType()
public void setPredefinedMetricType(String PredefinedMetricType)
PredefinedMetricType
- Predefined monitoring item, applicable only to target tracking policies. required in the scenario. value range:.
public Long getTargetValue()
public void setTargetValue(Long TargetValue)
TargetValue
- Target value, applicable only to the target tracking policy, required in the scenario.
public Long getEstimatedInstanceWarmup()
public void setEstimatedInstanceWarmup(Long EstimatedInstanceWarmup)
EstimatedInstanceWarmup
- Instance warm-up period (in seconds). It is only available when `ScalingPolicyType` is `TARGET_TRACKING`. Value range: 0-3600. Default value: 300.public Boolean getDisableScaleIn()
public void setDisableScaleIn(Boolean DisableScaleIn)
DisableScaleIn
- Whether to disable scale-in, which is applicable only to target tracking policies. Default value: false. 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.