Struct prometrics::metrics::SummaryBuilder [] [src]

pub struct SummaryBuilder { /* fields omitted */ }

Summary builder.

Methods

impl SummaryBuilder
[src]

[src]

Makes a builder for summary named name.

Important traits for &'a mut W
[src]

Sets the namespace part of the metric name of this.

Important traits for &'a mut W
[src]

Sets the subsystem part of the metric name of this.

Important traits for &'a mut W
[src]

Sets the help of this.

Important traits for &'a mut W
[src]

Adds a label.

Note that name will be validated in the invocation of the finish method.

The name "quantile" is reserved for designating summary quantiles.

Important traits for &'a mut W
[src]

Adds a registry to which the resulting histograms will be registered.

Important traits for &'a mut W
[src]

Adds the default registry.

Important traits for &'a mut W
[src]

Adds a quantile.

[src]

Builds a summary.

Errors

This method will return Err(_) if one of the following conditions is satisfied:

  • Any of the name of the metric or labels is malformed
  • There is a quantile whose value is less than 0.0 or greater than 1.0

Trait Implementations

impl Debug for SummaryBuilder
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for SummaryBuilder

impl !Sync for SummaryBuilder