Class: Google::Apis::MigrationcenterV1::AggregationResultHistogramBucket
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::AggregationResultHistogramBucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/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
-
#count ⇒ Fixnum
Count of items in the bucket.
-
#lower_bound ⇒ Float
Lower bound - inclusive.
-
#upper_bound ⇒ Float
Upper bound - exclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregationResultHistogramBucket
constructor
A new instance of AggregationResultHistogramBucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AggregationResultHistogramBucket
Returns a new instance of AggregationResultHistogramBucket.
333 334 335 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 333 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Count of items in the bucket.
Corresponds to the JSON property count
321 322 323 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 321 def count @count end |
#lower_bound ⇒ Float
Lower bound - inclusive.
Corresponds to the JSON property lowerBound
326 327 328 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 326 def lower_bound @lower_bound end |
#upper_bound ⇒ Float
Upper bound - exclusive.
Corresponds to the JSON property upperBound
331 332 333 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 331 def upper_bound @upper_bound end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
338 339 340 341 342 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 338 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 |