pub struct RatioQuery { /* private fields */ }Expand description
Builder for calculating ratios between two events.
Implementations§
Source§impl RatioQuery
impl RatioQuery
Sourcepub fn last_seconds(self, n: usize) -> Option<f64>
pub fn last_seconds(self, n: usize) -> Option<f64>
Calculate ratio over the last N seconds.
Sourcepub fn last_minutes(self, n: usize) -> Option<f64>
pub fn last_minutes(self, n: usize) -> Option<f64>
Calculate ratio over the last N minutes.
Sourcepub fn last_hours(self, n: usize) -> Option<f64>
pub fn last_hours(self, n: usize) -> Option<f64>
Calculate ratio over the last N hours.
Sourcepub fn last_weeks(self, n: usize) -> Option<f64>
pub fn last_weeks(self, n: usize) -> Option<f64>
Calculate ratio over the last N weeks.
Sourcepub fn last_months(self, n: usize) -> Option<f64>
pub fn last_months(self, n: usize) -> Option<f64>
Calculate ratio over the last N months.
Sourcepub fn last_years(self, n: usize) -> Option<f64>
pub fn last_years(self, n: usize) -> Option<f64>
Calculate ratio over the last N years.
Auto Trait Implementations§
impl Freeze for RatioQuery
impl !RefUnwindSafe for RatioQuery
impl Send for RatioQuery
impl Sync for RatioQuery
impl Unpin for RatioQuery
impl !UnwindSafe for RatioQuery
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