pub struct ComponentHealth {
pub component_name: String,
pub status: HealthState,
pub last_heartbeat: u64,
pub error_rate: f64,
pub latency_p99_ns: u64,
}Expand description
Health information for individual system components
Tracks the health status of specific components like connections, parsers, or processing pipelines.
Fields§
§component_name: StringName of the component being monitored
status: HealthStateCurrent health state of this component
last_heartbeat: u64Last successful heartbeat timestamp in nanoseconds
error_rate: f64Error rate as a fraction (0.0 to 1.0)
latency_p99_ns: u6499th percentile latency for this component in nanoseconds
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§const fn clone_from(&mut self, source: &Self)
const 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 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