Author Topic: [SOLVED] Getting stats for an entire queue  (Read 2880 times)

jbattle

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
[SOLVED] Getting stats for an entire queue
« 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

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
« Last Edit: August 31, 2011, 23:28:45 by jbattle »

jbattle

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: [SOLVED] Getting stats for an entire queue
« Reply #1 on: August 31, 2011, 23:29:37 »
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

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: [SOLVED] Getting stats for an entire queue
« Reply #2 on: September 06, 2011, 10:18:17 »
 ;D