> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Aggregation

> Defines how meter data should be aggregated using a specified aggregation function



**Kind**: `object`

## Fields

**`field`**: `String`

The data field to which the aggregation function will be applied

---

**`function`**: `AggregationFunction!`

The aggregation function to apply to the data (e.g. SUM, AVG, COUNT)



## Related topics

- [AggregationFunction](https://docs.stigg.io/graphql-reference/types/AggregationFunction.md)
- [MeterAggregation](https://docs.stigg.io/graphql-reference/types/MeterAggregation.md)
- [Reporting raw events](https://docs.stigg.io/documentation/getting-usage-data-into-stigg/reporting-raw-events/index.md)
- [Metering architecture](https://docs.stigg.io/documentation/high-availability-and-scale/byoc/metering-architecture.md)
- [Usage, billing & credits](https://docs.stigg.io/api-and-sdks/integration/backend/usage-and-billing.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.