HorizontalPodAutoscalerSpecV2.Metrics 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.
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.