I am working with C# library and I am trying to get the callback data for a specific day. I can't seem to get the whole 24 hour interval in my response. Only the hours of 12 PM and on show up in my response. On the website I see the whole 24 hour interval and my request is set to be identical to the what the website is using (Via network tab).
Here is my request
{
"filter": {
"type": "and",
"clauses": [
{
"type": "or",
"predicates": [
{
"dimension": "queueId",
"value": "validid"
}
]
}
],
"predicates": [
{
"dimension": "mediaType",
"value": "callback"
}
]
},
"metrics": [
"nOffered",
"tAnswered",
"tAbandon",
"nOutbound",
"tFlowOut",
"nConnected",
"oServiceLevel",
"tWait",
"tHandle",
"tTalkComplete",
"tHeldComplete",
"tAcw",
"tDialing",
"tContacting",
"nTransferred",
"nBlindTransferred",
"nConsult",
"nConsultTransferred",
"oExternalMediaCount",
"oMediaCount",
"nError",
"nOverSla",
"tShortAbandon",
"nOutboundAttempted",
"tVoicemail"
],
"groupBy": [
"queueId"
],
"granularity": "PT30M",
"interval": "2022-06-13T00:00:00.000Z/2022-06-14T05:00:00.000Z"
}
My C# code is similar to the example in the api documentation
body= new ConversationAggregationQuery(); //includes the top
caqResponse = apiInstance.PostAnalyticsConversationsAggregatesQuery(body);
Metrics emit in the interval in which they occur, so even if you have active callbacks within those intervals you aren't seeing that doesn't mean they'll produce metrics for those intervals. The API will only return intervals in the response that have data. I'd assume those intervals where you don't see data are likely when the business was closed which means no segments were ending to be able to produce any metrics.
Thank you for the response. I called the API and got back only some data from 6/14-6/15. When I visit Genesys Cloud
and I set the time from 06/14/2022 12:00 AM to 06/15/2022 12:00 AM.
I see data summarized in the view for 2022-06-14T08:00:00.000Z/2022-06-14T08:30:00.000Z. The data from the API matches to this interval 2022-06-14T13:00:00.000Z/2022-06-14T13:30:00.000Z. For example I get back
"interval": "2022-06-14T13:00:00.000Z/2022-06-14T13:30:00.000Z",
"metrics": [
{
"metric": "nConnected",
"stats": {
"count": 3
}
},
That data when viewing in chrome shows similar values for 8:00 AM.
Is there an issue from my end with the time formatting incorrectly?
The API will return values in GMT, the UI will time zone adjust the data set according to your machine's configured time zone. From the sounds of your problem description, you're in a +5 GMT time zone.