Class ResourceHealth

    • Constructor Detail

      • ResourceHealth

        public ResourceHealth()
        No args constructor for use in serialization
      • ResourceHealth

        public ResourceHealth​(String health,
                              String resourceID)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)