pub struct ResourceHealth {
pub health: Option<String>,
pub resource_id: String,
}
Expand description
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.
Fields§
§health: Option<String>
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.
resource_id: String
ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
Trait Implementations§
Source§impl Clone for ResourceHealth
impl Clone for ResourceHealth
Source§fn clone(&self) -> ResourceHealth
fn clone(&self) -> ResourceHealth
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResourceHealth
impl Debug for ResourceHealth
Source§impl DeepMerge for ResourceHealth
impl DeepMerge for ResourceHealth
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ResourceHealth
impl Default for ResourceHealth
Source§fn default() -> ResourceHealth
fn default() -> ResourceHealth
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceHealth
impl<'de> Deserialize<'de> for ResourceHealth
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResourceHealth
impl PartialEq for ResourceHealth
Source§impl Serialize for ResourceHealth
impl Serialize for ResourceHealth
impl StructuralPartialEq for ResourceHealth
Auto Trait Implementations§
impl Freeze for ResourceHealth
impl RefUnwindSafe for ResourceHealth
impl Send for ResourceHealth
impl Sync for ResourceHealth
impl Unpin for ResourceHealth
impl UnwindSafe for ResourceHealth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more