mayliwk | 2016-06-28 19:36:53 UTC | #1
I am running PostQueuesObservationsQuery via Postman and am not able to bring any data back. I am passing an empty body. Does something need to be filled out?
Also, I would like to get a list of agents for a queue. How would I go about doing this? What API Call?
Thanks <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/8aa86c5fd183c3278f8d55bf295ec01438a7fbca.png" width="461" height="500">
dsouther | 2016-06-28 20:58:01 UTC | #2
You need to at least provide an interval
e.g.
{ "interval": "2016-06-22T00:00:00.000Z\/2016-06-23T00:00:00.000Z" }
mayliwk | 2016-06-29 10:43:49 UTC | #3
There isn't a INTERVAL option within the body. <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/a91fa124dd04521db5a965482a7a11c518b6449c.png" width="690" height="87">
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/8c371637a6199d57b8cf8981c5ce496c4269857c.png" width="690" height="106">
tim.smith | 2016-06-29 14:32:09 UTC | #4
You are correct that there is no interval. However, I believe you need to need to provide a value for metrics to tell it to return some data. You may also want to provide a value for filter to pair down the results to the things you're interested in. https://developer.mypurecloud.com/api/rest/client-libraries/csharp/latest/ObservationQuery.html
tim.smith | 2016-06-29 14:51:57 UTC | #5
I would like to get a list of agents for a queue. How would I go about doing this? What API Call?
GET /api/v2/routing/queues/{queueId}/users - Get the members of this queue
anon47305574 | 2016-08-12 19:46:34 UTC | #6
Just to clarify a few things in this thread:
- there's some documentation on this endpoint here that may be helpful: https://developer.mypurecloud.com/api/rest/v2/analytics/queue.html
- observation data is meant to be current-snapshot-of-the-universe, point in time sort of stuff. So intervals and lagging/trailing-indicator/aggregate kind of metrics won't appear here. Think more along the lines of "how many agents are free on this queue right now" and "how many interactions are in the queue right now" (as opposed to "what is my avg talk time over a 30min interval at lunch-time yesterday")
All that being said, you need to minimally pass in a queue ID that you would like to get data about. Beyond that, there are additional filtering options to get less data
system | 2017-08-28 19:25:05 UTC | #7
This post was migrated from the old Developer Forum.
ref: 105