...
getHistoricalData (resolution: "hourly",
aggregateType: "count",
attributes: {val: ["callsAbandoned","callsReceived","callsAnswered"]},
comparison: "true",
filterAttributes: {val:["queue","skillGroup"]},
filterValues: {val: [[1, 2, 3], [4, 5, 6]],chartType:"Bar Chart"})
{
name
series
}
Result when comparison is false (i.e comparison of multiple attributes in single week)
Result:
[
{
name: "Mon"
series: [
{ "name": "Received",
"value": 490 }, { "name": "Answered",
"value": 490 }, { "name": "Abandoned",
"value": 490 }
]
},
{
...
{ "name": "Received",
"value": 490 }, { "name": "Answered",
"value": 570 }, { "name": "Abandoned",
"value": 220 }
]
}
]
Result when comparison is true (i.e comparison of same attribute for this and previous week)
Result:
[
{
name: "Mon"
series: [
{ "name": "This week",
"value": 490 }, { "name": "Previous Week",
"value": 490 }
]
},
{
name: "Tue"
series: [
{ "name": "This Week",
"value": 490 }, { "name": "Previous Week",
"value": 321 }
]
}
]