I have a requirement to display the NotReady ReasonCode. But, I cannot find any code examples (preferably C#, but can translate) that show how to do this. There are code samples for retreiving the CurrentAgentState, but all you get is "NotReadyForNextCall". I need the 'why'. I've tried to dig into CCPulse to find this information, but even using the AgentPerformanceView -> CurrentState -> ReasonCode: doesn't display the actual reason string. I have ActionCodes added in CME. I've logged into the Genesys Support Phone and submitted the ReasonCode.
From the Test Phone
2016-08-23@16:07:05.982->[14] TAgentNotReady(,9938039,0,DATA,NULL)
Reasons:
(Str) REASON LUNCH
2016-08-23@16:07:06.32
Event:EventAgentNotReady
Server:65201
ReferenceID:14
AgentID:Z999283
ThisDN:9938039
Reasons:
(Str) REASON LUNCH
Extensions:
(Str) AgentSessionID B6055VE9O90UPD9PO3POK1KAD400043S
Seconds:1471993624
USeconds:658000
Server Time:2016-08-23@16:07:04.658
My questions is, how do I build a StatisticSubject, StatisticObject, StatisticMetricEx, and StatisticCategory to get the ReasonCode.
Note: this is a monitoring application looking at multiple agents.
TIA