Struct metrics::ewma::EWMA [] [src]

pub struct EWMA {
    pub uncounted: AtomicUsize,
    // some fields omitted
}

Fields

uncounted: AtomicUsize

Methods

impl EWMA
[src]

fn rate(&self) -> f64

fn snapshot(&self) -> EWMASnapshot

fn tick(&mut self)

fn update(&self, n: usize)

fn new_by_alpha(alpha: f64) -> EWMA

construct new by alpha

fn new(rate: f64) -> EWMA

constructs a new EWMA for a n-minute moving average.

Trait Implementations

impl Debug for EWMA
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.