Reference documentation and code samples for the Migration Center V1 API class Google::Cloud::MigrationCenter::V1::Aggregation.
Message describing an aggregation. The message includes the aggregation type, parameters, and the field on which to perform the aggregation.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#count
def count() -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Count
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Count) — Count the number of matching objects.
#count=
def count=(value) -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Count
Parameter
- value (::Google::Cloud::MigrationCenter::V1::Aggregation::Count) — Count the number of matching objects.
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Count) — Count the number of matching objects.
#field
def field() -> ::String
Returns
- (::String) — The name of the field on which to aggregate.
#field=
def field=(value) -> ::String
Parameter
- value (::String) — The name of the field on which to aggregate.
Returns
- (::String) — The name of the field on which to aggregate.
#frequency
def frequency() -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency) — Creates a frequency distribution of all field values.
#frequency=
def frequency=(value) -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency
Parameter
- value (::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency) — Creates a frequency distribution of all field values.
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency) — Creates a frequency distribution of all field values.
#histogram
def histogram() -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram) — Creates a bucketed histogram of field values.
#histogram=
def histogram=(value) -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram
Parameter
- value (::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram) — Creates a bucketed histogram of field values.
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram) — Creates a bucketed histogram of field values.
#sum
def sum() -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Sum
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Sum) — Sum over a numeric field.
#sum=
def sum=(value) -> ::Google::Cloud::MigrationCenter::V1::Aggregation::Sum
Parameter
- value (::Google::Cloud::MigrationCenter::V1::Aggregation::Sum) — Sum over a numeric field.
Returns
- (::Google::Cloud::MigrationCenter::V1::Aggregation::Sum) — Sum over a numeric field.