Hello All,
I am trying to get an Division, Queue, User Aggregated data from Conversation Aggregated Query and store in DB.
When I query an API by grouping Division, Queue, User received the below response.
Concern in below response is "nConnected" value is different. For voice calls it is "1" and again voice calls under "Division" is "2".
As per my understanding first section should be giving total voice calls and then followed by number of calls on each division.
- Could you please elaborate the difference between "nConnected" value each section?
- Do you have best practice for storing Division, Queue, User aggregated data in to DB on daily basis?
- What is the algorithm/logic is applied to get the aggregated data from conversation details query output.
- Please explain me the response order for Conversation Aggregate Data.
{
"results": [
{
"group": {
"mediaType": "voice"
},
"data": [
{
"interval": "2022-09-04T18:30:00.000Z/2022-09-11T18:30:00.000Z",
"metrics": [
{
"metric": "nConnected",
"stats": {
"count": 1
}
}
]
}
]
},
{
"group": {
"divisionId": "d0b618e5-ea69-4273-a1d3-ddeb7413825c",
"mediaType": "voice"
},
"data": [
{
"interval": "2022-09-04T18:30:00.000Z/2022-09-11T18:30:00.000Z",
"metrics": [
{
"metric": "nConnected",
"stats": {
"count": 2
}
},
{
"metric": "tIvr",
"stats": {
"max": 18784,
"min": 18784,
"count": 1,
"sum": 18784
}
}
]
}
]
},
{
"group": {
"divisionId": "d0b618e5-ea69-4273-a1d3-ddeb7413825c",
"mediaType": "voice",
"userId": "99dbadad-0f1a-4f76-a576-09b57f6981f9"
},
"data": [
{
"interval": "2022-09-04T18:30:00.000Z/2022-09-11T18:30:00.000Z",
"metrics": [
{
"metric": "tContacting",
"stats": {
"max": 16572,
"min": 16572,
"count": 1,
"sum": 16572
}
},
{
"metric": "tDialing",
"stats": {
"max": 14771,
"min": 14771,
"count": 1,
"sum": 14771
}
},
{
"metric": "tHandle",
"stats": {
"max": 150784,
"min": 150784,
"count": 1,
"sum": 150784
}
},
{
"metric": "tHeld",
"stats": {
"max": 91852,
"min": 91852,
"count": 1,
"sum": 91852
}
},
{
"metric": "tHeldComplete",
"stats": {
"max": 91852,
"min": 91852,
"count": 1,
"sum": 91852
}
},
{
"metric": "tTalk",
"stats": {
"max": 27589,
"min": 27589,
"count": 1,
"sum": 27589
}
},
{
"metric": "tTalkComplete",
"stats": {
"max": 27589,
"min": 27589,
"count": 1,
"sum": 27589
}
}
]
}
]
}
]
}