Class V2HorizontalPodAutoscalerStatus
java.lang.Object
io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-12-05T08:14:34.919Z[Etc/UTC]")
public class V2HorizontalPodAutoscalerStatus
extends Object
HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem
(V2HorizontalPodAutoscalerCondition conditionsItem) addCurrentMetricsItem
(V2MetricStatus currentMetricsItem) conditions
(List<V2HorizontalPodAutoscalerCondition> conditions) currentMetrics
(List<V2MetricStatus> currentMetrics) currentReplicas
(Integer currentReplicas) desiredReplicas
(Integer desiredReplicas) boolean
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.currentMetrics is the last read state of the metrics used by this autoscaler.currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.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.observedGeneration is the most recent generation observed by this autoscaler.int
hashCode()
lastScaleTime
(OffsetDateTime lastScaleTime) observedGeneration
(Long observedGeneration) void
setConditions
(List<V2HorizontalPodAutoscalerCondition> conditions) void
setCurrentMetrics
(List<V2MetricStatus> currentMetrics) void
setCurrentReplicas
(Integer currentReplicas) void
setDesiredReplicas
(Integer desiredReplicas) void
setLastScaleTime
(OffsetDateTime lastScaleTime) void
setObservedGeneration
(Long observedGeneration) toString()
-
Field Details
-
SERIALIZED_NAME_CONDITIONS
- See Also:
-
SERIALIZED_NAME_CURRENT_METRICS
- See Also:
-
SERIALIZED_NAME_CURRENT_REPLICAS
- See Also:
-
SERIALIZED_NAME_DESIRED_REPLICAS
- See Also:
-
SERIALIZED_NAME_LAST_SCALE_TIME
- See Also:
-
SERIALIZED_NAME_OBSERVED_GENERATION
- See Also:
-
-
Constructor Details
-
V2HorizontalPodAutoscalerStatus
public V2HorizontalPodAutoscalerStatus()
-
-
Method Details
-
conditions
public V2HorizontalPodAutoscalerStatus conditions(List<V2HorizontalPodAutoscalerCondition> conditions) -
addConditionsItem
public V2HorizontalPodAutoscalerStatus addConditionsItem(V2HorizontalPodAutoscalerCondition conditionsItem) -
getConditions
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.- Returns:
- conditions
-
setConditions
-
currentMetrics
-
addCurrentMetricsItem
-
getCurrentMetrics
currentMetrics is the last read state of the metrics used by this autoscaler.- Returns:
- currentMetrics
-
setCurrentMetrics
-
currentReplicas
-
getCurrentReplicas
currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.- Returns:
- currentReplicas
-
setCurrentReplicas
-
desiredReplicas
-
getDesiredReplicas
desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.- Returns:
- desiredReplicas
-
setDesiredReplicas
-
lastScaleTime
-
getLastScaleTime
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.- Returns:
- lastScaleTime
-
setLastScaleTime
-
observedGeneration
-
getObservedGeneration
observedGeneration is the most recent generation observed by this autoscaler.- Returns:
- observedGeneration
-
setObservedGeneration
-
equals
-
hashCode
public int hashCode() -
toString
-