Class: Google::Apis::MigrationcenterV1alpha1::AggregationResult

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

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.



192
193
194
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 192

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

Instance Attribute Details

#countGoogle::Apis::MigrationcenterV1alpha1::AggregationResultCount

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



170
171
172
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 170

def count
  @count
end

#fieldString

Corresponds to the JSON property field

Returns:

  • (String)


175
176
177
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 175

def field
  @field
end

#frequencyGoogle::Apis::MigrationcenterV1alpha1::AggregationResultFrequency

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



180
181
182
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 180

def frequency
  @frequency
end

#histogramGoogle::Apis::MigrationcenterV1alpha1::AggregationResultHistogram

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



185
186
187
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 185

def histogram
  @histogram
end

#sumGoogle::Apis::MigrationcenterV1alpha1::AggregationResultSum

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



190
191
192
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 190

def sum
  @sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



197
198
199
200
201
202
203
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 197

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