Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 490
   
11-13
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 11      SkillGroup Object
Methods
EnableSkillGroupStatistics
The EnableSkillGroupStatistics method requests that real-time statistics be sent to the skillgroup object. 
In an agent mode application, this request is usually made through the agent object (see 
). If the argument array is empty, then statistics for all skillgroups are enabled. This is 
useful when a monitoring application needs to view all statistics without having to enumerate and loop 
over each statistic to enable it.
Syntax
C++:
int EnableSkillGroupStatistics(Arguments & args) 
COM:
HRESULT EnableSkillgroupStatistics (IArguments * args, int * errorCode)
VB:
EnableSkillgroupStatistics (args As CTIOSCLIENTLib.IArguments, errorCode As Long)
Java:
int EnableSkillGroupStatistics(Arguments args)
.NET
CilError EnableSkillGroupStatistics(Arguments args)
Parameters
args
If this method is called via the session object in monitor mode with the  special SkillGroupStats 
filter,  the args parameter has two required values for PeripheralId and SkillGroupNumber. See the 
Remarks section for a code example. Otherwise, this parameter is not used.
errorCode
An output parameter (return parameter in VB) that contains an error code, if any.
Return Value
Default CTI OS return values. See 
Remarks
CTI OS Server sends skillgroup statistics in an OnSkillGroupStatisticsUpdated event.
The following is a C++ code example where the args parameter contains values for PeripheralID and 
SkillGroupNumber.
Arguments & argsStatBroadcast = Arguments::CreateInstance();
argsStatBroadcast.AddItem(CTIOS_SKILLGROUPNUMBER, intSG);
argsStatBroadcast.AddItem(CTIOS_PERIPHERALID, m_periphID);
m_pSkGrStatSession->EnableSkillGroupStatistics ( argsStatBroadcast );
argsStatBroadcast.Release();
GetElement
See 
 for a description of the GetElement method.