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]
M: Clone + Send + Sync + 'static,
fn marker<AS>(&self, name: AS) -> Marker<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get an event counter of the provided name.
fn counter<AS>(&self, name: AS) -> Counter<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get a counter of the provided name.
fn timer<AS>(&self, name: AS) -> Timer<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get a timer of the provided name.
fn gauge<AS>(&self, name: AS) -> Gauge<M> where
AS: Into<String> + AsRef<str>,
[src]
AS: Into<String> + AsRef<str>,
Get a gauge of the provided name.
fn with_prefix<IS>(&self, prefix: IS) -> Self where
IS: Into<String>,
[src]
IS: Into<String>,
Prepend the metrics name with a prefix. Does not affect metrics that were already obtained.
fn flush(&self)
[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.
fn flush_every(&self, period: Duration) -> CancelHandle
[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]
M: Debug,
impl<M: Clone> Clone for GlobalMetrics<M>
[src]
fn clone(&self) -> GlobalMetrics<M>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more