Share via


MetricIdentifierV2.Selector Property

Definition

Represents a label selector used to filter Kubernetes resources. The selector enables the identification of a subset of objects based on their labels.

[YamlDotNet.Serialization.YamlMember(Alias="selector")]
public Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 Selector { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="selector")>]
member this.Selector : Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 with get, set
Public Property Selector As LabelSelectorV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

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.

Applies to