pub struct ContextMetricsDelta {
pub interval_secs: f64,
pub publications_added: u64,
pub publications_removed: u64,
pub send_calls: u64,
pub packets_sent: u64,
pub bytes_sent: u64,
pub send_errors: u64,
}Expand description
The difference between two cumulative context metrics snapshots.
This contains only counter-based deltas over the sampled interval. Gauge-like values such as active publication counts are intentionally not included here; callers should inspect those directly from the latest snapshot instead.
Fields§
§interval_secs: f64§publications_added: u64§publications_removed: u64§send_calls: u64§packets_sent: u64§bytes_sent: u64§send_errors: u64Implementations§
Source§impl ContextMetricsDelta
impl ContextMetricsDelta
Sourcepub fn send_calls_per_sec(&self) -> f64
pub fn send_calls_per_sec(&self) -> f64
Returns the average send call count per second over the sampled interval.
Sourcepub fn packets_per_sec(&self) -> f64
pub fn packets_per_sec(&self) -> f64
Returns the average packets sent per second over the sampled interval.
Sourcepub fn bytes_per_sec(&self) -> f64
pub fn bytes_per_sec(&self) -> f64
Returns the average bytes sent per second over the sampled interval.
Sourcepub fn send_errors_per_sec(&self) -> f64
pub fn send_errors_per_sec(&self) -> f64
Returns the average send error count per second over the sampled interval.
Trait Implementations§
Source§impl Clone for ContextMetricsDelta
impl Clone for ContextMetricsDelta
Source§fn clone(&self) -> ContextMetricsDelta
fn clone(&self) -> ContextMetricsDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContextMetricsDelta
impl Debug for ContextMetricsDelta
Source§impl PartialEq for ContextMetricsDelta
impl PartialEq for ContextMetricsDelta
impl StructuralPartialEq for ContextMetricsDelta
Auto Trait Implementations§
impl Freeze for ContextMetricsDelta
impl RefUnwindSafe for ContextMetricsDelta
impl Send for ContextMetricsDelta
impl Sync for ContextMetricsDelta
impl Unpin for ContextMetricsDelta
impl UnsafeUnpin for ContextMetricsDelta
impl UnwindSafe for ContextMetricsDelta
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