Skip to main content

Accumulator as a processor

Zuora

Accumulator as a processor

You can create meters for the Accumulator processor.

Meter with Accumulator as a processor

To create a meter with Accumulator as the processor, follow the instructions below:

  1. Create a Custom Meter. For more information, see Create a new meter using custom method.
  2. Select Accumulator as the processor.
    The Accumulator settings page is displayed.
  3. Enter a name for the Accumulator component.
  4. Select the group by fields.
  5. Select the conditions for the release trigger.
    1. Timeout Type: You can select from one of the following options.
      1. Processing Time Based: Based on current time (actually the mediation server time).
      2. Event Time Based: Based on input event data field time. You can select the Event time field and specify the time format if using a special time format rather than the ISO date time format.
    2. Timeout Duration: You can define the timeout duration value followed by minute, hour, day, and calendar month.
      1. Please be aware all the time length is based on calendar time not first event ingestion time. For example, if you select 1 hour duration and the first event time is 4:26 pm, the next hour timeout is 5:00 pm instead of 5:26 pm. For day, if you select 1 day duration and the current day and time are 4:26 pm, Dec 19th, then the next day timeout is 12:00am, Dec 20th instead of 4:26 pm, Dec 20. For month, if you select 1 month and today is Dec 20th, the next month timeout is Jan 1st instead of Jan 20th.
      2. If you select Processing time based, the accumulator will be triggered once the timeout duration meets. However, if you select the event time based, the accumulator will be triggered only when the events coming after 5 mins of the timeout duration to indicate the last timeout window is closed. For example, if you select 1 hour duration and the current event time is 4:26 pm, the accumulator will be triggered when there is an event coming at 5:05 pm in the next hour. For the day, if you select the 1 day duration and the current day and time are 4:26 pm, Dec 19th, the accumulator will be triggered when there is an event coming in at 12:05 am. Dec 20.
    3. Event Time Field and Time Format: If you select the Event Time Based Timeout Type, you can define the Event time field and specify the time format if using any special time format.
  6. Select the accumulation options.
    1. Accumulate Fields:
    2. You can select the the source field you want to do the accumulation operations and defined the operator to use (sum, min, max, avg, count, delta), and result filed (will create a new field if using a new name or overwrite the source field if using the same name as source field).
      1. The accumulator will reduce the record rows and only output one accumulation result record for each of the same group by field value.
      2. The source field will be removed if the result field is using a new field name.
    3. Advanced Accumulation: You can set a complex Javascript or python to process the events.
      Note the advanced accumulation is computing resource intensive,  your meter could fail if the usage events are in large volume. Contact Zuora Global Support if you need to process events in large volumes with advanced accumulation.
  7. Click Save to save the Accumulator processor settings.