pub struct TimeBucket {
pub start_ms: i64,
pub end_ms: i64,
pub sum: f64,
pub count: u64,
pub min: f64,
pub max: f64,
}Expand description
Fixed-size time bucket for aggregating metrics over time periods.
Fields§
§start_ms: i64Bucket start time (inclusive).
end_ms: i64Bucket end time (exclusive).
sum: f64Sum of values in this bucket.
count: u64Count of values in this bucket.
min: f64Minimum value in this bucket.
max: f64Maximum value in this bucket.
Implementations§
Source§impl TimeBucket
impl TimeBucket
Trait Implementations§
Source§impl Clone for TimeBucket
impl Clone for TimeBucket
Source§fn clone(&self) -> TimeBucket
fn clone(&self) -> TimeBucket
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 moreAuto Trait Implementations§
impl Freeze for TimeBucket
impl RefUnwindSafe for TimeBucket
impl Send for TimeBucket
impl Sync for TimeBucket
impl Unpin for TimeBucket
impl UnwindSafe for TimeBucket
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