public static class AutoscalingPolicyCustomMetricUtilization.Builder extends Object
Modifier and Type | Method and Description |
---|---|
AutoscalingPolicyCustomMetricUtilization |
build() |
AutoscalingPolicyCustomMetricUtilization.Builder |
clone() |
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.
|
AutoscalingPolicyCustomMetricUtilization.Builder |
mergeFrom(AutoscalingPolicyCustomMetricUtilization other) |
AutoscalingPolicyCustomMetricUtilization.Builder |
setMetric(String metric)
The identifier (type) of the Stackdriver Monitoring metric.
|
AutoscalingPolicyCustomMetricUtilization.Builder |
setUtilizationTarget(Double utilizationTarget)
The target value of the metric that autoscaler should maintain.
|
AutoscalingPolicyCustomMetricUtilization.Builder |
setUtilizationTargetType(String utilizationTargetType)
Defines how target utilization value is expressed for a Stackdriver Monitoring metric.
|
public AutoscalingPolicyCustomMetricUtilization.Builder mergeFrom(AutoscalingPolicyCustomMetricUtilization other)
public String getMetric()
The metric must have a value type of INT64 or DOUBLE.
public AutoscalingPolicyCustomMetricUtilization.Builder setMetric(String metric)
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 AutoscalingPolicyCustomMetricUtilization.Builder setUtilizationTarget(Double utilizationTarget)
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 AutoscalingPolicyCustomMetricUtilization.Builder setUtilizationTargetType(String utilizationTargetType)
public AutoscalingPolicyCustomMetricUtilization build()
public AutoscalingPolicyCustomMetricUtilization.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.