Skip to content
Docs Try Aspire

MetricIdentifierV2 Properties

Class Properties 2 members
Represents a metric identifier in a Kubernetes context, primarily used to identify and specify a metric related to various Kubernetes resources or objects.
Gets or sets the name of the metric. This property specifies the identifier for the metric being measured or tracked.
public string Name { get; set; }
The name is used to uniquely identify the metric and can be referenced in monitoring and metric collection systems.
Represents a label selector used to filter Kubernetes resources. The selector enables the identification of a subset of objects based on their labels.
public LabelSelectorV1 Selector { get; set; }
The selector operates based on two components: - MatchLabels: A dictionary of label key-value pairs for exact match filtering. - MatchExpressions: A set of conditions enabling complex filtering logic. This property allows dynamic selection of targeted resources through labels.