MetricTargetV2 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a specification of a target value for a Kubernetes metric in version 2. Defines the target type and value criteria for monitoring and scaling resources.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class MetricTargetV2
[<YamlDotNet.Serialization.YamlSerializable>]
type MetricTargetV2 = class
Public NotInheritable Class MetricTargetV2
- Inheritance
-
MetricTargetV2
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Constructors
MetricTargetV2() |
Properties
AverageUtilization |
Gets or sets the target average utilization value for the metric. This property represents the percentage of resource consumption (or similar utilization metric) that is used to define optimal scaling for a resource. The value should be provided as an integer percentage, or null if not specified. |
AverageValue |
Represents the average value of a metric target. This property specifies the average value associated with the target metric for monitoring or scaling purposes. |
Type |
Represents the type of metric target. This property specifies the kind of metric being targeted, such as "Value", "AverageValue", or "Utilization", to determine how the metric is interpreted and calculated for scaling purposes. |
Value |
Specifies the target value for the metric. This value is used to determine the desired state of the resource being measured. |