Class: Google::Apis::MigrationcenterV1alpha1::AggregationResult
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::AggregationResult
- 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
-
#count ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultCount
The result of a count aggregation.
-
#field ⇒ String
Corresponds to the JSON property
field. -
#frequency ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultFrequency
The result of a frequency distribution aggregation.
-
#histogram ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultHistogram
The result of a bucketed histogram aggregation.
-
#sum ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultSum
The result of a sum aggregation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregationResult
constructor
A new instance of AggregationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AggregationResult
Returns a new instance of AggregationResult.
245 246 247 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultCount
The result of a count aggregation.
Corresponds to the JSON property count
223 224 225 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 223 def count @count end |
#field ⇒ String
Corresponds to the JSON property field
228 229 230 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 228 def field @field end |
#frequency ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultFrequency
The result of a frequency distribution aggregation.
Corresponds to the JSON property frequency
233 234 235 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 233 def frequency @frequency end |
#histogram ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultHistogram
The result of a bucketed histogram aggregation.
Corresponds to the JSON property histogram
238 239 240 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 238 def histogram @histogram end |
#sum ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationResultSum
The result of a sum aggregation.
Corresponds to the JSON property sum
243 244 245 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 243 def sum @sum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
250 251 252 253 254 255 256 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 250 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 |