[][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.

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

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

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

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

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

impl InputScope for InputQueueScope
[src]

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

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

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

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

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

impl InputScope for LockingOutput
[src]

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

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

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

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

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

impl InputScope for LogScope
[src]

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

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

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

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

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

impl InputScope for MultiInputScope
[src]

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

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

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

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

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

impl InputScope for OutputQueueScope
[src]

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

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

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

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

fn level(&self, name: &str) -> Level
[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.

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

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

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

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

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

Loading content...