kubernetes_asyncio.client.models.v2_metric_target 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_metric_target.V2MetricTarget(average_utilization=None, average_value=None, type=None, value=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 = {'average_utilization': 'averageUtilization', 'average_value': 'averageValue', 'type': 'type', 'value': 'value'}
property average_utilization

Gets the average_utilization of this V2MetricTarget. # noqa: E501

averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type # noqa: E501

Returns:

The average_utilization of this V2MetricTarget. # noqa: E501

Return type:

int

property average_value

Gets the average_value of this V2MetricTarget. # noqa: E501

averageValue is the target value of the average of the metric across all relevant pods (as a quantity) # noqa: E501

Returns:

The average_value of this V2MetricTarget. # noqa: E501

Return type:

str

openapi_types = {'average_utilization': 'int', 'average_value': 'str', 'type': 'str', 'value': 'str'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property type

Gets the type of this V2MetricTarget. # noqa: E501

type represents whether the metric type is Utilization, Value, or AverageValue # noqa: E501

Returns:

The type of this V2MetricTarget. # noqa: E501

Return type:

str

property value

Gets the value of this V2MetricTarget. # noqa: E501

value is the target value of the metric (as a quantity). # noqa: E501

Returns:

The value of this V2MetricTarget. # noqa: E501

Return type:

str