class Google::Apis::MonitoringV3::Linear
Specifies a linear 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.There are num_finite_buckets
+ 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
Attributes
num_finite_buckets[RW]
Must be greater than 0. Corresponds to the JSON property `numFiniteBuckets` @return [Fixnum]
offset[RW]
Lower bound of the first bucket. Corresponds to the JSON property `offset` @return [Float]
width[RW]
Must be greater than 0. Corresponds to the JSON property `width` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 1990 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/monitoring_v3/classes.rb, line 1995 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