kubernetes.aio.client.models.v1_resource_health module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_resource_health.V1ResourceHealth(health=None, message=None, resource_id=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 = {'health': 'health', 'message': 'message', 'resource_id': 'resourceID'}¶
- property health¶
Gets the health of this V1ResourceHealth. # noqa: E501
Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn’t been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status. # noqa: E501
- Returns:
The health of this V1ResourceHealth. # noqa: E501
- Return type:
str
- property message¶
Gets the message of this V1ResourceHealth. # noqa: E501
Message provides human-readable context for Health (e.g. “ECC error count exceeded threshold”). This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise. # noqa: E501
- Returns:
The message of this V1ResourceHealth. # noqa: E501
- Return type:
str
- openapi_types = {'health': 'str', 'message': 'str', 'resource_id': 'str'}¶
- property resource_id¶
Gets the resource_id of this V1ResourceHealth. # noqa: E501
ResourceID is the unique identifier of the resource. See the ResourceID type for more information. # noqa: E501
- Returns:
The resource_id of this V1ResourceHealth. # noqa: E501
- Return type:
str
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model