> ## 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.

# AggregationFunction

> How reported events are combined into a single usage value for the period. COUNT tallies every matching event (e.g. total API calls); UNIQUE counts distinct values of `field` instead (e.g. distinct users who made a call, so repeats by the same user only count once); SUM/AVG/MAX/MIN aggregate the numeric value of `field` across matching events (e.g. total or average bytes processed).



**Kind**: `enum`

## Values

**`AVG`** — The average numeric value of `field` across matching events in the period.

**`COUNT`** — The number of matching events in the period, regardless of their field values.

**`MAX`** — The highest numeric value of `field` seen across matching events in the period.

**`MIN`** — The lowest numeric value of `field` seen across matching events in the period.

**`SUM`** — Adds up the numeric value of `field` across all matching events in the period.

**`UNIQUE`** — The number of distinct values of `field` seen across matching events in the period (e.g. distinct user IDs), so repeated values from the same event source only count once.



## Related topics

- [Aggregation](https://docs.stigg.io/graphql-reference/types/Aggregation.md)
- [MeterAggregation](https://docs.stigg.io/graphql-reference/types/MeterAggregation.md)
- [Core concepts](https://docs.stigg.io/documentation/getting-started/core-concepts.md)
- [Create a feature](https://docs.stigg.io/api-reference/features/create-a-feature.md)
- [Update a feature](https://docs.stigg.io/api-reference/features/update-a-feature.md)


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