Genesys Cloud (formerly PureCloud)

Discussion Thread View
Expand all | Collapse all

aggregate query for retrieving call data

  • 1.  aggregate query for retrieving call data

    Posted 7 days ago
    Team,

    I am running below aggregate query for retrieving call data.

    Please suggest which best metric to pull full information like tacd,connected,nofferred

    {
    "interval": "2020-07-13T14:30:00.000Z/2020-07-13T18:30:00.000Z",
    "timeZone": "America/New_York",
    "groupBy": [
    "queueId"
    ],
    "filter": {
    "type": "and",
    "clauses": [
    {
    "type": "or",
    "predicates": [
    {
    "type": "dimension",
    "dimension": "queueId",
    "operator": "matches",
    "value": "ZZZZ"
    },
    {
    "type": "dimension",
    "dimension": "queueId",
    "operator": "matches",
    "value": "vcvccvv"
    }
    ]
    }
    ],
    "predicates": [
    {
    "type": "dimension",
    "dimension": "mediaType",
    "operator": "matches",
    "value": "voice"
    }
    ]
    },
    "metrics": [
    "tAcd"
    ]
    }
    #Reporting/Analytics

    ------------------------------
    Raghava Charyulu PVDS
    Cognizant Technology Solutions India
    ------------------------------


  • 2.  RE: aggregate query for retrieving call data

    GENESYS
    Posted 6 days ago
    You should be able to send:
    "metrics": [
         "tAcd",
         "nOffered",
         "nConnected" (or "tAnswered" if you are looking for answered interactions)
    ]

    ------------------------------
    Maisey Harris
    Development Group Manager, Analytics UI & Reporting
    Genesys
    ------------------------------



  • 3.  RE: aggregate query for retrieving call data

    Posted 6 days ago

    Hi Maisey,

     

    Thanks for your response.

     

    If I use all 3 metrics it will retrieve full interaction details correct?

     

    Thanks&Regards,
    PVDS Raghava Charyulu
    EAS CRM CIM
    M. +91-970 448 8875
    Email:raghava.pvds@cognizant.com

     






  • 4.  RE: aggregate query for retrieving call data

    GENESYS
    Posted 6 days ago
    Ah okay, if you want the actual detail data, you'll want to use the /api/v2/analytics/conversations/details/query endpoint. For more information, I'd encourage you to check out the api docs. Additionally there is a video that demonstrates how to get analytics data from the various endpoints.

    ------------------------------
    Maisey Harris
    Development Group Manager, Analytics UI & Reporting
    Genesys
    ------------------------------