Class: Google::Apis::MigrationcenterV1alpha1::AggregationHistogram
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::AggregationHistogram
- 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
Histogram of bucketed assets counts by field value.
Instance Attribute Summary collapse
-
#lower_bounds ⇒ Array<Float>
Lower bounds of buckets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregationHistogram
constructor
A new instance of AggregationHistogram.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AggregationHistogram
Returns a new instance of AggregationHistogram.
206 207 208 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 206 def initialize(**args) update!(**args) end |
Instance Attribute Details
#lower_bounds ⇒ Array<Float>
Lower bounds of buckets. The response will contain n+1
buckets for n
bounds. The first bucket will count all assets for which the field value is
smaller than the first bound. Subsequent buckets will count assets for which
the field value is greater or equal to a lower bound and smaller than the next
one. The last bucket will count assets for which the field value is greater or
equal to the final lower bound. You can define up to 20 lower bounds.
Corresponds to the JSON property lowerBounds
204 205 206 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 204 def lower_bounds @lower_bounds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
211 212 213 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 211 def update!(**args) @lower_bounds = args[:lower_bounds] if args.key?(:lower_bounds) end |