struct
Kubernetes::ResourceHealth
- Kubernetes::ResourceHealth
- Struct
- Value
- Object
Overview
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.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#health : String | Nil
Health of the resource.
-
#health=(health : String | Nil)
Health of the resource.
-
#resource_id : String | Nil
ResourceID is the unique identifier of the resource.
-
#resource_id=(resource_id : String | Nil)
ResourceID is the unique identifier of the resource.
Constructor Detail
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#
Macro Detail
macro field(name, type = nil, **options, &block)
#
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
def health : String | Nil
#
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.
def health=(health : String | Nil)
#
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.
def resource_id : String | Nil
#
ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
def resource_id=(resource_id : String | Nil)
#
ResourceID is the unique identifier of the resource. See the ResourceID type for more information.