Szlaski_Daniel | 2018-08-14 16:33:59 UTC | #1
Hi,
I'm trying to obtain 2 metrics oServiceLevel and oServiceLevelTarget - API Metrics I've tried to use /api/v2/analytics/conversations/aggregates/query and /api/v2/analytics/queues/observations/query but all the time I get empty response {}
nOverSLA metric is retuned, others also but I need 2 mentioned above.
{ "interval": "2018-08-12T00:00:00.000Z/2018-08-14T22:00:00.000Z", "groupBy": [], "filter": { "type": "or", "predicates": [{ "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "f029fdee-875a-4c21-92bb-f36f1d32b211" }] }, "views": [], "metrics": [ "oServiceLevel", "oServiceTarget" ] }
Queue has properly defined SLA
"mediaSettings": { "call": { "alertingTimeoutSeconds": 8, "serviceLevel": { "percentage": 0.8, "durationMs": 20000 } }
I've also noticed that those params disapeared from https://developer.mypurecloud.ie/developer-tools/#/analytics-query-builder
Thomas_Larsen | 2018-08-14 09:44:16 UTC | #2
Noticed the same, but if you add a "group by queueid", you get your values :slight_smile:
{ "interval": "2018-08-11T22:00:00.000Z/2018-08-14T22:00:00.000Z", "groupBy": [ "queueId" ], "filter": { "type": "or", "predicates": [ { "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "2de2096b-1d56-4c61-9f44-957e090b7a29" } ] }, "views": [], "metrics": [ "oServiceLevel" ] }
Szlaski_Daniel | 2018-08-14 10:05:30 UTC | #3
Great finding. It Works!
Thx Daniel
system | 2018-09-14 10:05:31 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3366