Class: Google::Apis::MonitoringV3::Explicit

Inherits:
Object
  • Object
show all
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

A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1There must be at least one element in bounds. If bounds has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.

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) ⇒ Explicit

Returns a new instance of Explicit.



507
508
509
# File 'generated/google/apis/monitoring_v3/classes.rb', line 507

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

Instance Attribute Details

#boundsArray<Float>

The values must be monotonically increasing. Corresponds to the JSON property bounds

Returns:

  • (Array<Float>)


505
506
507
# File 'generated/google/apis/monitoring_v3/classes.rb', line 505

def bounds
  @bounds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



512
513
514
# File 'generated/google/apis/monitoring_v3/classes.rb', line 512

def update!(**args)
  @bounds = args[:bounds] if args.key?(:bounds)
end