Received data differs between DeveloperTools and App

The following API is implemented in Java.
"/api/v2/analytics/conversations/aggregates/query"

"nOffered" can be obtained in DeveloperTool, but not in
App cannot get "nOffered" (some other queueId can get "nOffered").

Some other QueueId's are able to get "nOfferd".
Please let me know how to solve this problem.

<DeveloperTool>
"group": {
"mediaType": "voice",
"queueId": "f7dcdd29-6f45-4ec9-8b47-d6e5a7e0d905"
},
"data": [
{
"interval": "2023-02-15T00:00:00.000Z/2023-02-15T00:30:00.000Z",
"metrics": [
{
★ "metric": "nOffered",
"stats": {
"count": 1
}
},

<JavaApp>

"group" : {
"mediaType" : "voice",
"queueId" : "f7dcdd29-6f45-4ec9-8b47-d6e5a7e0d905"
},
"data" : [ {
"interval" : "2023-02-15T00:00:00.000Z/2023-02-15T00:30:00.000Z",
"metrics" : [ {
"metric" : "tAnswered",
"qualifier" : null,
"stats" : {
"max" : 24971,
"min" : 24971,
"count" : 1,
"countNegative" : null,
"countPositive" : null,
"sum" : 24971,
"current" : null,
"ratio" : null,
"numerator" : null,
"denominator" : null,
"target" : null
}


JavaSource


List metricsEnum = new ArrayList<>();
metricsEnum.add(MetricsEnum.NOFFERED);
metricsEnum.add(MetricsEnum.NTRANSFERRED);
metricsEnum.add(MetricsEnum.OSERVICELEVEL);
metricsEnum.add(MetricsEnum.TABANDON);
metricsEnum.add(MetricsEnum.TANSWERED);
metricsEnum.add(MetricsEnum.TSHORTABANDON);
conBody.setMetrics(metricsEnum);

ConversationAggregateQueryFilter conFilter = new ConversationAggregateQueryFilter();
conBody.setFilter(conFilter.type(ConversationAggregateQueryFilter.TypeEnum.OR));

Hi Yosuke,

I'm not able to replicate the issue. I got the same result using the java SDk and the developer tools (all results included "nOffered").
My the java code I used was:

        ConversationsApi apiInstance = new ConversationsApi();
        ConversationAggregationQuery conBody = new ConversationAggregationQuery();
        conBody.setInterval("2000-01-01T00:00:00/2023-02-16T09:54:00");

        List metricsEnum = new ArrayList<>();
        metricsEnum.add(ConversationAggregationQuery.MetricsEnum.NOFFERED);
        metricsEnum.add(ConversationAggregationQuery.MetricsEnum.NTRANSFERRED);
        metricsEnum.add(ConversationAggregationQuery.MetricsEnum.OSERVICELEVEL);
        metricsEnum.add(ConversationAggregationQuery.MetricsEnum.TABANDON);
        metricsEnum.add(ConversationAggregationQuery.MetricsEnum.TANSWERED);
        metricsEnum.add(ConversationAggregationQuery.MetricsEnum.TSHORTABANDON);
        conBody.setMetrics(metricsEnum);

        ConversationAggregateQueryFilter conFilter = new ConversationAggregateQueryFilter();
        conBody.setFilter(conFilter.type(ConversationAggregateQueryFilter.TypeEnum.OR));

        try {
            // Query for conversation aggregates
            ConversationAggregateQueryResponse result = apiInstance.postAnalyticsConversationsAggregatesQuery(conBody);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#postAnalyticsConversationsAggregatesQuery");
            e.printStackTrace();
        }

Can you double check that the parameters you used on the developer centre are the same as the ones used in your java code?

Regards,
Declan

Thank you for your response.
I checked the program and it matched.

The other QueueId data received in the same program contains nOffered.
Is there any other cause/investigation?

Metrics only exist if they have values. No metric means no value. If you believe this is incorrect and the missing metrics should not be missing, please open a case with Genesys Cloud Care as customer-specific data cannot be investigated via the forum.

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