MetricTargetV2
Class sealed net10.0
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.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class MetricTargetV2{ // ...} 5 members
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesAverageUtilizationget; setint? 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.
AverageValueget; setstring Represents the average value of a metric target. This property specifies the average value associated with the target metric for monitoring or scaling purposes.
Typeget; setstring 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.
Valueget; setstring Specifies the target value for the metric. This value is used to determine the desired state of the resource being measured.