QueueMetrics > Scripting QueueMetrics
[SOLVED] Getting stats for an entire queue
(1/1)
jbattle:
I'm able to fetch data for the QM.stats method, but only if I supply an agent ID. The example code provided at this URL
http://queuemetrics.com/manuals/QM_XML-RPC_manual-chunked/ar01s02.html#_example_accessing_queuemetrics_from_javascript
implies that we can pass a queue ID and NO agent ID and get meaningful output. However, when I do this I get zeroes for all data points. Am I doing something wrong? Is the demo wrong? How do I get statistics on a queue globally (across all agents)?
thanks!
Jake
jbattle:
I got this working after poking about randomly. It turns out I was formatting my report date ranges format (yyyy-dd-mm) instead of yyyy-mm-dd. After making this change I was able to fetch stats for the queue as a whole.
QueueMetrics:
;D
Navigation
[0] Message Index
Go to full version