MetricIdentifierV2.Selector Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.