Class: Google::Apis::MigrationcenterV1alpha1::AggregationResultHistogram
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::AggregationResultHistogram
- 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
The result of a bucketed histogram aggregation.
Instance Attribute Summary collapse
-
#buckets ⇒ Array<Google::Apis::MigrationcenterV1alpha1::AggregationResultHistogramBucket>
Buckets in the histogram.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregationResultHistogram
constructor
A new instance of AggregationResultHistogram.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AggregationResultHistogram
Returns a new instance of AggregationResultHistogram.
309 310 311 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buckets ⇒ Array<Google::Apis::MigrationcenterV1alpha1::AggregationResultHistogramBucket>
Buckets in the histogram. There will be n+1 buckets matching n lower
bounds in the request. The first bucket will be from -infinity to the first
bound. Subsequent buckets will be between one bound and the next. The final
bucket will be from the final bound to infinity.
Corresponds to the JSON property buckets
307 308 309 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 307 def buckets @buckets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
314 315 316 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 314 def update!(**args) @buckets = args[:buckets] if args.key?(:buckets) end |