MetricSpec specifies how to scale based on a single metric (only type
and one other matching field should be set at once).
Name | Type | Description | Notes |
---|---|---|---|
container_resource | V2ContainerResourceMetricSource | [optional] | |
external | V2ExternalMetricSource | [optional] | |
object | V2ObjectMetricSource | [optional] | |
pods | V2PodsMetricSource | [optional] | |
resource | V2ResourceMetricSource | [optional] | |
type | str | type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled |