Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AutoscalingMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AutoscalingMetricSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.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 ⇒ Fixnum
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 Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AutoscalingMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1AutoscalingMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AutoscalingMetricSpec
Returns a new instance of GoogleCloudAiplatformV1beta1AutoscalingMetricSpec.
1309 1310 1311 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_name ⇒ String
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
Corresponds to the JSON propertymetricName
1299 1300 1301 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1299 def metric_name @metric_name end |
#target ⇒ Fixnum
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.
Corresponds to the JSON property target
1307 1308 1309 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1307 def target @target end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1314 1315 1316 1317 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1314 def update!(**args) @metric_name = args[:metric_name] if args.key?(:metric_name) @target = args[:target] if args.key?(:target) end |