Struct metrix::instruments::Meter [−][src]
pub struct Meter { /* fields omitted */ }
For measuring rates, e.g. request/s
This meter count occurences. An occurrence with values is counted as 1 occurence.
To get rates on values use instruments::other_instruments::ValeMeter
Methods
impl Meter
[src]
impl Meter
pub fn new_with_defaults<T: Into<String>>(name: T) -> Meter
[src]
pub fn new_with_defaults<T: Into<String>>(name: T) -> Meter
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)
Trait Implementations
impl Instrument for Meter
[src]
impl Instrument for Meter
impl PutsSnapshot for Meter
[src]
impl PutsSnapshot for Meter
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 Meter
[src]
impl Updates for Meter
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 Meter
[src]
impl Descriptive for Meter