@Generated(value="by GAPIC") @BetaApi public final class AutoscalingPolicy extends Object implements ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
AutoscalingPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ApiMessage |
getApiMessageRequestBody() |
Integer |
getCoolDownPeriodSec()
The number of seconds that the autoscaler should wait before it starts collecting information
from a new instance.
|
AutoscalingPolicyCpuUtilization |
getCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU
utilization of a managed instance group.
|
List<AutoscalingPolicyCustomMetricUtilization> |
getCustomMetricUtilizationsList()
Configuration parameters of autoscaling based on a custom metric.
|
static AutoscalingPolicy |
getDefaultInstance() |
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
AutoscalingPolicyLoadBalancingUtilization |
getLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
|
Integer |
getMaxNumReplicas()
The maximum number of instances that the autoscaler can scale up to.
|
Integer |
getMinNumReplicas()
The minimum number of replicas that the autoscaler can scale down to.
|
int |
hashCode() |
static AutoscalingPolicy.Builder |
newBuilder() |
static AutoscalingPolicy.Builder |
newBuilder(AutoscalingPolicy prototype) |
AutoscalingPolicy.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface ApiMessage
@Nullable public ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface ApiMessage
public Integer getCoolDownPeriodSec()
Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
public AutoscalingPolicyCpuUtilization getCpuUtilization()
public List<AutoscalingPolicyCustomMetricUtilization> getCustomMetricUtilizationsList()
public AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
public Integer getMaxNumReplicas()
public Integer getMinNumReplicas()
public static AutoscalingPolicy.Builder newBuilder()
public static AutoscalingPolicy.Builder newBuilder(AutoscalingPolicy prototype)
public AutoscalingPolicy.Builder toBuilder()
public static AutoscalingPolicy getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.