Struct prometrics::metrics::Histogram [] [src]

pub struct Histogram(_);

Histogram samples observations (usually things like request durations or response sizes) and counts them in configurable buckets. It also provides a sum of all observed values.

Cloned histograms share the same buckets.

Methods

impl Histogram
[src]

[src]

Makes a new Histogram instance.

Note that it is recommended to create this via HistogramBuilder.

[src]

Returns the name of this histogram.

[src]

Returns the help of this histogram.

[src]

Returns the user defined labels of this histogram.

[src]

Returns the mutable user defined labels of this histogram.

[src]

Returns the timestamp of this histogram.

[src]

Returns the mutable timestamp of this histogram.

Important traits for &'a mut [u8]
[src]

Returns the buckets of this histogram.

Important traits for CumulativeBuckets<'a>
[src]

Returns the cumulative buckets of this histogram.

[src]

Returns the total observation count.

[src]

Returns the sum of the observed values.

[src]

Observes a value.

[src]

Measures the exeuction time of f and observes its duration in seconds.

[src]

Returns a collector for this histogram.

Trait Implementations

impl From<Histogram> for Metric
[src]

[src]

Performs the conversion.

impl Debug for Histogram
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Histogram
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Histogram
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Histogram

impl Sync for Histogram