Configure an Accumulator as a processor
Use the Accumulator processor to group events by selected fields and maintain running totals or other state until a release trigger condition is met.
- Navigate to Mediation > Meters
- Create a Custom meter.
- Select Accumulator as the processor. The Accumulator settings page is displayed.
- Enter a Name for the Accumulator component.
The Operator ID is a system‑generated, non-editable identifier for this operator, used in audit and API integrations.
- In the Partition By section, select the fields you want to use to group events.Each unique combination of these fields is treated as a separate group for accumulation.
- In the Release Trigger Timeout section:
- Select a Timeout Type.Processing Time Based or Event Time Based.
- Specify the Timeout Duration and unit.1 hour, 1 day, or 1 calendar month.
- Select a Timeout Type.
- If you select an event‑time‑based option:
- Choose the Event Time Field that contains the event timestamp.
- Enter the Time Format if your timestamp uses a non‑standard format
- In the Accumulate Fields section:
- Select the Source Field that you want to accumulate.quantity, usageAmount
- Select the Operator to apply.SUM, COUNT, MIN, MAX
- Enter the Result Field name that will hold the accumulated value.
- Select the Source Field that you want to accumulate.
- (Optional) Configure Advanced Accumulation if you need custom logic, when built‑in accumulation fields do not meet your needs:
- Select a scripting language, either JavaScript or Python.
- Enter your script in the editor, as required by the processor.
- In the Output Event Definition section, choose an existing event definition from the list. This definition describes the structure (fields and types) of the events that the Accumulator will output when your Advanced Accumulation script runs.
- Click Save to save the processor settings.