QueueMetrics forum
QueueMetrics => Scripting QueueMetrics => Topic started by: jbattle on August 31, 2011, 23:02:02
-
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
(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
-
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.
-
;D