@Generated
public interface AutoscalingMetricSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMonitoredResourceLabels(String key)
Optional.
|
String |
getMetricName()
Required.
|
com.google.protobuf.ByteString |
getMetricNameBytes()
Required.
|
Map<String,String> |
getMonitoredResourceLabels()
Deprecated.
|
int |
getMonitoredResourceLabelsCount()
Optional.
|
Map<String,String> |
getMonitoredResourceLabelsMap()
Optional.
|
String |
getMonitoredResourceLabelsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getMonitoredResourceLabelsOrThrow(String key)
Optional.
|
int |
getTarget()
The target resource utilization in percentage (1% - 100%) for the given
metric; once the real usage deviates from the target by a certain
percentage, the machine replicas change.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getMetricName()
Required. The resource metric name. Supported metrics: * For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization` * `aiplatform.googleapis.com/prediction/online/request_count`
string metric_name = 1 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getMetricNameBytes()
Required. The resource metric name. Supported metrics: * For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization` * `aiplatform.googleapis.com/prediction/online/request_count`
string metric_name = 1 [(.google.api.field_behavior) = REQUIRED];int getTarget()
The target resource utilization in percentage (1% - 100%) for the given metric; once the real usage deviates from the target by a certain percentage, the machine replicas change. The default value is 60 (representing 60%) if not provided.
int32 target = 2;int getMonitoredResourceLabelsCount()
Optional. The Cloud Monitoring monitored resource labels as key value pairs used for metrics filtering. See Cloud Monitoring Labels https://cloud.google.com/monitoring/api/v3/metric-model#generic-label-info
map<string, string> monitored_resource_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
boolean containsMonitoredResourceLabels(String key)
Optional. The Cloud Monitoring monitored resource labels as key value pairs used for metrics filtering. See Cloud Monitoring Labels https://cloud.google.com/monitoring/api/v3/metric-model#generic-label-info
map<string, string> monitored_resource_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated Map<String,String> getMonitoredResourceLabels()
getMonitoredResourceLabelsMap() instead.Map<String,String> getMonitoredResourceLabelsMap()
Optional. The Cloud Monitoring monitored resource labels as key value pairs used for metrics filtering. See Cloud Monitoring Labels https://cloud.google.com/monitoring/api/v3/metric-model#generic-label-info
map<string, string> monitored_resource_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
String getMonitoredResourceLabelsOrDefault(String key, String defaultValue)
Optional. The Cloud Monitoring monitored resource labels as key value pairs used for metrics filtering. See Cloud Monitoring Labels https://cloud.google.com/monitoring/api/v3/metric-model#generic-label-info
map<string, string> monitored_resource_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
String getMonitoredResourceLabelsOrThrow(String key)
Optional. The Cloud Monitoring monitored resource labels as key value pairs used for metrics filtering. See Cloud Monitoring Labels https://cloud.google.com/monitoring/api/v3/metric-model#generic-label-info
map<string, string> monitored_resource_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2026 Google LLC. All rights reserved.