Class: Google::Apis::CloudmonitoringV2beta2::PointDistributionBucket

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

Overview

The histogram's bucket. Buckets that form the histogram of a distribution value. If the upper bound of a bucket, say U1, does not equal the lower bound of the next bucket, say L2, this means that there is no event in [U1, L2).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PointDistributionBucket

Returns a new instance of PointDistributionBucket.



455
456
457
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 455

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

Instance Attribute Details

#countString

The number of events whose values are in the interval defined by this bucket. Corresponds to the JSON property count

Returns:

  • (String)


443
444
445
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 443

def count
  @count
end

#lower_boundFloat

The lower bound of the value interval of this bucket (inclusive). Corresponds to the JSON property lowerBound

Returns:

  • (Float)


448
449
450
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 448

def lower_bound
  @lower_bound
end

#upper_boundFloat

The upper bound of the value interval of this bucket (exclusive). Corresponds to the JSON property upperBound

Returns:

  • (Float)


453
454
455
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 453

def upper_bound
  @upper_bound
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



460
461
462
463
464
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 460

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