# Class LinearBuckets (1.20.0)

1.20.0 (latest) 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.1 1.12.3 1.11.1 1.10.0 1.9.1 1.8.1 1.7.1 1.6.0 1.5.3 1.4.2 1.3.1 1.2.1 1.1.0 1.0.3 0.3.0 0.2.0 0.1.0

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

Describing buckets with constant width.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `num_finite_buckets` | `int` 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. |
| `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. |