@Generated(value="by GAPIC") @BetaApi public final class AutoscalingPolicyCustomMetricUtilization extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
AutoscalingPolicyCustomMetricUtilization.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
static AutoscalingPolicyCustomMetricUtilization |
getDefaultInstance() |
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
String |
getMetric()
The identifier (type) of the Stackdriver Monitoring metric.
|
Double |
getUtilizationTarget()
The target value of the metric that autoscaler should maintain.
|
String |
getUtilizationTargetType()
Defines how target utilization value is expressed for a Stackdriver Monitoring metric.
|
int |
hashCode() |
static AutoscalingPolicyCustomMetricUtilization.Builder |
newBuilder() |
static AutoscalingPolicyCustomMetricUtilization.Builder |
newBuilder(AutoscalingPolicyCustomMetricUtilization prototype) |
AutoscalingPolicyCustomMetricUtilization.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 String getMetric()
The metric must have a value type of INT64 or DOUBLE.
public Double getUtilizationTarget()
For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
public String getUtilizationTargetType()
public static AutoscalingPolicyCustomMetricUtilization.Builder newBuilder()
public static AutoscalingPolicyCustomMetricUtilization.Builder newBuilder(AutoscalingPolicyCustomMetricUtilization prototype)
public AutoscalingPolicyCustomMetricUtilization.Builder toBuilder()
public static AutoscalingPolicyCustomMetricUtilization getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.