class Google::Apis::ServicecontrolV1::LinearBuckets

Describing buckets with constant width.

Attributes

num_finite_buckets[RW]

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. Corresponds to the JSON property `numFiniteBuckets` @return [Fixnum]

offset[RW]

The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i

Corresponds to the JSON property `offset` @return [Float]

width[RW]

The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i

strictly positive. Corresponds to the JSON property `width` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicecontrol_v1/classes.rb, line 1051
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicecontrol_v1/classes.rb, line 1056
def update!(**args)
  @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
  @offset = args[:offset] if args.key?(:offset)
  @width = args[:width] if args.key?(:width)
end