Share via


ExternalMetricSourceV2.Metric Property

Definition

Represents the metric property utilized in the ExternalMetricSourceV2 class. This property is of type MetricIdentifierV2 and is used to identify and define a specific metric in the context of Kubernetes resource configurations.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Metric property is typically used to specify the name and any optional selector for a particular metric, allowing for detailed filtering or identification when integrating with Kubernetes metrics APIs or external monitoring tools.

Applies to