kubernetes_asyncio.client.models.v1_horizontal_pod_autoscaler_status module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_horizontal_pod_autoscaler_status.V1HorizontalPodAutoscalerStatus(current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'current_cpu_utilization_percentage': 'currentCPUUtilizationPercentage', 'current_replicas': 'currentReplicas', 'desired_replicas': 'desiredReplicas', 'last_scale_time': 'lastScaleTime', 'observed_generation': 'observedGeneration'}
- property current_cpu_utilization_percentage
Gets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. # noqa: E501
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. # noqa: E501
- Returns:
The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. # noqa: E501
- Return type:
int
- property current_replicas
Gets the current_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501
currentReplicas is the current number of replicas of pods managed by this autoscaler. # noqa: E501
- Returns:
The current_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501
- Return type:
int
- property desired_replicas
Gets the desired_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501
desiredReplicas is the desired number of replicas of pods managed by this autoscaler. # noqa: E501
- Returns:
The desired_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501
- Return type:
int
- property last_scale_time
Gets the last_scale_time of this V1HorizontalPodAutoscalerStatus. # noqa: E501
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. # noqa: E501
- Returns:
The last_scale_time of this V1HorizontalPodAutoscalerStatus. # noqa: E501
- Return type:
datetime
- property observed_generation
Gets the observed_generation of this V1HorizontalPodAutoscalerStatus. # noqa: E501
observedGeneration is the most recent generation observed by this autoscaler. # noqa: E501
- Returns:
The observed_generation of this V1HorizontalPodAutoscalerStatus. # noqa: E501
- Return type:
int
- openapi_types = {'current_cpu_utilization_percentage': 'int', 'current_replicas': 'int', 'desired_replicas': 'int', 'last_scale_time': 'datetime', 'observed_generation': 'int'}
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model