Skip to content
Docs Try Aspire

MetricTargetV2 Properties

Class Properties 4 members
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.
AverageUtilization Section titled AverageUtilization nullable int?
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.
public int? AverageUtilization { get; set; }
AverageValue Section titled AverageValue string
Represents the average value of a metric target. This property specifies the average value associated with the target metric for monitoring or scaling purposes.
public string AverageValue { get; set; }
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.
public string Type { get; set; }
Specifies the target value for the metric. This value is used to determine the desired state of the resource being measured.
public string Value { get; set; }