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-07 UTC."],[],[],null,["# Interface AutoscalingMetricSpecOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AutoscalingMetricSpecOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.visionai.v1.AutoscalingMetricSpecOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.visionai.v1.AutoscalingMetricSpecOrBuilder) \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;`\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;`\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;`"]]