Class: Google::Apis::CloudmonitoringV2beta2::PointDistribution

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

Distribution data point value type. When writing distribution points, try to be consistent with the boundaries of your buckets. If you must modify the bucket boundaries, then do so by merging, partitioning, or appending rather than skewing them.

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

Returns a new instance of PointDistribution



422
423
424
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 422

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

Instance Attribute Details

#bucketsArray<Google::Apis::CloudmonitoringV2beta2::PointDistributionBucket>

The finite buckets. Corresponds to the JSON property buckets



408
409
410
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 408

def buckets
  @buckets
end

#overflow_bucketGoogle::Apis::CloudmonitoringV2beta2::PointDistributionOverflowBucket

The overflow bucket is a special bucket that does not have the upperBound field; it includes all of the events that are no less than its lower bound. Corresponds to the JSON property overflowBucket



414
415
416
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 414

def overflow_bucket
  @overflow_bucket
end

#underflow_bucketGoogle::Apis::CloudmonitoringV2beta2::PointDistributionUnderflowBucket

The underflow bucket is a special bucket that does not have the lowerBound field; it includes all of the events that are less than its upper bound. Corresponds to the JSON property underflowBucket



420
421
422
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 420

def underflow_bucket
  @underflow_bucket
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



427
428
429
430
431
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 427

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