Class LinearBuckets (1.0.3)

LinearBuckets(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describing buckets with constant width. .. attribute:: num_finite_buckets

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details.

:type: int

Attributes

NameDescription
width float
The i'th linear bucket covers the interval [offset + (i-1) \* width, offset + i \* width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive.
offset float
The i'th linear bucket covers the interval [offset + (i-1) \* width, offset + i \* width) where i ranges from 1 to num_finite_buckets, inclusive.