Skip to content
Docs Try Aspire

ObjectMetricSourceV2

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a source for a metric that is associated with a specific Kubernetes object.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ObjectMetricSourceV2
{
// ...
}
This class is part of the Kubernetes metrics API and defines a metric for a target object. It specifies the metric to be observed, the Kubernetes resource (object) being described, and the target value or configuration for that metric. The ObjectMetricSourceV2 is typically used for workloads or resources where metrics are tied to a specific Kubernetes object.
View all constructors
DescribedObjectget; set
Represents the Kubernetes object being described in the metric source.
Metricget; set
Represents the metric details associated with an ObjectMetricSourceV2 instance.
Targetget; set
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.
View all properties