Class Aggregation (0.1.8)

Aggregation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Message describing an aggregation. The message includes the aggregation type, parameters, and the field on which to perform the aggregation.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
field str
The name of the field on which to aggregate.
count google.cloud.migrationcenter_v1.types.Aggregation.Count
Count the number of matching objects. This field is a member of oneof_ aggregation_function.
sum google.cloud.migrationcenter_v1.types.Aggregation.Sum
Sum over a numeric field. This field is a member of oneof_ aggregation_function.
histogram google.cloud.migrationcenter_v1.types.Aggregation.Histogram
Creates a bucketed histogram of field values. This field is a member of oneof_ aggregation_function.
frequency google.cloud.migrationcenter_v1.types.Aggregation.Frequency
Creates a frequency distribution of all field values. This field is a member of oneof_ aggregation_function.

Classes

Count

Count(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Object count.

Frequency

Frequency(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Frequency distribution of all field values.

Histogram

Histogram(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Histogram of bucketed assets counts by field value.

Sum

Sum(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Sum of field values.