Struct k8s_openapi::api::core::v1::ResourceHealth
source · 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 and historical health changes are planned to be added in future iterations of a KEP.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)