Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 490
   
4-48
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 4      Building Your Application
Working with Agent Statistics
Accessing Agent Statistics
Overview
Once the applications are set up to receive agent statistics, as described in the preceding section, you can 
access agent statistics in two ways:
By implementing the eOnNewAgentStatisticsEvent() (in Java) or the OnAgentStatistics() event (in 
C++, COM, or VB 6.0)
Caution
The name of the event to access agent statistics is different in Java when compared to other 
languages supported by CTI OS.
Through the Agent instance itself
The rest of this section describes these methods for accessing agent statistics.
Registering to the eOnNewAgentStatisticsEvent() (JAVA)
To register to receive agent statistics, you must include the eOnNewAgentStatisticsEvent() in the 
message filter.
For example, in Java, the message filter to receive agent statistics is:
String filter = S_MESSAGEID + “=" + 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CtiOs_Enums.EventID.eNewAgentStatisticsEvent;
For more information on message filters, see 
.
Registering to the OnAgentStatistics() (C++, COM, and VB)
To register to receive agent statistics, you must include the OnAgentStatistics() event in the message 
filter.
For more information on message filters, see 
.
How to Get Agent Statistics through the Agent Instance
Once you have used the EnableAgentStatistics() method for the agent, agent statistics are available 
through that Agent instance. 
To get the agent statistics
Step 1
Get the Arguments instance containing statistics from the Agent instance using the GetValueArray() 
method.
Step 2
Parse the Arguments instance as needed to get specific statistics.