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."],[[["`AutoscalingMetricSpec` is a class in the Google Cloud AI Platform v1beta1 API that defines the target resource utilization for calculating the desired replica count."],["The class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from `object`."],["The `MetricName` property is a required string that specifies the resource metric name, with supported metrics including accelerator duty cycle and CPU utilization for online prediction."],["The `Target` property is an integer that represents the desired resource utilization percentage, with a default value of 60 if not set."],["The class offers two constructors: a parameterless `AutoscalingMetricSpec()` and a `AutoscalingMetricSpec(AutoscalingMetricSpec other)` which takes another `AutoscalingMetricSpec` object as parameter."]]],[]]