Struct prometheus::HistogramOpts [] [src]

pub struct HistogramOpts {
    pub common_opts: Opts,
    pub buckets: Vec<f64>,
}

HistogramOpts bundles the options for creating a Histogram metric. It is mandatory to set Name and Help to a non-empty string. All other fields are optional and can safely be left at their zero value.

Fields

Methods

impl HistogramOpts
[src]

new creates a HistogramOpts with the name and help arguments.

namespace sets the namespace.

sub_system sets the sub system.

const_labels sets the const labels.

const_label adds a const label.

fq_name returns the fq_name.

buckets set the buckets.

Trait Implementations

impl From<Opts> for HistogramOpts
[src]

Performs the conversion.