pub struct AggregatedMetrics {
pub total_instruments: usize,
pub total_messages_processed: u64,
pub total_dropped_messages: u64,
pub avg_latency_ns: u64,
pub max_latency_ns: u64,
pub p99_latency_ns: u64,
pub total_memory_usage_bytes: usize,
pub total_errors: u32,
pub overall_health_score: f64,
pub active_alerts: u32,
pub timestamp: u64,
}Expand description
Aggregated metrics across all actively monitored instruments
Provides system-wide performance metrics for monitoring overall health and identifying systemic issues that affect multiple instruments.
Fields§
§total_instruments: usizeNumber of instruments being monitored
total_messages_processed: u64Total messages processed across all instruments
total_dropped_messages: u64Total messages dropped due to processing issues
avg_latency_ns: u64Average latency across all instruments in nanoseconds
max_latency_ns: u64Maximum observed latency in nanoseconds
p99_latency_ns: u6499th percentile latency in nanoseconds
total_memory_usage_bytes: usizeTotal memory usage by the monitoring system in bytes
total_errors: u32Total error count across all components
overall_health_score: f64System-wide health score (0.0 = critical, 1.0 = perfect)
active_alerts: u32Number of currently active alerts
timestamp: u64Timestamp of metric collection in nanoseconds
Trait Implementations§
Source§impl Clone for AggregatedMetrics
impl Clone for AggregatedMetrics
Source§fn clone(&self) -> AggregatedMetrics
fn clone(&self) -> AggregatedMetrics
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 AggregatedMetrics
impl RefUnwindSafe for AggregatedMetrics
impl Send for AggregatedMetrics
impl Sync for AggregatedMetrics
impl Unpin for AggregatedMetrics
impl UnwindSafe for AggregatedMetrics
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