ObjectMetricSourceV2
Class sealed net10.0
Represents a source for a metric that is associated with a specific Kubernetes object.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ObjectMetricSourceV2{ // ...}Remarks
Section titled Remarks 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.
Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesDescribedObjectget; 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.