Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Aggregation.
Message describing an aggregation. The message includes the aggregation type, parameters, and the field on which to perform the aggregation.
Generated from protobuf message google.cloud.migrationcenter.v1.Aggregation
Namespace
Google \ Cloud \ MigrationCenter \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ field
string
The name of the field on which to aggregate.
↳ count
↳ sum
↳ histogram
↳ frequency
Google\Cloud\MigrationCenter\V1\Aggregation\Frequency
Creates a frequency distribution of all field values.
getField
The name of the field on which to aggregate.
string
setField
The name of the field on which to aggregate.
var
string
$this
getCount
Count the number of matching objects.
hasCount
setCount
Count the number of matching objects.
$this
getSum
Sum over a numeric field.
hasSum
setSum
Sum over a numeric field.
$this
getHistogram
Creates a bucketed histogram of field values.
hasHistogram
setHistogram
Creates a bucketed histogram of field values.
$this
getFrequency
Creates a frequency distribution of all field values.
hasFrequency
setFrequency
Creates a frequency distribution of all field values.
$this
getAggregationFunction
string