[][src]Enum zoomies::Metric

pub enum Metric<'a, T> {
    Inc(&'a str),
    Dec(&'a str),
    Arb(&'a str, T),
    Gauge(&'a str, &'a str),
    Histogram(&'a str, &'a str),
    Distribution(&'a str, &'a str),
    Set(&'a str, &'a str),
}

The module, zoomies::metrics, implements the following metric types that are accepted by DataDog.

Metrics

  • Count (Inc, Dec, Arb)
  • Gauge
  • Set
  • Histogram
  • Distribution

Variants

Inc(&'a str)

The Rust representation of a Count Metric in StatsD The Count metric submission type represents the total number of event occurrences in one time interval. A Count can be used to track the total number of connections made to a database or the total number of requests to an endpoint. This number of events can accumulate or decrease over time—it is not monotonically increasing.

Dec(&'a str)
Arb(&'a str, T)
Gauge(&'a str, &'a str)
Histogram(&'a str, &'a str)
Distribution(&'a str, &'a str)
Set(&'a str, &'a str)

Trait Implementations

impl<'a, T: Display + Integer> DatagramFormat for Metric<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Metric<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for Metric<'a, T> where
    T: Send

impl<'a, T> Sync for Metric<'a, T> where
    T: Sync

impl<'a, T> Unpin for Metric<'a, T> where
    T: Unpin

impl<'a, T> UnwindSafe for Metric<'a, T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.