Struct metrix::instruments::Histogram [−][src]
pub struct Histogram { /* fields omitted */ }
For tracking values. E.g. request latencies
Methods
impl Histogram
[src]
impl Histogram
pub fn new_with_defaults<T: Into<String>>(name: T) -> Histogram
[src]
pub fn new_with_defaults<T: Into<String>>(name: T) -> Histogram
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
pub fn set_name<T: Into<String>>(&mut self, name: T)
[src]
pub fn set_name<T: Into<String>>(&mut self, name: T)
pub fn set_title<T: Into<String>>(&mut self, title: T)
[src]
pub fn set_title<T: Into<String>>(&mut self, title: T)
pub fn set_description<T: Into<String>>(&mut self, description: T)
[src]
pub fn set_description<T: Into<String>>(&mut self, description: T)
pub fn set_inactivity_limit(&mut self, limit: Duration)
[src]
pub fn set_inactivity_limit(&mut self, limit: Duration)
Sets the maximum amount of time this histogram may be inactive until no more snapshots are taken
Default is no inactivity tracking.
pub fn reset_after_inactivity(&mut self, reset: bool)
[src]
pub fn reset_after_inactivity(&mut self, reset: bool)
Reset the histogram if inactivity tracking was enabled and the histogram was inactive.
The default is true
. Only has an effect if a max_inactivity_duration
is set.
Trait Implementations
impl Instrument for Histogram
[src]
impl Instrument for Histogram
impl PutsSnapshot for Histogram
[src]
impl PutsSnapshot for Histogram
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
[src]
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
Puts the current snapshot values into the given Snapshot
thereby following the guidelines of PutsSnapshot
. Read more
impl Updates for Histogram
[src]
impl Updates for Histogram
fn update(&mut self, with: &Update)
[src]
fn update(&mut self, with: &Update)
Update the internal state according to the given Update
. Read more
impl Descriptive for Histogram
[src]
impl Descriptive for Histogram