Class V1ResourceHealth
java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceHealth
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ResourceHealth
extends Object
ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1ResourceHealth
Create an instance of V1ResourceHealth given an JSON stringHealth of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy.ResourceID is the unique identifier of the resource.int
hashCode()
resourceID
(String resourceID) void
void
setResourceID
(String resourceID) toJson()
Convert an instance of V1ResourceHealth to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_HEALTH
- See Also:
-
SERIALIZED_NAME_RESOURCE_I_D
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ResourceHealth
public V1ResourceHealth()
-
-
Method Details
-
health
-
getHealth
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.- Returns:
- health
-
setHealth
-
resourceID
-
getResourceID
ResourceID is the unique identifier of the resource. See the ResourceID type for more information.- Returns:
- resourceID
-
setResourceID
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1ResourceHealth
-
fromJson
Create an instance of V1ResourceHealth given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ResourceHealth
- Throws:
IOException
- if the JSON string is invalid with respect to V1ResourceHealth
-
toJson
Convert an instance of V1ResourceHealth to an JSON string- Returns:
- JSON string
-