public sealed class BackendCustomMetric : IMessage<BackendCustomMetric>, IEquatable<BackendCustomMetric>, IDeepCloneable<BackendCustomMetric>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class BackendCustomMetric.
Custom Metrics are used for CUSTOM_METRICS balancing_mode.
Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression a-z? which means that the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis documentation provides reference and code samples for the \u003ccode\u003eBackendCustomMetric\u003c/code\u003e class within the Compute Engine v1 API, which is used for \u003ccode\u003eCUSTOM_METRICS\u003c/code\u003e balancing mode.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eBackendCustomMetric\u003c/code\u003e is 3.6.0, and there are numerous previous versions available, ranging from 3.5.0 down to 1.0.0, all documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackendCustomMetric\u003c/code\u003e class allows you to define custom utilization signals, set a target utilization with \u003ccode\u003eMaxUtilization\u003c/code\u003e, and perform dry runs to collect data without affecting load balancing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackendCustomMetric\u003c/code\u003e class includes properties such as \u003ccode\u003eDryRun\u003c/code\u003e, \u003ccode\u003eMaxUtilization\u003c/code\u003e, and \u003ccode\u003eName\u003c/code\u003e, alongside constructors and inherited members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackendCustomMetric\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and resides in the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, within the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]