mayliwk | 2016-07-06 13:45:41 UTC | #1
I am trying to bring back some data for certain queues. I am testing the Queue query within Postman and can get some data back but not a complete list. If I use the body below, it will bring back the users, members for the queue and the interacting and waiting totals for each media but nothing else. I have tried adding metrics but it just brings back an empty dataset.
Body Sent { "filter": { "type": "and", "clauses": [ { "type": "and", "predicates": [ { "dimension": "queueId", "value": "37fcfa74-515c-4d5d-a474-ba9b8a7ec6a0" } ] }
] } }
Response { "results": [ { "group": { "queueId": "37fcfa74-515c-4d5d-a474-ba9b8a7ec6a0" }, "data": [ { "metric": "oActiveUsers", "stats": { "count": 24 } }, { "metric": "oMemberUsers", "stats": { "count": 24 } } ] }, { "group": { "mediaType": "voice", "queueId": "37fcfa74-515c-4d5d-a474-ba9b8a7ec6a0" }, "data": [ { "metric": "oInteracting", "stats": { "count": 0 } }, { "metric": "oWaiting", "stats": { "count": 0 } } ] }, { "group": { "mediaType": "chat", "queueId": "37fcfa74-515c-4d5d-a474-ba9b8a7ec6a0" }, "data": [ { "metric": "oInteracting", "stats": { "count": 0 } }, { "metric": "oWaiting", "stats": { "count": 0 } } ] }, { "group": { "mediaType": "email", "queueId": "37fcfa74-515c-4d5d-a474-ba9b8a7ec6a0" }, "data": [ { "metric": "oInteracting", "stats": { "count": 0 } }, { "metric": "oWaiting", "stats": { "count": 0 } } ] }, { "group": { "mediaType": "callback", "queueId": "37fcfa74-515c-4d5d-a474-ba9b8a7ec6a0" }, "data": [ { "metric": "oInteracting", "stats": { "count": 0 } }, { "metric": "oWaiting", "stats": { "count": 0 } } ] } ] }
tim.smith | 2016-07-11 18:02:03 UTC | #2
See the documentation for the metrics parameter, emphasis added:
(array, optional): Behaves like a SQL SELECT clause. Enables retrieving only named metrics. **If omitted, all metrics that are available will be returned (like SELECT )*. Valid Values: tSegmentDuration, oTotalCriticalScore, oTotalScore, nEvaluations, tAbandon, tIvr, tAnswered, tAcd, tTalk, tHeld, tTalkComplete, tHeldComplete, tAcw, tHandle, tWait, tAgentRoutingStatus, tOrganizationPresence, tSystemPresence, tUserResponseTime, tAgentResponseTime, nOffered, nOverSla, nTransferred, nOutboundAttempted, nOutboundConnected, nOutboundAbandoned, nError, oServiceTarget, oServiceLevel, tActive, tInactive, oActiveUsers, oMemberUsers, oActiveQueues, oMemberQueues, oInteracting, oWaiting, oOnQueueUsers, oOffQueueUsers
When you don't specify a metric, you get all of the metrics that exist. If you specify only metrics that do not exist, you won't get any results at all because no results exist for those metrics.
system | 2017-08-28 19:25:10 UTC | #3
This post was migrated from the old Developer Forum.
ref: 118