Class: Google::Apis::MigrationcenterV1alpha1::Aggregation
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::Aggregation
- 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 an aggregation. The message includes the aggregation type, parameters, and the field on which to perform the aggregation.
Instance Attribute Summary collapse
-
#count ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationCount
Object count.
-
#field ⇒ String
The name of the field on which to aggregate.
-
#frequency ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationFrequency
Frequency distribution of all field values.
-
#histogram ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationHistogram
Histogram of bucketed assets counts by field value.
-
#sum ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationSum
Sum of field values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Aggregation
constructor
A new instance of Aggregation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Aggregation
Returns a new instance of Aggregation.
152 153 154 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationCount
Object count.
Corresponds to the JSON property count
130 131 132 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 130 def count @count end |
#field ⇒ String
The name of the field on which to aggregate.
Corresponds to the JSON property field
135 136 137 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 135 def field @field end |
#frequency ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationFrequency
Frequency distribution of all field values.
Corresponds to the JSON property frequency
140 141 142 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 140 def frequency @frequency end |
#histogram ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationHistogram
Histogram of bucketed assets counts by field value.
Corresponds to the JSON property histogram
145 146 147 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 145 def histogram @histogram end |
#sum ⇒ Google::Apis::MigrationcenterV1alpha1::AggregationSum
Sum of field values.
Corresponds to the JSON property sum
150 151 152 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 150 def sum @sum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
157 158 159 160 161 162 163 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 157 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 |