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 Details

    • SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE

      public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE
      See Also:
    • SERIALIZED_NAME_CURRENT_REPLICAS

      public static final String SERIALIZED_NAME_CURRENT_REPLICAS
      See Also:
    • SERIALIZED_NAME_DESIRED_REPLICAS

      public static final String SERIALIZED_NAME_DESIRED_REPLICAS
      See Also:
    • SERIALIZED_NAME_LAST_SCALE_TIME

      public static final String SERIALIZED_NAME_LAST_SCALE_TIME
      See Also:
    • SERIALIZED_NAME_OBSERVED_GENERATION

      public static final String SERIALIZED_NAME_OBSERVED_GENERATION
      See Also:
  • Constructor Details

    • V1HorizontalPodAutoscalerStatus

      public V1HorizontalPodAutoscalerStatus()
  • Method Details

    • currentCPUUtilizationPercentage

      public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage)
    • getCurrentCPUUtilizationPercentage

      @Nullable 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:
      currentCPUUtilizationPercentage
    • setCurrentCPUUtilizationPercentage

      public void setCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage)
    • currentReplicas

      public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas)
    • getCurrentReplicas

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

      public void setCurrentReplicas(Integer currentReplicas)
    • desiredReplicas

      public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas)
    • getDesiredReplicas

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

      public void setDesiredReplicas(Integer desiredReplicas)
    • lastScaleTime

      public V1HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTime)
    • getLastScaleTime

      @Nullable public OffsetDateTime 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

      public void setLastScaleTime(OffsetDateTime lastScaleTime)
    • observedGeneration

      public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration)
    • getObservedGeneration

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

      public void setObservedGeneration(Long observedGeneration)
    • 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