Share via


HorizontalPodAutoscalerSpecV2.Metrics Property

Definition

Gets the list of metrics that determine the desired replica count for the target resource.

[YamlDotNet.Serialization.YamlMember(Alias="metrics")]
public System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.MetricSpecV2> Metrics { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="metrics")>]
member this.Metrics : System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.MetricSpecV2>
Public ReadOnly Property Metrics As List(Of MetricSpecV2)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The metrics define how the scaling behavior of the HorizontalPodAutoscaler is controlled. Each metric can target various sources, such as external services, resource usage, or object states.

Applies to