Class: Google::Api::Distribution::BucketOptions::Linear

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/distribution.rb

Overview

Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.

There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:

Upper bound (0 <= i < N-1): offset + (width * i).

Lower bound (1 <= i < N): offset + (width * (i - 1)).

Instance Attribute Summary collapse

Instance Attribute Details

#num_finite_buckets::Integer

Returns Must be greater than 0.

Returns:

  • (::Integer)

    Must be greater than 0.



147
148
149
150
# File 'proto_docs/google/api/distribution.rb', line 147

class Linear
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#offset::Float

Returns Lower bound of the first bucket.

Returns:

  • (::Float)

    Lower bound of the first bucket.



147
148
149
150
# File 'proto_docs/google/api/distribution.rb', line 147

class Linear
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#width::Float

Returns Must be greater than 0.

Returns:

  • (::Float)

    Must be greater than 0.



147
148
149
150
# File 'proto_docs/google/api/distribution.rb', line 147

class Linear
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end