ContainerResourceMetricSource class

ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.

Constructors

ContainerResourceMetricSource({required String container, required String name, required MetricTarget target})
The main constructor.
const
ContainerResourceMetricSource.fromJson(Map<String, dynamic> json)
Creates a ContainerResourceMetricSource from JSON data.

Properties

container String
Container is the name of the container in the pods of the scaling target.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Name is the name of the resource in question.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target MetricTarget
Target specifies the target value for the given metric.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a ContainerResourceMetricSource instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<ContainerResourceMetricSource>
Creates a list of ContainerResourceMetricSource from JSON data.