public static final class GetScalingRulesResponseBody.Rule.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
GetScalingRulesResponseBody.Rule.Builder |
appId(String appId)
The ID of the application.
|
GetScalingRulesResponseBody.Rule |
build() |
GetScalingRulesResponseBody.Rule.Builder |
cond(String cond)
The relationship among the conditions that trigger the scaling rule.
|
GetScalingRulesResponseBody.Rule.Builder |
cpu(Integer cpu)
The minimum CPU utilization that triggers the scaling rule.
|
GetScalingRulesResponseBody.Rule.Builder |
createTime(Long createTime)
The time when the scaling rule was created.
|
GetScalingRulesResponseBody.Rule.Builder |
duration(Integer duration)
The duration of the scaling rule.
|
GetScalingRulesResponseBody.Rule.Builder |
enable(Boolean enable)
Indicates whether scale-ins or scale-outs are allowed.
|
GetScalingRulesResponseBody.Rule.Builder |
groupId(String groupId)
The ID of the instance group to which the application is deployed.
|
GetScalingRulesResponseBody.Rule.Builder |
instNum(Integer instNum)
The maximum number of instances in the group when a scale-out is performed, or the minimum number of instances in the group when a scale-in is performed.
|
GetScalingRulesResponseBody.Rule.Builder |
loadNum(Integer loadNum)
The system load that triggers the scaling rule.
|
GetScalingRulesResponseBody.Rule.Builder |
metricType(String metricType)
The type of the metric.
|
GetScalingRulesResponseBody.Rule.Builder |
mode(String mode)
The type of the scaling rule.
|
GetScalingRulesResponseBody.Rule.Builder |
multiAzPolicy(String multiAzPolicy)
The policy of auto scaling across multiple zones.
|
GetScalingRulesResponseBody.Rule.Builder |
resourceFrom(String resourceFrom)
The source of the instance that you want to add during a scale-out.
|
GetScalingRulesResponseBody.Rule.Builder |
rt(Integer rt)
The service latency that triggers the scaling rule.
|
GetScalingRulesResponseBody.Rule.Builder |
specId(String specId)
The ID of the specification.
|
GetScalingRulesResponseBody.Rule.Builder |
step(Integer step)
The number of instances that are added during each scale-out or removed during each scale-in.
|
GetScalingRulesResponseBody.Rule.Builder |
templateId(String templateId)
The ID of the launch template.
|
GetScalingRulesResponseBody.Rule.Builder |
templateVersion(Integer templateVersion)
The version of the launch template.
|
GetScalingRulesResponseBody.Rule.Builder |
updateTime(Long updateTime)
The time when the scaling rule was last modified.
|
GetScalingRulesResponseBody.Rule.Builder |
vpcId(String vpcId)
The ID of the VPC.
|
GetScalingRulesResponseBody.Rule.Builder |
vSwitchIds(String vSwitchIds)
The IDs of the vSwitches.
|
public GetScalingRulesResponseBody.Rule.Builder appId(String appId)
public GetScalingRulesResponseBody.Rule.Builder cond(String cond)
* OR: one of the conditions * AND: all conditions
public GetScalingRulesResponseBody.Rule.Builder cpu(Integer cpu)
public GetScalingRulesResponseBody.Rule.Builder createTime(Long createTime)
public GetScalingRulesResponseBody.Rule.Builder duration(Integer duration)
public GetScalingRulesResponseBody.Rule.Builder enable(Boolean enable)
* true: Scale-ins or scale-outs are allowed. * false: Scale-ins or scale-outs are disallowed.
public GetScalingRulesResponseBody.Rule.Builder groupId(String groupId)
public GetScalingRulesResponseBody.Rule.Builder instNum(Integer instNum)
public GetScalingRulesResponseBody.Rule.Builder loadNum(Integer loadNum)
public GetScalingRulesResponseBody.Rule.Builder metricType(String metricType)
public GetScalingRulesResponseBody.Rule.Builder mode(String mode)
* SCALE_IN: scale-in rules * SCALE_OUT: scale-out rules
public GetScalingRulesResponseBody.Rule.Builder multiAzPolicy(String multiAzPolicy)
* PRIORITY: The vSwitch that is first selected has the highest priority. * BALANCE: This policy evenly distributes instances across zones in which the vSwitches reside.
public GetScalingRulesResponseBody.Rule.Builder resourceFrom(String resourceFrom)
* NEW: Elastic resources are used. * AVAILABLE: The existing resources are used. * AVAILABLE_FIRST: The existing resources are used first.
public GetScalingRulesResponseBody.Rule.Builder rt(Integer rt)
public GetScalingRulesResponseBody.Rule.Builder specId(String specId)
public GetScalingRulesResponseBody.Rule.Builder step(Integer step)
public GetScalingRulesResponseBody.Rule.Builder templateId(String templateId)
public GetScalingRulesResponseBody.Rule.Builder templateVersion(Integer templateVersion)
public GetScalingRulesResponseBody.Rule.Builder updateTime(Long updateTime)
public GetScalingRulesResponseBody.Rule.Builder vSwitchIds(String vSwitchIds)
public GetScalingRulesResponseBody.Rule.Builder vpcId(String vpcId)
public GetScalingRulesResponseBody.Rule build()
Copyright © 2023. All rights reserved.