Class: Google::Apis::MigrationcenterV1alpha1::AggregationHistogram

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

Histogram of bucketed assets counts by field value.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_boundsArray<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

Returns:

  • (Array<Float>)


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