class Google::Apis::ServicecontrolV1::ExponentialBuckets

Describing buckets with exponentially growing width.

Attributes

growth_factor[RW]

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be larger than 1.0. Corresponds to the JSON property `growthFactor` @return [Float]

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]

scale[RW]

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be > 0. Corresponds to the JSON property `scale` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicecontrol_v1/classes.rb, line 871
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 876
def update!(**args)
  @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
  @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
  @scale = args[:scale] if args.key?(:scale)
end