Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
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-08-16 UTC."],[],[],null,["# Interface AutoscalingMetricSpecOrBuilder (1.32.0)\n\n public interface AutoscalingMetricSpecOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getMetricName()\n\n public abstract String getMetricName()\n\nRequired. The resource metric name.\nSupported metrics:\n\n- For Online Prediction:\n- `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`\n- `aiplatform.googleapis.com/prediction/online/cpu/utilization`\n\n`string metric_name = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getMetricNameBytes()\n\n public abstract ByteString getMetricNameBytes()\n\nRequired. The resource metric name.\nSupported metrics:\n\n- For Online Prediction:\n- `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`\n- `aiplatform.googleapis.com/prediction/online/cpu/utilization`\n\n`string metric_name = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getTarget()\n\n public abstract int getTarget()\n\nThe target resource utilization in percentage (1% - 100%) for the given\nmetric; once the real usage deviates from the target by a certain\npercentage, the machine replicas change. The default value is 60\n(representing 60%) if not provided.\n\n`int32 target = 2;`"]]