Legacy Dev Forum Posts

 View Only

Sign Up

Error when passing metrics as part of aggregate query

  • 1.  Error when passing metrics as part of aggregate query

    Posted 06-05-2025 19:06

    Tony_Chen | 2020-12-23 09:13:02 UTC | #1

    I generated report by using developer tool. Same issue. UserId not retrieved.

    Generated Query:

    { "interval": "2020-10-01T09:58:12.000Z/2020-10-01T10:03:12.000Z", "groupBy": [ "conversationId", "userId" ], "filter": { "type": "and", "clauses": [ { "type": "or", "predicates": [ { "type": "dimension", "dimension": "mediaType", "operator": "matches", "value": "voice" } ] } ] }, "views": [], "metrics": [ "nError", "nOffered", "nOutbound", "nOutboundAbandoned", "nOutboundAttempted", "nOutboundConnected", "nOverSla", "nTransferred", "oServiceLevel", "oServiceTarget", "tAbandon", "tAcd", "tAcw", "tAgentResponseTime", "tAnswered", "tHandle", "tHeld", "tHeldComplete", "tIvr", "tTalk", "tTalkComplete", "tWait" ] }

    Query Result:

    { "results": [ { "group": { "conversationId": "2ab22c74-d1e9-444a-8325-feeeaf7909d4", "mediaType": "voice" }, "data": [ { "interval": "2020-10-01T09:58:12.000Z/2020-10-01T10:03:12.000Z", "metrics": [ { "metric": "tIvr", "stats": { "max": 46212, "min": 46212, "count": 1, "sum": 46212 } } ] } ] } ] }


    rama.meenavilli | 2020-12-23 09:46:05 UTC | #2

    Pls find more details about this query

    Query endpoint: POST /api/v2/analytics/conversations/aggregates/query We passed "groupBy": [ "conversationId", "userId" ] but not retrieved userId for some conversations


    Tony_Chen | 2020-12-24 09:11:43 UTC | #3

    Could anyone help us with this issue? What did we missed ?


    system | 2021-01-23 09:11:47 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 9584