Class: Google::Apis::MigrationcenterV1::AggregationHistogram
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::AggregationHistogram
- 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
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.
198 199 200 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 198 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
196 197 198 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 196 def lower_bounds @lower_bounds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
203 204 205 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 203 def update!(**args) @lower_bounds = args[:lower_bounds] if args.key?(:lower_bounds) end |