View Source GoogleApi.Logging.V2.Model.BucketOptions (google_api_logging v0.41.2)

BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.


  • explicitBuckets (type: GoogleApi.Logging.V2.Model.Explicit.t, default: nil) - The explicit buckets.
  • exponentialBuckets (type: GoogleApi.Logging.V2.Model.Exponential.t, default: nil) - The exponential buckets.
  • linearBuckets (type: GoogleApi.Logging.V2.Model.Linear.t, default: nil) - The linear bucket.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Logging.V2.Model.BucketOptions{
  explicitBuckets: GoogleApi.Logging.V2.Model.Explicit.t() | nil,
  exponentialBuckets: GoogleApi.Logging.V2.Model.Exponential.t() | nil,
  linearBuckets: GoogleApi.Logging.V2.Model.Linear.t() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.