Class V1HorizontalPodAutoscalerStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1HorizontalPodAutoscalerStatus
extends Object
current status of a horizontal pod autoscaler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrentCPUUtilizationPercentage
(Integer currentCPUUtilizationPercentage) currentReplicas
(Integer currentReplicas) desiredReplicas
(Integer desiredReplicas) boolean
Create an instance of V1HorizontalPodAutoscalerStatus given an JSON stringcurrentCPUUtilizationPercentage 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
(OffsetDateTime lastScaleTime) observedGeneration
(Long observedGeneration) void
setCurrentCPUUtilizationPercentage
(Integer currentCPUUtilizationPercentage) void
setCurrentReplicas
(Integer currentReplicas) void
setDesiredReplicas
(Integer desiredReplicas) void
setLastScaleTime
(OffsetDateTime lastScaleTime) void
setObservedGeneration
(Long observedGeneration) toJson()
Convert an instance of V1HorizontalPodAutoscalerStatus to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE
- See Also:
-
SERIALIZED_NAME_CURRENT_REPLICAS
- See Also:
-
SERIALIZED_NAME_DESIRED_REPLICAS
- See Also:
-
SERIALIZED_NAME_LAST_SCALE_TIME
- See Also:
-
SERIALIZED_NAME_OBSERVED_GENERATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1HorizontalPodAutoscalerStatus
public V1HorizontalPodAutoscalerStatus()
-
-
Method Details
-
currentCPUUtilizationPercentage
public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) -
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
-
currentReplicas
-
getCurrentReplicas
currentReplicas is the current number of replicas of pods managed by this autoscaler.- Returns:
- currentReplicas
-
setCurrentReplicas
-
desiredReplicas
-
getDesiredReplicas
desiredReplicas is the desired number of replicas of pods managed by this autoscaler.- Returns:
- desiredReplicas
-
setDesiredReplicas
-
lastScaleTime
-
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
-
observedGeneration
-
getObservedGeneration
observedGeneration is the most recent generation observed by this autoscaler.- Returns:
- observedGeneration
-
setObservedGeneration
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1HorizontalPodAutoscalerStatus
-
fromJson
Create an instance of V1HorizontalPodAutoscalerStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1HorizontalPodAutoscalerStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1HorizontalPodAutoscalerStatus
-
toJson
Convert an instance of V1HorizontalPodAutoscalerStatus to an JSON string- Returns:
- JSON string
-