Class: Google::Apis::MonitoringV3::Linear
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::Linear
- 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 all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + ( width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
Instance Attribute Summary collapse
-
#num_finite_buckets ⇒ Fixnum
Must be greater than 0.
-
#offset ⇒ Float
Lower bound of the first bucket.
-
#width ⇒ Float
Must be greater than 0.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Linear
constructor
A new instance of Linear.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Linear
Returns a new instance of Linear.
551 552 553 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 551 def initialize(**args) update!(**args) end |
Instance Attribute Details
#num_finite_buckets ⇒ Fixnum
Must be greater than 0.
Corresponds to the JSON property numFiniteBuckets
549 550 551 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 549 def num_finite_buckets @num_finite_buckets end |
#offset ⇒ Float
Lower bound of the first bucket.
Corresponds to the JSON property offset
544 545 546 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 544 def offset @offset end |
#width ⇒ Float
Must be greater than 0.
Corresponds to the JSON property width
539 540 541 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 539 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
556 557 558 559 560 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 556 def update!(**args) @width = args[:width] if args.key?(:width) @offset = args[:offset] if args.key?(:offset) @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) end |