Struct prometheus_client::encoding::text::BucketEncoder
source · pub struct BucketEncoder<'a> { /* private fields */ }
Implementations§
source§impl<'a> BucketEncoder<'a>
impl<'a> BucketEncoder<'a>
sourcepub fn encode_bucket(
&mut self,
upper_bound: f64
) -> Result<ValueEncoder<'_>, Error>
pub fn encode_bucket(
&mut self,
upper_bound: f64
) -> Result<ValueEncoder<'_>, Error>
Encode a bucket. Used for the Histogram
metric type.
sourcepub fn no_bucket(&mut self) -> Result<ValueEncoder<'_>, Error>
pub fn no_bucket(&mut self) -> Result<ValueEncoder<'_>, Error>
Signal that the metric type has no bucket.