MetricIdentifierV2
Class sealed net10.0
Represents a metric identifier in a Kubernetes context, primarily used to identify and specify a metric related to various Kubernetes resources or objects.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class MetricIdentifierV2{ // ...}Remarks
Section titled Remarks A metric identifier typically consists of a name that denotes the metric and an optional selector, which is used to specify additional filtering criteria for selecting specific metric instances. This class is designed to be serialized and deserialized in YAML format and is often used in conjunction with other Kubernetes resource configurations.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesNameget; setstring Gets or sets the name of the metric. This property specifies the identifier for the metric being measured or tracked.
Selectorget; set Represents a label selector used to filter Kubernetes resources. The selector enables the identification of a subset of objects based on their labels.