27#ifndef PROM_HISTOGRAM_BUCKETS_H
28#define PROM_HISTOGRAM_BUCKETS_H
int phb_destroy(phb_t *self)
Destroy the given prom histogram bucket.
phb_t * prom_histogram_default_buckets
default histogram buckets: .005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10
phb_t * phb_exponential(double start, double factor, size_t count)
Construct an exponentially sized prom histogram bucket.
phb_t * phb_linear(double start, double width, size_t count)
Construct a linearly sized prom histogram bucket.
size_t phb_count(phb_t *self)
Get the number of valus in the given bucket.
phb_t * phb_new(size_t count, double bucket,...)
Construct a new histogram bucket with the given values.
Definition prom_histogram_buckets.h:30
int count
Number of buckets.
Definition prom_histogram_buckets.h:31
const char ** key
count keys used to lookup samples.
Definition prom_histogram_buckets.h:33
const double * upper_bound
count ascending upper limits
Definition prom_histogram_buckets.h:32