com.coralogix.zio.k8s.model.autoscaling.v1
HorizontalPodAutoscalerStatus
Companion object HorizontalPodAutoscalerStatus
case class HorizontalPodAutoscalerStatus(currentCPUUtilizationPercentage: Optional[Int] = Optional.Absent, currentReplicas: Int, desiredReplicas: Int, lastScaleTime: Optional[Time] = Optional.Absent, observedGeneration: Optional[Long] = Optional.Absent) extends Product with Serializable
current status of a horizontal pod autoscaler
- currentCPUUtilizationPercentage
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.
- currentReplicas
current number of replicas of pods managed by this autoscaler.
- desiredReplicas
desired number of replicas of pods managed by this autoscaler.
- observedGeneration
most recent generation observed by this autoscaler.
- Alphabetic
- By Inheritance
- HorizontalPodAutoscalerStatus
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
HorizontalPodAutoscalerStatus(currentCPUUtilizationPercentage: Optional[Int] = Optional.Absent, currentReplicas: Int, desiredReplicas: Int, lastScaleTime: Optional[Time] = Optional.Absent, observedGeneration: Optional[Long] = Optional.Absent)
- currentCPUUtilizationPercentage
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.
- currentReplicas
current number of replicas of pods managed by this autoscaler.
- desiredReplicas
desired number of replicas of pods managed by this autoscaler.
- observedGeneration
most recent generation observed by this autoscaler.
Value Members
- val currentCPUUtilizationPercentage: Optional[Int]
- val currentReplicas: Int
- val desiredReplicas: Int
-
def
getCurrentCPUUtilizationPercentage: IO[K8sFailure, Int]
current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g.
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.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getCurrentReplicas: IO[K8sFailure, Int]
current number of replicas of pods managed by this autoscaler.
current number of replicas of pods managed by this autoscaler.
This effect always succeeds, it is safe to use the field currentReplicas directly.
-
def
getDesiredReplicas: IO[K8sFailure, Int]
desired number of replicas of pods managed by this autoscaler.
desired number of replicas of pods managed by this autoscaler.
This effect always succeeds, it is safe to use the field desiredReplicas directly.
-
def
getLastScaleTime: IO[K8sFailure, Time]
Gets lastScaleTime.
Gets lastScaleTime.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getObservedGeneration: IO[K8sFailure, Long]
most recent generation observed by this autoscaler.
most recent generation observed by this autoscaler.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val lastScaleTime: Optional[Time]
- val observedGeneration: Optional[Long]