ContainerResourceMetricStatus class

ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). 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.

Constructors

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

Properties

container String
Container is the name of the container in the pods of the scaling target.
final
current MetricValueStatus
Current contains the current value for the given metric.
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a ContainerResourceMetricStatus 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<ContainerResourceMetricStatus>
Creates a list of ContainerResourceMetricStatus from JSON data.