Class: Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets
- Inherits:
-
Object
- Object
- Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/api/servicecontrol/v1/distribution.rb
Overview
Describing buckets with constant width.
Instance Attribute Summary collapse
-
#num_finite_buckets ⇒ ::Integer
The number of finite buckets.
-
#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.
-
#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.
Instance Attribute Details
#num_finite_buckets ⇒ ::Integer
Returns 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.
97 98 99 100 |
# File 'proto_docs/google/api/servicecontrol/v1/distribution.rb', line 97 class LinearBuckets include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#offset ⇒ ::Float
Returns 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.
97 98 99 100 |
# File 'proto_docs/google/api/servicecontrol/v1/distribution.rb', line 97 class LinearBuckets include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#width ⇒ ::Float
Returns 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.
97 98 99 100 |
# File 'proto_docs/google/api/servicecontrol/v1/distribution.rb', line 97 class LinearBuckets include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |