[][src]Trait cadence::Setted

pub trait Setted {
    fn set_with_tags<'a>(
        &'a self,
        key: &'a str,
        value: i64
    ) -> MetricBuilder<Set>; fn set(&self, key: &str, value: i64) -> MetricResult<Set> { ... } }

Trait for recording set values.

Sets count the number of unique elements in a group. You can use them to, for example, count the unique visitors to your site.

See the Statsd spec for more information.

Required methods

fn set_with_tags<'a>(&'a self, key: &'a str, value: i64) -> MetricBuilder<Set>

Record a single set value with the given key and return a MetricBuilder that can be used to add tags to the metric.

Loading content...

Provided methods

fn set(&self, key: &str, value: i64) -> MetricResult<Set>

Record a single set value with the given key

Loading content...

Implementors

impl Setted for StatsdClient[src]

Loading content...