The difference of the datas got from developper tools and java application

Hi, I hava a question about the fields of the data(stats) I got from the Developper Tools and my java application. Can you give me some advices,thank you !

■the question
Using the same conditions ,when I excecuted the query under below through Developper Tools and my java application ,the fields of stats array I got from each was different. Do you know how this difference came out and how can I get the same data from my application as Developper Tools does?
・ /api/v2/analytics/conversations/aggregates/query

■the response data from Developper Tools
"metrics": [
{
"metric": "nOutbound",
"stats": {
"count": 1
}
},
{
"metric": "tAcw",
"stats": {
"max": 4000,
"min": 4000,
"count": 1,
"sum": 4000
}
},

■the response data from my appication
"metrics" : [ {
"metric" : "nOutbound",
"qualifier" : null,
"stats" : {
"max" : null,
"min" : null,
"count" : 1,
"countNegative" : null,
"countPositive" : null,
"sum" : null,
"current" : null,
"ratio" : null,
"numerator" : null,
"denominator" : null,
"target" : null
}
}, {
"metric" : "tAcw",
"qualifier" : null,
"stats" : {
"max" : 4000,
"min" : 4000,
"count" : 1,
"countNegative" : null,
"countPositive" : null,
"sum" : 4000,
"current" : null,
"ratio" : null,
"numerator" : null,
"denominator" : null,
"target" : null
}
},

■the conditions of the query
・"interval": "2022-10-05T00:00:00.000Z/2022-10-12T12:00:00.000Z"
・"granularity": "PT30M"
・"groupBy": ["queueId"]
・"metrics": ["nOutbound","tAcw"]

Thank you !

Hi @Jli
The SDK is an intermediary between the client and the API used to make the client's coding requirements simpler. Therefore, it introduces some of it's own formatting. Here, the vital information is the same, and the difference is that the null values are being included in the json response. In other words the SDK is still returning the information accurately, just in a different format.

1 Like

Ok,I understand.
Thank you for your confirmation.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.