Class: Google::Apis::LoggingV2::Exponential

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/logging_v2/classes.rb,
generated/google/apis/logging_v2/representations.rb,
generated/google/apis/logging_v2/representations.rb

Overview

Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Exponential

Returns a new instance of Exponential.



237
238
239
# File 'generated/google/apis/logging_v2/classes.rb', line 237

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#growth_factorFloat

Must be greater than 1. Corresponds to the JSON property growthFactor

Returns:

  • (Float)


225
226
227
# File 'generated/google/apis/logging_v2/classes.rb', line 225

def growth_factor
  @growth_factor
end

#num_finite_bucketsFixnum

Must be greater than 0. Corresponds to the JSON property numFiniteBuckets

Returns:

  • (Fixnum)


230
231
232
# File 'generated/google/apis/logging_v2/classes.rb', line 230

def num_finite_buckets
  @num_finite_buckets
end

#scaleFloat

Must be greater than 0. Corresponds to the JSON property scale

Returns:

  • (Float)


235
236
237
# File 'generated/google/apis/logging_v2/classes.rb', line 235

def scale
  @scale
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



242
243
244
245
246
# File 'generated/google/apis/logging_v2/classes.rb', line 242

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