Hello,
Please, how to get the actual service level in a queue ( not the target one) via API ?
Here's in red what I mean in PureCloud Web GUI:
Thank you.
Hello,
Please, how to get the actual service level in a queue ( not the target one) via API ?
Here's in red what I mean in PureCloud Web GUI:
Thank you.
You use /api/v2/analytics/conversations/aggregates/query
https://developer.mypurecloud.ie/api/rest/v2/analytics/index.html#postAnalyticsConversationsAggregatesQuery
Then you just filter the time frame and queue you want to see, and select the oServiceLevel metric.
Your ServiceLevel should be "ratio" in the response.
Example query:
{
"interval": "2017-11-22T23:00:00.000Z/2017-11-23T23:00:00.000Z",
"groupBy": [],
"filter": {
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "queueId",
"operator": "matches",
"value": "c99646a3-e18b-4c87-a27b-39f6414e7caa"
}
]
},
"views": [],
"metrics": [
"oServiceLevel"
]
}
Example response:
{
"results": [
{
"group": {
"mediaType": "voice"
},
"data": [
{
"interval": "2017-11-22T23:00:00.000Z/2017-11-23T23:00:00.000Z",
"metrics": [
{
"metric": "oServiceLevel",
"stats": {
"ratio": 0.4935064935064935,
"numerator": 38,
"denominator": 77
}
}
]
}
]
}
]
}
Thank you very much !
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.