Class: Google::Apis::MonitoringV3::Exponential
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::Exponential
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb
Overview
Specify a 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.Defines num_finite_buckets + 2 (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1) : scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * ( growth_factor ^ (i - 1)).
Instance Attribute Summary collapse
-
#growth_factor ⇒ Float
Must be greater than 1.
-
#num_finite_buckets ⇒ Fixnum
Must be greater than 0.
-
#scale ⇒ Float
Must be greater than 0.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Exponential
constructor
A new instance of Exponential.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Exponential
Returns a new instance of Exponential.
492 493 494 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 492 def initialize(**args) update!(**args) end |
Instance Attribute Details
#growth_factor ⇒ Float
Must be greater than 1.
Corresponds to the JSON property growthFactor
480 481 482 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 480 def growth_factor @growth_factor end |
#num_finite_buckets ⇒ Fixnum
Must be greater than 0.
Corresponds to the JSON property numFiniteBuckets
490 491 492 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 490 def num_finite_buckets @num_finite_buckets end |
#scale ⇒ Float
Must be greater than 0.
Corresponds to the JSON property scale
485 486 487 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 485 def scale @scale end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
497 498 499 500 501 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 497 def update!(**args) @growth_factor = args[:growth_factor] if args.key?(:growth_factor) @scale = args[:scale] if args.key?(:scale) @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) end |