Event Lifespan Codes

The Event Purge utility uses event lifespan codes to determine when an event should be deleted from the Event Repository.

When the Charging Server generates an event, the DeleteCode field in the event includes the ID of the event lifespan code configured in the event type. For example, here is part of an MtxVoiceEvent EDR which includes a DeleteCode for the event lifespan code named short_term.
<EventTime>2016-10-31T20:18:02.000000Z</EventTime>
      <Duration>10000000</Duration>
      <EventId>GAEQA_0:1:52:41</EventId>
      <DeleteCode>1</DeleteCode>

During configuration of the Event Purge utility, you can configure the lifespan duration in days for each event lifespan code. For example, the event lifespan code short_term can be configured with a duration of 90 days. The Event Purge utility deletes the event in the example 90 days after the EventTime.

For information about assigning event lifespan codes to events, see the discussion about event types. For more information about the Event Purge utility, see MATRIXX Integration.