public static final class ModifyScalingRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyScalingRuleRequest.Builder |
adjustmentType(String adjustmentType)
The adjustment method of the scaling rule.
|
ModifyScalingRuleRequest.Builder |
adjustmentValue(Integer adjustmentValue)
The target value specified in the scaling rule.
|
ModifyScalingRuleRequest.Builder |
alarmDimensions(List<ModifyScalingRuleRequest.AlarmDimensions> alarmDimensions)
The dimensions.
|
ModifyScalingRuleRequest |
build() |
ModifyScalingRuleRequest.Builder |
cooldown(Integer cooldown)
The cooldown time of the scaling rule.
|
ModifyScalingRuleRequest.Builder |
disableScaleIn(Boolean disableScaleIn)
Specifies whether to disable scale-in.
|
ModifyScalingRuleRequest.Builder |
estimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The warmup period of an instance.
|
ModifyScalingRuleRequest.Builder |
initialMaxSize(Integer initialMaxSize)
The maximum number of ECS instances that can be contained in the scaling group.
|
ModifyScalingRuleRequest.Builder |
metricName(String metricName)
The predefined metric.
|
ModifyScalingRuleRequest.Builder |
minAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances to scale.
|
ModifyScalingRuleRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifyScalingRuleRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyScalingRuleRequest.Builder |
predictiveScalingMode(String predictiveScalingMode)
The mode of the predictive scaling rule.
|
ModifyScalingRuleRequest.Builder |
predictiveTaskBufferTime(Integer predictiveTaskBufferTime)
The amount of buffer time before the prediction task is executed.
|
ModifyScalingRuleRequest.Builder |
predictiveValueBehavior(String predictiveValueBehavior)
Specifies which one of the initial maximum capacity and the predicted value can be used as the maximum value for prediction tasks.
|
ModifyScalingRuleRequest.Builder |
predictiveValueBuffer(Integer predictiveValueBuffer)
The ratio based on which the predicted value is increased when `PredictiveValueBehavior` is set to `PredictiveValueOverrideMaxWithBuffer`.
|
ModifyScalingRuleRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyScalingRuleRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ModifyScalingRuleRequest.Builder |
scaleInEvaluationCount(Integer scaleInEvaluationCount)
The number of consecutive times that the event-triggered task created for scale-in activities must meet the threshold conditions before an alert is triggered.
|
ModifyScalingRuleRequest.Builder |
scaleOutEvaluationCount(Integer scaleOutEvaluationCount)
The number of consecutive times that the event-triggered task created for scale-out activities must meet the threshold conditions before an alert is triggered.
|
ModifyScalingRuleRequest.Builder |
scalingRuleId(String scalingRuleId)
The ID of the scaling rule that you want to modify.
|
ModifyScalingRuleRequest.Builder |
scalingRuleName(String scalingRuleName)
The name of the scaling rule.
|
ModifyScalingRuleRequest.Builder |
stepAdjustments(List<ModifyScalingRuleRequest.StepAdjustments> stepAdjustments)
Details of the step adjustments.
|
ModifyScalingRuleRequest.Builder |
targetValue(Float targetValue)
The target value.
|
public ModifyScalingRuleRequest.Builder adjustmentType(String adjustmentType)
* QuantityChangeInCapacity: adds the specified number of ECS instances to or removes the specified number of ECS instances from the scaling group. * PercentChangeInCapacity: adds the specified percentage of ECS instances to or removes the specified percentage of ECS instances from the scaling group. * TotalCapacity: adjusts the number of ECS instances in the scaling group to the specified number.
public ModifyScalingRuleRequest.Builder adjustmentValue(Integer adjustmentValue)
* Valid values if you set the AdjustmentType parameter to QuantityChangeInCapacity: -1000 to 1000. * Valid values if you set the AdjustmentType parameter to PercentChangeInCapacity: -100 to 10000. * Valid values if you set the AdjustmentType parameter to TotalCapacity: 0 to 2000.
public ModifyScalingRuleRequest.Builder alarmDimensions(List<ModifyScalingRuleRequest.AlarmDimensions> alarmDimensions)
public ModifyScalingRuleRequest.Builder cooldown(Integer cooldown)
Valid values: 0 to 86400. Unit: seconds.
public ModifyScalingRuleRequest.Builder disableScaleIn(Boolean disableScaleIn)
public ModifyScalingRuleRequest.Builder estimatedInstanceWarmup(Integer estimatedInstanceWarmup)
> Auto Scaling calculates the number of ECS instances that need to be scaled. ECS instances in the warmup state are not counted towards the current capacity of the scaling group. Valid values: 0 to 86400. Unit: seconds.
public ModifyScalingRuleRequest.Builder initialMaxSize(Integer initialMaxSize)
public ModifyScalingRuleRequest.Builder metricName(String metricName)
Valid values if you create a target tracking scaling rule: * CpuUtilization: the average CPU utilization. * IntranetTx: the outbound traffic over an internal network. * IntranetRx: the inbound traffic over an internal network. * VpcInternetTx: the outbound traffic from a virtual private cloud (VPC) to the Internet. * VpcInternetRx: the inbound traffic from the Internet to a VPC. * MemoryUtilization: the memory usage. * LoadBalancerRealServerAverageQps: the queries per second (QPS) per Application Load Balancer (ALB) server group. Valid values if you create a predictive scaling rule: * CpuUtilization: the average CPU utilization. * IntranetRx: the inbound traffic over an internal network. * IntranetTx: the outbound traffic over an internal network.
public ModifyScalingRuleRequest.Builder minAdjustmentMagnitude(Integer minAdjustmentMagnitude)
public ModifyScalingRuleRequest.Builder ownerAccount(String ownerAccount)
public ModifyScalingRuleRequest.Builder ownerId(Long ownerId)
public ModifyScalingRuleRequest.Builder predictiveScalingMode(String predictiveScalingMode)
* PredictAndScale: produces predictions and creates prediction tasks. * PredictOnly: produces predictions but does not create prediction tasks.
public ModifyScalingRuleRequest.Builder predictiveTaskBufferTime(Integer predictiveTaskBufferTime)
public ModifyScalingRuleRequest.Builder predictiveValueBehavior(String predictiveValueBehavior)
* MaxOverridePredictiveValue: uses the initial maximum capacity as the maximum value for prediction tasks if the predicted value is greater than the initial maximum capacity. * PredictiveValueOverrideMax: uses the predicted value as the maximum value for prediction tasks when the predicted value is greater than the initial maximum capacity. * PredictiveValueOverrideMaxWithBuffer: increases the predicted value by a percentage that is specified by the PredictiveValueBuffer parameter. If the predicted value that is increased by the percentage is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks.
public ModifyScalingRuleRequest.Builder predictiveValueBuffer(Integer predictiveValueBuffer)
public ModifyScalingRuleRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyScalingRuleRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyScalingRuleRequest.Builder scaleInEvaluationCount(Integer scaleInEvaluationCount)
public ModifyScalingRuleRequest.Builder scaleOutEvaluationCount(Integer scaleOutEvaluationCount)
public ModifyScalingRuleRequest.Builder scalingRuleId(String scalingRuleId)
public ModifyScalingRuleRequest.Builder scalingRuleName(String scalingRuleName)
The name of each scaling rule must be unique under the same account within the same region.
public ModifyScalingRuleRequest.Builder stepAdjustments(List<ModifyScalingRuleRequest.StepAdjustments> stepAdjustments)
public ModifyScalingRuleRequest.Builder targetValue(Float targetValue)
public ModifyScalingRuleRequest build()
Copyright © 2024. All rights reserved.