Class: Google::Apis::MigrationcenterV1alpha1::AggregationResultHistogramBucket

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

A histogram bucket with a lower and upper bound, and a count of items with a field value between those bounds. The lower bound is inclusive and the upper bound is exclusive. Lower bound may be -infinity and upper bound may be infinity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AggregationResultHistogramBucket

Returns a new instance of AggregationResultHistogramBucket.



341
342
343
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 341

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

Instance Attribute Details

#countFixnum

Count of items in the bucket. Corresponds to the JSON property count

Returns:

  • (Fixnum)


329
330
331
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 329

def count
  @count
end

#lower_boundFloat

Lower bound - inclusive. Corresponds to the JSON property lowerBound

Returns:

  • (Float)


334
335
336
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 334

def lower_bound
  @lower_bound
end

#upper_boundFloat

Upper bound - exclusive. Corresponds to the JSON property upperBound

Returns:

  • (Float)


339
340
341
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 339

def upper_bound
  @upper_bound
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



346
347
348
349
350
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 346

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