pub struct CollectorStats {
pub metrics_recorded: u64,
pub metrics_sent: u64,
pub metrics_dropped: u64,
pub buffer_overflows: u64,
pub last_flush_ns: u64,
pub flush_count: u64,
}Expand description
Statistics for a metric collector
Fields§
§metrics_recorded: u64Total number of metrics recorded by this collector
metrics_sent: u64Number of metrics successfully sent for processing
metrics_dropped: u64Number of metrics dropped due to channel backpressure
buffer_overflows: u64Number of times the ring buffer overflowed
last_flush_ns: u64Timestamp of the last flush operation in nanoseconds
flush_count: u64Total number of flush operations performed
Trait Implementations§
Source§impl Clone for CollectorStats
impl Clone for CollectorStats
Source§impl Debug for CollectorStats
impl Debug for CollectorStats
Source§impl Default for CollectorStats
impl Default for CollectorStats
Source§fn default() -> CollectorStats
fn default() -> CollectorStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CollectorStats
impl RefUnwindSafe for CollectorStats
impl Send for CollectorStats
impl Sync for CollectorStats
impl Unpin for CollectorStats
impl UnwindSafe for CollectorStats
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