I'm having a hard time with the realtime XML-RPC method, in particular that even though I'm giving it a queue name it is still returning the stats for *all* queues.
Here's a sample method call and its response:
####
T 10.1.1.1:59310 -> 10.2.1.1:8088 [AP]
POST /queuemetrics/xmlrpc.do HTTP/1.1.
TE: deflate,gzip;q=0.3.
Connection: TE, close.
Host: queuemetrics.domain.com:8088.
User-Agent: libwww-perl/5.805.
Content-Type: text/xml.
Content-Length: 481.
.
<?xml version="1.0"?>
<methodCall>
<methodName>QM.realtime</methodName>
<params>
<param><value><string>ithd-q</string></value></param>
<param><value><string>username</string></value></param>
<param><value><string>password</string></value></param>
<param><value><string></string></value></param>
<param><value><string></string></value></param>
<param><value><array><data>
<value><string>RealTimeDO.RTRiassunto</string></value></data></array></value>
</param>
</params>
</methodCall>
##
T 10.2.1.1:8088 -> 10.1.1.1:59310 [A]
HTTP/1.1 200 OK.
Server: Apache-Coyote/1.1.
Set-Cookie: JSESSIONID=49AE0E17B7FCCB52628A6EC94A38C30B; Path=/queuemetrics.
Content-Type: text/xml.
Content-Length: 1654.
Date: Tue, 21 Aug 2007 15:48:01 GMT.
Connection: close.
.
<?xml version="1.0" encoding="ISO-8859-1"?><methodResponse><params><param><value><struct><member><name>result</name><value><array><data><value><array><data><value><string>Status</string></value><value><string>OK</string></value></data></array></value><value><array><data><value><string>Description</string></value><value><string></string></value></data></array></value><value><array><data><value><string>Time elapsed (ms)</string></value><value><i4>97</i4></value></data></array></value><value><array><data><value><string>QM Version</string></value><value><string>1.3.5</string></value></data></array></value></data></array></value></member><member><name>RealTimeDO.RTRiassunto</name><value><array><data><value><array><data><value><string>&nbsp;</string></value><value><string>Queue &nbsp;</string></value><value><string>N. agents</string></value><value><string>Ready agents</string></value><value><string>On pause</string></value><value><string>Unk</string></value><value><string>Bsy</string></value><value><string>N. Calls waiting</string></value><value><string>On phone inbound</string></value><value><string>On phone outbound</string></value></data></array></value><value><array><data><value><string>&nbsp;<
##
T 10.2.1.1:8088 -> 10.1.1.1:59310 [AP]
/string></value><value><string>All selected</string></value><value><string>16</string></value><value><string>9</string></value><value><string>7</string></value><value><string>0</string></value><value><string>0</string></value><value><string>0</string></value><value><string>0</string></value><value><string>0</string></value></data></array></value></data></array></value></member></struct></value></param></params></methodResponse>
####
If there's something wrong with that, please let me know. But it looked ok to me (or else why would I be asking
).