# MetricAggSpec The metrics aggregation to apply to the source data. **Type**: `object` ## Properties - name: groupByTags (optional) type: array of string description: The tags to group the results by. If unspecified, all series are grouped together. Only applicable when spaceAggregation is set. - name: spaceAggregation (optional) type: enum: `LATEST`, `SUM`, `AVG`, `MAX` description: The space aggregation to use for the query. If null, no grouping is done and the timeseries are returned with full tags. - name: timeAggregation (optional) type: enum: `LATEST`, `SUM`, `AVG`, `MAX` description: The time aggregation to use for the query. If this is set, timeGranularity must also be provided. If null, no time aggregation is done and the raw datapoints are returned. - name: timeGranularity (optional) type: string description: The time granularity to use for the query. Only applicable when timeAggregation is set.