Send feedback
Class LinearBuckets (1.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
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.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-09 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Class LinearBuckets (1.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.16.0 (latest)](/python/docs/reference/servicecontrol/latest/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.15.0](/python/docs/reference/servicecontrol/1.15.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.14.0](/python/docs/reference/servicecontrol/1.14.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.13.1](/python/docs/reference/servicecontrol/1.13.1/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.12.3](/python/docs/reference/servicecontrol/1.12.3/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.11.1](/python/docs/reference/servicecontrol/1.11.1/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.10.0](/python/docs/reference/servicecontrol/1.10.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.9.1](/python/docs/reference/servicecontrol/1.9.1/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.8.1](/python/docs/reference/servicecontrol/1.8.1/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.7.1](/python/docs/reference/servicecontrol/1.7.1/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.6.0](/python/docs/reference/servicecontrol/1.6.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.5.3](/python/docs/reference/servicecontrol/1.5.3/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.4.2](/python/docs/reference/servicecontrol/1.4.2/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.3.1](/python/docs/reference/servicecontrol/1.3.1/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.2.1](/python/docs/reference/servicecontrol/1.2.1/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.1.0](/python/docs/reference/servicecontrol/1.1.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [1.0.3](/python/docs/reference/servicecontrol/1.0.3/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [0.3.0](/python/docs/reference/servicecontrol/0.3.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [0.2.0](/python/docs/reference/servicecontrol/0.2.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets)\n- [0.1.0](/python/docs/reference/servicecontrol/0.1.0/google.cloud.servicecontrol_v1.types.Distribution.LinearBuckets) \n\n LinearBuckets(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nDescribing buckets with constant width."]]