Class: Google::Apis::MigrationcenterV1::AggregationResult

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

Message describing a result of an aggregation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AggregationResult

Returns a new instance of AggregationResult.



237
238
239
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 237

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countGoogle::Apis::MigrationcenterV1::AggregationResultCount

The result of a count aggregation. Corresponds to the JSON property count



215
216
217
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 215

def count
  @count
end

#fieldString

Corresponds to the JSON property field

Returns:

  • (String)


220
221
222
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 220

def field
  @field
end

#frequencyGoogle::Apis::MigrationcenterV1::AggregationResultFrequency

The result of a frequency distribution aggregation. Corresponds to the JSON property frequency



225
226
227
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 225

def frequency
  @frequency
end

#histogramGoogle::Apis::MigrationcenterV1::AggregationResultHistogram

The result of a bucketed histogram aggregation. Corresponds to the JSON property histogram



230
231
232
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 230

def histogram
  @histogram
end

#sumGoogle::Apis::MigrationcenterV1::AggregationResultSum

The result of a sum aggregation. Corresponds to the JSON property sum



235
236
237
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 235

def sum
  @sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



242
243
244
245
246
247
248
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 242

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @field = args[:field] if args.key?(:field)
  @frequency = args[:frequency] if args.key?(:frequency)
  @histogram = args[:histogram] if args.key?(:histogram)
  @sum = args[:sum] if args.key?(:sum)
end