Struct metrix::instruments::other_instruments::ValueMeter [−][src]
pub struct ValueMeter { /* fields omitted */ }
A meter that is ticked by values instead of observations
Methods
impl ValueMeter
[src]
impl ValueMeter
pub fn new_with_defaults<T: Into<String>>(name: T) -> ValueMeter
[src]
pub fn new_with_defaults<T: Into<String>>(name: T) -> ValueMeter
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_lower_cutoff(&mut self, cutoff: f64)
[src]
pub fn set_lower_cutoff(&mut self, cutoff: f64)
Rates below this value will be shown as zero.
Default is 0.001
pub fn set_one_minute_rate_enabled(&mut self, enabled: bool)
[src]
pub fn set_one_minute_rate_enabled(&mut self, enabled: bool)
Enable tracking of one minute rates.
Default: enabled
pub fn set_five_minute_rate_enabled(&mut self, enabled: bool)
[src]
pub fn set_five_minute_rate_enabled(&mut self, enabled: bool)
Enable tracking of five minute rates.
Default: disabled
pub fn set_fifteen_minute_rate_enabled(&mut self, enabled: bool)
[src]
pub fn set_fifteen_minute_rate_enabled(&mut self, enabled: bool)
Enable tracking of one minute rates.
Default: disabled
Trait Implementations
impl Instrument for ValueMeter
[src]
impl Instrument for ValueMeter
impl PutsSnapshot for ValueMeter
[src]
impl PutsSnapshot for ValueMeter
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 ValueMeter
[src]
impl Updates for ValueMeter
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 ValueMeter
[src]
impl Descriptive for ValueMeter
Auto Trait Implementations
impl Send for ValueMeter
impl Send for ValueMeter
impl !Sync for ValueMeter
impl !Sync for ValueMeter