public sealed class AutoscalingMetricSpec : IMessage<AutoscalingMetricSpec>, IEquatable<AutoscalingMetricSpec>, IDeepCloneable<AutoscalingMetricSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class AutoscalingMetricSpec.
The metric specification that defines the target resource utilization
(CPU utilization, accelerator's duty cycle, and so on) for calculating the
desired replica count.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-25 UTC."],[[["This documentation covers the `AutoscalingMetricSpec` class within the Google Cloud AI Platform v1beta1 API, specifically version 1.0.0-beta09."],["The `AutoscalingMetricSpec` class is used to define the target resource utilization metrics, such as CPU utilization or accelerator duty cycle, which are used to calculate the desired number of machine replicas."],["It provides details on the class's inheritance, which stems from `object` and implements several interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `MetricName` property allows you to specify the resource metric name, supporting metrics such as `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` and `aiplatform.googleapis.com/prediction/online/cpu/utilization` for online prediction."],["The `Target` property specifies the desired resource utilization percentage (1-100), with a default value of 60% if not provided."]]],[]]