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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/logging/v2/doc/google/api/distribution.rb

Overview

Specify a 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.

Defines +num_finite_buckets + 2+ (= N) buckets with these boundaries for bucket +i+:

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_bucketsInteger

Returns Must be greater than 0.

Returns:

  • (Integer)

    Must be greater than 0.



132
# File 'lib/google/cloud/logging/v2/doc/google/api/distribution.rb', line 132

class Linear; end

#offsetFloat

Returns Lower bound of the first bucket.

Returns:

  • (Float)

    Lower bound of the first bucket.



132
# File 'lib/google/cloud/logging/v2/doc/google/api/distribution.rb', line 132

class Linear; end

#widthFloat

Returns Must be greater than 0.

Returns:

  • (Float)

    Must be greater than 0.



132
# File 'lib/google/cloud/logging/v2/doc/google/api/distribution.rb', line 132

class Linear; end