Service Control API V1 API - Class Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets (v0.9.2)

Reference documentation and code samples for the Service Control API V1 API class Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets.

Describing buckets with constant width.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#num_finite_buckets

def num_finite_buckets() -> ::Integer
Returns
  • (::Integer) — 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.

#num_finite_buckets=

def num_finite_buckets=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.
Returns
  • (::Integer) — 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.

#offset

def offset() -> ::Float
Returns
  • (::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.

#offset=

def offset=(value) -> ::Float
Parameter
  • value (::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.
Returns
  • (::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

def width() -> ::Float
Returns
  • (::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.

#width=

def width=(value) -> ::Float
Parameter
  • value (::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.
Returns
  • (::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.