Billable metrics define how incoming events are aggregated in order to measure consumption. If you want to charge your customers for the use of a particular feature, then you should create the corresponding billable metric.
To add a new billable metric through the user interface:
- Enter its
- Assign it a
codewhich will be used as the name of the event sent from your backend;
- Add a
- Select the
aggregation typewhich will define how consumption will be measured.
The next section describes the different aggregation types. In addition to this, we have added some examples to help you understand the relationship between incoming events and billable metrics.