Class HorizontalPodAutoscalerStatus

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class HorizontalPodAutoscalerStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
    • Constructor Detail

      • HorizontalPodAutoscalerStatus

        public HorizontalPodAutoscalerStatus​(java.util.List<HorizontalPodAutoscalerCondition> conditions,
                                             java.util.List<MetricStatus> currentMetrics,
                                             @NonNull
                                             @NonNull java.lang.Number currentReplicas,
                                             @NonNull
                                             @NonNull java.lang.Number desiredReplicas,
                                             java.time.OffsetDateTime lastScaleTime,
                                             java.lang.Number observedGeneration)
      • HorizontalPodAutoscalerStatus

        public HorizontalPodAutoscalerStatus()
    • Method Detail

      • getConditions

        public java.util.List<HorizontalPodAutoscalerCondition> getConditions()
        conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
      • getCurrentMetrics

        public java.util.List<MetricStatus> getCurrentMetrics()
        currentMetrics is the last read state of the metrics used by this autoscaler.
      • getCurrentReplicas

        @NonNull
        public @NonNull java.lang.Number getCurrentReplicas()
        currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
      • getDesiredReplicas

        @NonNull
        public @NonNull java.lang.Number getDesiredReplicas()
        desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
      • getLastScaleTime

        public java.time.OffsetDateTime getLastScaleTime()
      • getObservedGeneration

        public java.lang.Number getObservedGeneration()
        observedGeneration is the most recent generation observed by this autoscaler.
      • setConditions

        public void setConditions​(java.util.List<HorizontalPodAutoscalerCondition> conditions)
        conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
      • setCurrentMetrics

        public void setCurrentMetrics​(java.util.List<MetricStatus> currentMetrics)
        currentMetrics is the last read state of the metrics used by this autoscaler.
      • setCurrentReplicas

        public void setCurrentReplicas​(@NonNull
                                       @NonNull java.lang.Number currentReplicas)
        currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
      • setDesiredReplicas

        public void setDesiredReplicas​(@NonNull
                                       @NonNull java.lang.Number desiredReplicas)
        desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
      • setLastScaleTime

        public void setLastScaleTime​(java.time.OffsetDateTime lastScaleTime)
      • setObservedGeneration

        public void setObservedGeneration​(java.lang.Number observedGeneration)
        observedGeneration is the most recent generation observed by this autoscaler.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object