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})
-
Default constructor.
const
-
ContainerResourceMetricStatus.fromJson(Map<
String, dynamic> json) -
Creates a ContainerResourceMetricStatus from JSON data.
factory
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