Class ResourceHealth
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ResourceHealth
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourceHealthBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceHealth extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourceHealthBuilder>, KubernetesResource
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceHealth()No args constructor for use in serializationResourceHealth(String health, String resourceID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceHealthBuilderedit()Map<String,Object>getAdditionalProperties()StringgetHealth()Health of the resource. can be one of:StringgetResourceID()ResourceID is the unique identifier of the resource.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHealth(String health)Health of the resource. can be one of:voidsetResourceID(String resourceID)ResourceID is the unique identifier of the resource.ResourceHealthBuildertoBuilder()
-
-
-
Method Detail
-
getHealth
public String 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.
-
setHealth
public void setHealth(String health)
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.
-
getResourceID
public String getResourceID()
ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
-
setResourceID
public void setResourceID(String resourceID)
ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
-
edit
public ResourceHealthBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ResourceHealthBuilder>
-
toBuilder
public ResourceHealthBuilder toBuilder()
-
-