Share via


ContainerResourceMetricSourceV2 Class

Definition

Represents a metric source that is defined by a resource usage of a specific container. This is used for scaling purposes in a Kubernetes environment, relying on container-level metrics.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class ContainerResourceMetricSourceV2
[<YamlDotNet.Serialization.YamlSerializable>]
type ContainerResourceMetricSourceV2 = class
Public NotInheritable Class ContainerResourceMetricSourceV2
Inheritance
ContainerResourceMetricSourceV2
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

ContainerResourceMetricSourceV2()

Properties

Container

Gets or sets the name of the container associated with the metric. It specifies the container within a pod to which the resource metric applies.

Name

Gets or sets the name of the resource metric.

Target

Specifies the target for the metric being monitored in a container. Represents an instance of MetricTargetV2 which defines the thresholds and values for the metric.

Applies to