Class: Google::Apis::MigrationcenterV1::AggregationHistogram

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_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>)


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