@Generated(value="by GAPIC") @BetaApi public final class AutoscalingPolicyCpuUtilization extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
AutoscalingPolicyCpuUtilization.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.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 com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.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.