HorizontalPodAutoscalerStatus class

HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.

Constructors

HorizontalPodAutoscalerStatus({List<HorizontalPodAutoscalerCondition>? conditions, List<MetricStatus>? currentMetrics, required int currentReplicas, required int desiredReplicas, DateTime? lastScaleTime, int? observedGeneration})
The main constructor.
const
HorizontalPodAutoscalerStatus.fromJson(Map<String, dynamic> json)
Creates a HorizontalPodAutoscalerStatus from JSON data.

Properties

conditions List<HorizontalPodAutoscalerCondition>?
Conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
final
currentMetrics List<MetricStatus>?
CurrentMetrics is the last read state of the metrics used by this autoscaler.
final
currentReplicas int
CurrentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
final
desiredReplicas int
DesiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
final
hashCode int
The hash code for this object.
no setterinherited
lastScaleTime DateTime?
LastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.
final
observedGeneration int?
ObservedGeneration is the most recent generation observed by this autoscaler.
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 HorizontalPodAutoscalerStatus 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<HorizontalPodAutoscalerStatus>
Creates a list of HorizontalPodAutoscalerStatus from JSON data.