Class: Google::Cloud::VisionAI::V1::AutoscalingMetricSpec
- Inherits:
-
Object
- Object
- Google::Cloud::VisionAI::V1::AutoscalingMetricSpec
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/visionai/v1/platform.rb
Overview
The metric specification that defines the target resource utilization (CPU utilization, accelerator's duty cycle, and so on) for calculating the desired replica count.
Instance Attribute Summary collapse
-
#metric_name ⇒ ::String
Required.
-
#target ⇒ ::Integer
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.
Instance Attribute Details
#metric_name ⇒ ::String
Returns 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
.
2006 2007 2008 2009 |
# File 'proto_docs/google/cloud/visionai/v1/platform.rb', line 2006 class AutoscalingMetricSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#target ⇒ ::Integer
Returns 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.
2006 2007 2008 2009 |
# File 'proto_docs/google/cloud/visionai/v1/platform.rb', line 2006 class AutoscalingMetricSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |