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 Details

  • Constructor Details

    • V1HorizontalPodAutoscalerStatus

      public V1HorizontalPodAutoscalerStatus(Integer currentReplicas, Integer desiredReplicas)
  • Method Details

    • getCurrentReplicas

      public Integer getCurrentReplicas()
      currentReplicas is the current number of replicas of pods managed by this autoscaler.
      Returns:
      the currentReplicas property value
    • setCurrentReplicas

      public void setCurrentReplicas(Integer currentReplicas)
      Set the currentReplicas property value
      Parameters:
      currentReplicas - property value to set
    • currentReplicas

      public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas)
      Set currentReplicas in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerStatus for chaining.
    • getDesiredReplicas

      public Integer getDesiredReplicas()
      desiredReplicas is the desired number of replicas of pods managed by this autoscaler.
      Returns:
      the desiredReplicas property value
    • setDesiredReplicas

      public void setDesiredReplicas(Integer desiredReplicas)
      Set the desiredReplicas property value
      Parameters:
      desiredReplicas - property value to set
    • desiredReplicas

      public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas)
      Set desiredReplicas in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerStatus for chaining.
    • getCurrentCPUUtilizationPercentage

      public Integer 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

      public void setCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage)
      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

      public ZonedDateTime 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

      public void setLastScaleTime(ZonedDateTime lastScaleTime)
      Set the lastScaleTime property value
      Parameters:
      lastScaleTime - property value to set
    • lastScaleTime

      public V1HorizontalPodAutoscalerStatus lastScaleTime(ZonedDateTime lastScaleTime)
      Set lastScaleTime in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerStatus for chaining.
    • getObservedGeneration

      public Long getObservedGeneration()
      observedGeneration is the most recent generation observed by this autoscaler.
      Returns:
      the observedGeneration property value
    • setObservedGeneration

      public void setObservedGeneration(Long observedGeneration)
      Set the observedGeneration property value
      Parameters:
      observedGeneration - property value to set
    • observedGeneration

      public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration)
      Set observedGeneration in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerStatus for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object