HorizontalPodAutoscalerStatus class
Current status of a horizontal pod autoscaler.
Constructors
- HorizontalPodAutoscalerStatus({int? currentCPUUtilizationPercentage, 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
- currentCPUUtilizationPercentage → int?
-
Current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.
final
- currentReplicas → int
-
Current number of replicas of pods managed by this autoscaler.
final
- desiredReplicas → int
-
Desired number of replicas of pods managed by this autoscaler.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastScaleTime → DateTime?
-
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?
-
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< list) → List<String, dynamic> >HorizontalPodAutoscalerStatus> - Creates a list of HorizontalPodAutoscalerStatus from JSON data.