pub struct BucketStats {
pub timestamp: u64,
pub events_processed: usize,
pub events_dropped: usize,
pub avg_latency_us: f64,
pub p99_latency_us: u64,
}Expand description
Statistics for a time bucket
Fields§
§timestamp: u64Unix timestamp in seconds for this bucket
events_processed: usizeNumber of events processed in this time bucket
events_dropped: usizeNumber of events dropped in this time bucket
avg_latency_us: f64Average latency in microseconds for this bucket
p99_latency_us: u6499th percentile latency in microseconds for this bucket
Trait Implementations§
Source§impl Clone for BucketStats
impl Clone for BucketStats
Source§fn clone(&self) -> BucketStats
fn clone(&self) -> BucketStats
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 moreSource§impl Debug for BucketStats
impl Debug for BucketStats
Source§impl<'de> Deserialize<'de> for BucketStats
impl<'de> Deserialize<'de> for BucketStats
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
Auto Trait Implementations§
impl Freeze for BucketStats
impl RefUnwindSafe for BucketStats
impl Send for BucketStats
impl Sync for BucketStats
impl Unpin for BucketStats
impl UnwindSafe for BucketStats
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§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter