Get agent events for a single agent
(fnc_agent_events_window)
Please see more information, explanations and examples in ‘Audit log’ – see all events for an agent
Object name: | fnc_agent_events_window | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type: | Table value function | ||||||||||||||||||||||||||||||||||||
Description: |
Delivers the so called agent events for a particular agent, and for a specified period window. The main source is the table agent_events, but in addition to what’s found there some new events will be created (available and wrap up events). Also the start time, the end time, and the duration, of those events which are ongoing at the start and/or end of the specified period window will be adjusted to “fit” into these time frame “borders”. It is also possible (but not required) to specify an additional time frame (not date, but ’HH:MM’) for which the selected events should be further narrowed. For example you may ask for all events starting on January 1st 2013, and ending January 31st 2013, but limited only to those events appearing between ‘09:00’ and ’11:30’. As described above, also for this additional time frame all ongoing events at the “border” will be adjusted. |
||||||||||||||||||||||||||||||||||||
Parameters: |
|
||||||||||||||||||||||||||||||||||||
Returns: |
Returns a table with a subset of the columns from the table agent_events, and with two additional columns for the adjusted start and duration values (see Description above. The table returned is like this (columns without description is described under description for table agent_events)
|
||||||||||||||||||||||||||||||||||||
Samples: |
|