Class V1HorizontalPodAutoscalerStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1HorizontalPodAutoscalerStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1HorizontalPodAutoscalerStatus
extends Object
current status of a horizontal pod autoscaler
-
Field Summary
-
Constructor Summary
ConstructorDescriptionV1HorizontalPodAutoscalerStatus
(Integer currentReplicas, Integer desiredReplicas) -
Method Summary
Modifier and TypeMethodDescriptioncurrentCPUUtilizationPercentage
(Integer currentCPUUtilizationPercentage) Set currentCPUUtilizationPercentage in a chainable fashion.currentReplicas
(Integer currentReplicas) Set currentReplicas in a chainable fashion.desiredReplicas
(Integer desiredReplicas) Set desiredReplicas in a chainable fashion.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
(ZonedDateTime lastScaleTime) Set lastScaleTime in a chainable fashion.observedGeneration
(Long observedGeneration) Set observedGeneration in a chainable fashion.void
setCurrentCPUUtilizationPercentage
(Integer currentCPUUtilizationPercentage) Set the currentCPUUtilizationPercentage property valuevoid
setCurrentReplicas
(Integer currentReplicas) Set the currentReplicas property valuevoid
setDesiredReplicas
(Integer desiredReplicas) Set the desiredReplicas property valuevoid
setLastScaleTime
(ZonedDateTime lastScaleTime) Set the lastScaleTime property valuevoid
setObservedGeneration
(Long observedGeneration) Set the observedGeneration property valuetoString()
-
Field Details
-
JSON_PROPERTY_CURRENT_REPLICAS
- See Also:
-
JSON_PROPERTY_DESIRED_REPLICAS
- See Also:
-
JSON_PROPERTY_CURRENT_C_P_U_UTILIZATION_PERCENTAGE
- See Also:
-
JSON_PROPERTY_LAST_SCALE_TIME
- See Also:
-
JSON_PROPERTY_OBSERVED_GENERATION
- See Also:
-
-
Constructor Details
-
V1HorizontalPodAutoscalerStatus
-
-
Method Details
-
getCurrentReplicas
currentReplicas is the current number of replicas of pods managed by this autoscaler.- Returns:
- the currentReplicas property value
-
setCurrentReplicas
Set the currentReplicas property value- Parameters:
currentReplicas
- property value to set
-
currentReplicas
Set currentReplicas in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerStatus for chaining.
-
getDesiredReplicas
desiredReplicas is the desired number of replicas of pods managed by this autoscaler.- Returns:
- the desiredReplicas property value
-
setDesiredReplicas
Set the desiredReplicas property value- Parameters:
desiredReplicas
- property value to set
-
desiredReplicas
Set desiredReplicas in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerStatus for chaining.
-
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:
- the currentCPUUtilizationPercentage property value
-
setCurrentCPUUtilizationPercentage
Set the currentCPUUtilizationPercentage property value- Parameters:
currentCPUUtilizationPercentage
- property value to set
-
currentCPUUtilizationPercentage
public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) Set currentCPUUtilizationPercentage in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerStatus for chaining.
-
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:
- the lastScaleTime property value
-
setLastScaleTime
Set the lastScaleTime property value- Parameters:
lastScaleTime
- property value to set
-
lastScaleTime
Set lastScaleTime in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerStatus for chaining.
-
getObservedGeneration
observedGeneration is the most recent generation observed by this autoscaler.- Returns:
- the observedGeneration property value
-
setObservedGeneration
Set the observedGeneration property value- Parameters:
observedGeneration
- property value to set
-
observedGeneration
Set observedGeneration in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-