kamerino | 2017-03-31 12:20:13 UTC | #1
Hello! I am doing a development and I am trying to get the metric oServiceLevel in the current month, in a certain queue.
The problem I am having is that some metrics are not shown if the time interval is greater than 7 days.
On the other hand I am trying to calculate the value on my own by taking the data that is obtained from the metrics, but I am not able to get it.
Thank you!
tim.smith | 2017-03-31 15:18:28 UTC | #2
Can you provide the query body that has the issue and let me know which resource you're using?
kamerino | 2017-04-04 20:43:20 UTC | #3
var body = {
"interval": "2017-03-01T00:00:00.000Z/2017-03-30T00:00:00.000Z",
"granularity": "PT24H",
"groupBy": [
"queueID"
],
"metrics": [
"nOffered",
"nTransferred",
"tAbandon",
"tAnswered",
"oServiceLevel",
"oServiceTarget"
],
"filter": {
"type": "and",
"clauses": [
{
"type": "or",
"predicates": [
{
"dimension": "queueId",
"value": "ee84df70-d5c2-46fc-9d09-f0e27525b7fb"
}
]
},
{
"type": "or",
"predicates": [
{
"dimension": "mediaType",
"value": "voice"
}
]
}
]
}
}
I am using Javascript.
tim.smith | 2017-04-03 14:13:16 UTC | #4
What resource are you using? Is it POST /api/v2/analytics/queues/observations/query or something else?
kamerino | 2017-04-04 07:58:08 UTC | #5
Sorry xD
i am using POST /api/v2/analytics/conversations/aggregates/query
tim.smith | 2017-04-04 20:59:04 UTC | #6
I've tried to reproduce this, but I get data for every PT1D segment for the max interval (3 weeks). Can you be more specific about which metrics are missing and if there's any pattern to it?
kamerino | 2017-04-05 08:14:56 UTC | #7
Thank you! Solve the problem.
I had problems with the time interval. I was setting the hours 23:59:59 and it was wrong if the time was not accurate at the end of the day.
system | 2017-08-28 19:33:32 UTC | #8
This post was migrated from the old Developer Forum.
ref: 1132