@Generated(value="by GAPIC") @BetaApi public final class AutoscalingPolicyCpuUtilization extends Object implements ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
AutoscalingPolicyCpuUtilization.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ApiMessage |
getApiMessageRequestBody() |
static AutoscalingPolicyCpuUtilization |
getDefaultInstance() |
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
Double |
getUtilizationTarget()
The target CPU utilization that the autoscaler should maintain.
|
int |
hashCode() |
static AutoscalingPolicyCpuUtilization.Builder |
newBuilder() |
static AutoscalingPolicyCpuUtilization.Builder |
newBuilder(AutoscalingPolicyCpuUtilization prototype) |
AutoscalingPolicyCpuUtilization.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 Double getUtilizationTarget()
If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
public static AutoscalingPolicyCpuUtilization.Builder newBuilder()
public static AutoscalingPolicyCpuUtilization.Builder newBuilder(AutoscalingPolicyCpuUtilization prototype)
public AutoscalingPolicyCpuUtilization.Builder toBuilder()
public static AutoscalingPolicyCpuUtilization getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.