Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Flush by setting determines when flush happens, that is when the aggregated output data records are sent to downstream systems. You have two options;

  • Period end - This option is used when you want to aggregate over period of time, usually in sync with billing cycle. If you select this option, the meters will be flushed and reset when the current period of meter has ended. The period end of meter is determined by the Reset schedule defined for each meter type, see Creating Meter Types.
    If the meters are flushed by Period end, the periodStart is initially set to the creation time of each meter, and the periodEnd is calculated based on the Reset schedule of the respective meter type.

    To move the meters to their next period when meters are flushed, the periodEnd becomes the new periodStart, and a new periodEnd is calculated based on the meter type Reset schedule.

  • Stream execution - Stream execution - This option is usually used when testing the usage metering solution with integration and you want to output the metered record from meter processor immediately. If you select this option, all meters will be flushed and reset at the end of stream execution, see Execution of Usage Metering Streams for further information about stream execution considerations.
    If the meters are flushed by Stream execution, the periodEnd of the flushed meter is set to the time of the flush. The periodStart of the meter in the stream is also set to the time of the flush, and the periodEnd is calculated using the meter type Reset schedule.

Meters that have passed their periodEnd will be flushed at the beginning of the stream execution.

...