Managing Reports › Key Performance Indicators › Retrieve Ticket Data › KPI Ticket Data Table Record Types
KPI Ticket Data Table Record Types
There are five operation types in the usp_kpi_ticket_data table:
- INIT (0)
- NO_INIT_REC (1)
- REOPEN (2)
- UPDATE (3)
- CLOSE (4)
The type value (integer value shown in parentheses) is stored in the operation field. The end_time of the previous record is stored in the prev_time field. The ktd_duration field stores the duration, which is calculated as end_time minus prev_time. The previous record is defined in the following rules:
- The INIT record indicates a ticket has been created.
- An UPDATE record is created for each update to a ticket. It gets prev_time from a previous UPDATE record to the same ticket field if a previous UPDATE record exists. Otherwise, it gets prev_time from the INIT, NO_INIT_REC or REOPEN record, depending on which record has an end_time value closest in time to the UPDATE record.
- The CLOSE record is the same as UPDATE.
- If a ticket is reopened, a single REOPEN record is created to show the Active field value. The REOPEN record gets prev_time from a previous CLOSE record for the same Active field.
- If a ticket was created before turning on the Options Manager option, it may have records for updates but without an INIT record. The program in this case creates a NO_INIT_REC record and gets prev_time from the first non-INIT record it encounters.
Note: For complete documentation of the table fields, see the Technical Reference Guide.