[][src]Trait dipstick::InputScope

pub trait InputScope: Flush {
    fn new_metric(&self, name: MetricName, kind: InputKind) -> InputMetric;

    fn counter(&self, name: &str) -> Counter { ... }
fn marker(&self, name: &str) -> Marker { ... }
fn timer(&self, name: &str) -> Timer { ... }
fn gauge(&self, name: &str) -> Gauge { ... }
fn level(&self, name: &str) -> Level { ... } }

InputScope Define metrics, write values and flush them.

Required methods

fn new_metric(&self, name: MetricName, kind: InputKind) -> InputMetric

Define a generic metric of the specified type. It is preferable to use counter() / marker() / timer() / gauge() methods.

Loading content...

Provided methods

fn counter(&self, name: &str) -> Counter

Define a Counter.

fn marker(&self, name: &str) -> Marker

Define a Marker.

fn timer(&self, name: &str) -> Timer

Define a Timer.

fn gauge(&self, name: &str) -> Gauge

Define a Gauge.

fn level(&self, name: &str) -> Level

Define a Level.

Loading content...

Implementors

impl InputScope for AtomicBucket[src]

fn new_metric(&self, name: MetricName, kind: InputKind) -> InputMetric[src]

Lookup or create scores for the requested metric.

impl InputScope for InputQueueScope[src]

impl InputScope for LockingOutput[src]

impl InputScope for LogScope[src]

impl InputScope for MultiInputScope[src]

impl InputScope for OutputQueueScope[src]

impl InputScope for Proxy[src]

fn new_metric(&self, name: MetricName, kind: InputKind) -> InputMetric[src]

Lookup or create a proxy stub for the requested metric.

impl InputScope for StatsMapScope[src]

Loading content...