pub struct ComponentHealth {
pub name: String,
pub status: HealthStatus,
pub metrics: Vec<MetricsSnapshot>,
}Expand description
Health + metrics bundle for a single named component.
Fields§
§name: StringComponent name as registered with the aggregator.
status: HealthStatusHealth status at the time of collection.
metrics: Vec<MetricsSnapshot>All metrics emitted by this component.
Implementations§
Source§impl ComponentHealth
impl ComponentHealth
pub fn to_json_value(&self) -> Value
Trait Implementations§
Source§impl Clone for ComponentHealth
impl Clone for ComponentHealth
Source§fn clone(&self) -> ComponentHealth
fn clone(&self) -> ComponentHealth
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ComponentHealth
impl RefUnwindSafe for ComponentHealth
impl Send for ComponentHealth
impl Sync for ComponentHealth
impl Unpin for ComponentHealth
impl UnsafeUnpin for ComponentHealth
impl UnwindSafe for ComponentHealth
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