Interface AutoscalingMetricSpecOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
AutoscalingMetricSpec, AutoscalingMetricSpec.Builder

@Generated public interface AutoscalingMetricSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    com.google.protobuf.ByteString
    Required.
    int
    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.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getMetricName

      String 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];
      Returns:
      The metricName.
    • getMetricNameBytes

      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];
      Returns:
      The bytes for metricName.
    • getTarget

      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;
      Returns:
      The target.