Struct tic::Meters
[−]
[src]
pub struct Meters<T> { pub data: FnvHashMap<String, u64>, pub data_float: FnvHashMap<String, f64>, // some fields omitted }
Meters
are the aggregated result of stats which
have been processed by the Receiver
.
Fields
data: FnvHashMap<String, u64>
a map of labels to their u64 values
data_float: FnvHashMap<String, f64>
a map of labels to their f64 values
Methods
impl<T: Hash + Eq + Send + Display + Clone> Meters<T>
[src]
fn new() -> Meters<T>
[src]
create a new empty set of Meters
fn set_count(&mut self, channel: T, value: u64)
[src]
update the count of events for a given metric
fn set_percentile(&mut self, channel: T, percentile: Percentile, value: u64)
[src]
update the Percentile
for a given metric
fn set_adev(&mut self, channel: T, tau: usize, value: f64)
[src]
update the Allan Deviation for a given metric at a specific Tau
fn count(&self, channel: &T) -> Option<&u64>
[src]
gets the count for a given metric
fn percentile(&self, channel: &T, percentile: Percentile) -> Option<&u64>
[src]
get the Percentile
for a given metric
fn adev(&self, channel: T, tau: usize) -> Option<&f64>
[src]
get the Allan Deviation for the channel for a given Tau
Trait Implementations
impl<T: Clone> Clone for Meters<T>
[src]
fn clone(&self) -> Meters<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more