Struct dipstick::GlobalMetrics [] [src]

pub struct GlobalMetrics<M> { /* fields omitted */ }

Variations of this should also provide control of the metric recording scope.

Methods

impl<M> GlobalMetrics<M> where
    M: Clone + Send + Sync + 'static, 
[src]

[src]

Get an event counter of the provided name.

[src]

Get a counter of the provided name.

[src]

Get a timer of the provided name.

[src]

Get a gauge of the provided name.

[src]

Prepend the metrics name with a prefix. Does not affect metrics that were already obtained.

[src]

Forcefully flush the backing metrics scope. This is usually not required since static metrics use auto flushing scopes. The effect, if any, of this method depends on the selected metrics backend.

[src]

Schedule for the metrics aggregated of buffered by downstream metrics sinks to be sent out at regular intervals.

Trait Implementations

impl<M> Debug for GlobalMetrics<M> where
    M: Debug
[src]

[src]

Formats the value using the given formatter.

impl<M: Clone> Clone for GlobalMetrics<M>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more