Reference documentation and code samples for the Cloud Logging V2 API class Google::Api::Distribution::BucketOptions::Explicit.
Specifies a set of buckets with arbitrary widths.
There are size(bounds) + 1 (= N) buckets. Bucket i has the following
boundaries:
Upper bound (0 <= i < N-1): bounds[i]
Lower bound (1 <= i < N); bounds[i - 1]
The bounds field must contain at least one element. If bounds has
only one element, then there are no finite buckets, and that single
element is the common boundary of the overflow and underflow buckets.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#bounds
defbounds()->::Array<::Float>
Returns
(::Array<::Float>) — The values must be monotonically increasing.
#bounds=
defbounds=(value)->::Array<::Float>
Parameter
value (::Array<::Float>) — The values must be monotonically increasing.
Returns
(::Array<::Float>) — The values must be monotonically increasing.
[[["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-08-28 UTC."],[],[],null,["# Cloud Logging V2 API - Class Google::Api::Distribution::BucketOptions::Explicit (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Distribution-BucketOptions-Explicit)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Api-Distribution-BucketOptions-Explicit)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Api-Distribution-BucketOptions-Explicit)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Api-Distribution-BucketOptions-Explicit)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Api-Distribution-BucketOptions-Explicit) \nReference documentation and code samples for the Cloud Logging V2 API class Google::Api::Distribution::BucketOptions::Explicit.\n\nSpecifies a set of buckets with arbitrary widths.\n\n\nThere are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following\nboundaries:\n\nUpper bound (0 \\\u003c= i \\\u003c N-1): bounds\\[i\\]\nLower bound (1 \\\u003c= i \\\u003c N); bounds\\[i - 1\\]\n\n\u003cbr /\u003e\n\nThe `bounds` field must contain at least one element. If `bounds` has\nonly one element, then there are no finite buckets, and that single\nelement is the common boundary of the overflow and underflow buckets. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bounds\n\n def bounds() -\u003e ::Array\u003c::Float\u003e\n\n**Returns**\n\n- (::Array\\\u003c::Float\\\u003e) --- The values must be monotonically increasing.\n\n### #bounds=\n\n def bounds=(value) -\u003e ::Array\u003c::Float\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::Float\\\u003e) --- The values must be monotonically increasing. \n**Returns**\n\n- (::Array\\\u003c::Float\\\u003e) --- The values must be monotonically increasing."]]