Skip to content
Docs Try Aspire

ObjectMetricSourceV2 Properties

Class Properties 3 members
Represents a source for a metric that is associated with a specific Kubernetes object.
Represents the Kubernetes object being described in the metric source.
public CrossVersionObjectReferenceV2 DescribedObject { get; set; }
The DescribedObject property is a reference to the specific object in the Kubernetes cluster to which the metric source applies. This enables metrics to be collected and applied to custom resources beyond built-in Kubernetes objects.
Represents the metric details associated with an ObjectMetricSourceV2 instance.
public MetricIdentifierV2 Metric { get; set; }
This property specifies the metric identifier, which includes the metric's name and an optional selector used for filtering or targeting specific metric instances. It provides the necessary data to link and describe metrics in relation to a Kubernetes resource.
Specifies the target value and criteria for a metric in a Kubernetes resource. This property defines the desired goal or threshold for the given metric to be used for monitoring or scaling purposes. It includes attributes such as type, value, average value, and utilization to determine the metric target.
public MetricTargetV2 Target { get; set; }