Aggregator as a processor
You can create meters for the aggregator processor.
Meter with Aggregator as a processor
To create a meter with aggregator as the processor, follow the instructions below:
- Create a Custom Meter. For more information, see Create a new meter using custom method.
- Select Aggregator as the processor.
The Aggregator settings page is displayed. - Enter a name for the aggregator component.
- Select the group by fields.
- Select the aggregate options.
- Aggregate Fields: You can define the source field, operator, and result field. Create a new field if you want to use a new name or overwrite the source field if using the same name as source field.
- The aggregator will use “group by fields” to generate the usage unique key, which will be used to update the usage records in billing if the usage unique key is the same.
- The aggregator will not reduce the record rows but only add the results fields value based on the operation results. Then those usage records with the same unique key generated by the same “group by fields” can be transferred to billing and update the usage records with the aggregation results.
- The source field will be removed if the result field is using a new field name.
-
Advanced Aggregation: You can set a complex Javascript or python to process the events.
- Aggregate Fields: You can define the source field, operator, and result field. Create a new field if you want to use a new name or overwrite the source field if using the same name as source field.
-
Click Save to save the aggregator processor settings.