Class V1HorizontalPodAutoscalerStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class V1HorizontalPodAutoscalerStatus
extends Object
current status of a horizontal pod autoscaler
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncurrentCPUUtilizationPercentage
(Integer currentCPUUtilizationPercentage) currentReplicas
(Integer currentReplicas) desiredReplicas
(Integer desiredReplicas) boolean
currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g.currentReplicas is the current number of replicas of pods managed by this autoscaler.desiredReplicas is the desired number of replicas of pods managed by this 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
setCurrentCPUUtilizationPercentage
(Integer currentCPUUtilizationPercentage) void
setCurrentReplicas
(Integer currentReplicas) void
setDesiredReplicas
(Integer desiredReplicas) void
setLastScaleTime
(OffsetDateTime lastScaleTime) void
setObservedGeneration
(Long observedGeneration) toString()
-
Field Details
-
SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE
- 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
-
V1HorizontalPodAutoscalerStatus
public V1HorizontalPodAutoscalerStatus()
-
-
Method Details
-
currentCPUUtilizationPercentage
public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) -
getCurrentCPUUtilizationPercentage
currentCPUUtilizationPercentage is the 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.- Returns:
- currentCPUUtilizationPercentage
-
setCurrentCPUUtilizationPercentage
-
currentReplicas
-
getCurrentReplicas
currentReplicas is the current number of replicas of pods managed by this autoscaler.- Returns:
- currentReplicas
-
setCurrentReplicas
-
desiredReplicas
-
getDesiredReplicas
desiredReplicas is the desired number of replicas of pods managed by this 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
-