kubernetes_asyncio.client.models.v2_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.v2_horizontal_pod_autoscaler_status.V2HorizontalPodAutoscalerStatus(conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'conditions': 'conditions', 'current_metrics': 'currentMetrics', 'current_replicas': 'currentReplicas', 'desired_replicas': 'desiredReplicas', 'last_scale_time': 'lastScaleTime', 'observed_generation': 'observedGeneration'}
property conditions

Gets the conditions of this V2HorizontalPodAutoscalerStatus. # noqa: E501

conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. # noqa: E501

Returns:

The conditions of this V2HorizontalPodAutoscalerStatus. # noqa: E501

Return type:

list[V2HorizontalPodAutoscalerCondition]

property current_metrics

Gets the current_metrics of this V2HorizontalPodAutoscalerStatus. # noqa: E501

currentMetrics is the last read state of the metrics used by this autoscaler. # noqa: E501

Returns:

The current_metrics of this V2HorizontalPodAutoscalerStatus. # noqa: E501

Return type:

list[V2MetricStatus]

property current_replicas

Gets the current_replicas of this V2HorizontalPodAutoscalerStatus. # noqa: E501

currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. # noqa: E501

Returns:

The current_replicas of this V2HorizontalPodAutoscalerStatus. # noqa: E501

Return type:

int

property desired_replicas

Gets the desired_replicas of this V2HorizontalPodAutoscalerStatus. # noqa: E501

desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. # noqa: E501

Returns:

The desired_replicas of this V2HorizontalPodAutoscalerStatus. # noqa: E501

Return type:

int

property last_scale_time

Gets the last_scale_time of this V2HorizontalPodAutoscalerStatus. # 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 V2HorizontalPodAutoscalerStatus. # noqa: E501

Return type:

datetime

property observed_generation

Gets the observed_generation of this V2HorizontalPodAutoscalerStatus. # noqa: E501

observedGeneration is the most recent generation observed by this autoscaler. # noqa: E501

Returns:

The observed_generation of this V2HorizontalPodAutoscalerStatus. # noqa: E501

Return type:

int

openapi_types = {'conditions': 'list[V2HorizontalPodAutoscalerCondition]', 'current_metrics': 'list[V2MetricStatus]', '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