Type Definition prometheus::HistogramVec
source · [−]pub type HistogramVec = MetricVec<HistogramVecBuilder>;Expand description
Implementations
sourceimpl HistogramVec
impl HistogramVec
sourcepub fn new(opts: HistogramOpts, label_names: &[&str]) -> Result<HistogramVec>
pub fn new(opts: HistogramOpts, label_names: &[&str]) -> Result<HistogramVec>
Create a new HistogramVec based on the provided
HistogramOpts and partitioned by the given label names. At least
one label name must be provided.
sourcepub fn local(&self) -> LocalHistogramVec
pub fn local(&self) -> LocalHistogramVec
Return a LocalHistogramVec for single thread usage.