Legacy Dev Forum Posts

 View Only

Sign Up

Metric of the api (Inconsistency of the documentation)

  • 1.  Metric of the api (Inconsistency of the documentation)

    Posted 06-05-2025 19:06

    Santiago_Carrillo | 2019-01-08 17:04:32 UTC | #1

    Regards,

    According to the pureCloud documentation, through the API you can consume a service that can get me the number of outgoing calls that were connected. The service is exposed with the following URI: / api / v2 / analytics / conversations / aggregates / query

    In practice this does not happen, based on the information exposed by purecloud, information is requested about the metric responsible for showing me the number of outgoing calls that were connected ("nOutboundConnected") does not give me any results, but in the example if it throws .

    I'll take the example from the following page: https://developer.mypurecloud.com/api/rest/v2/analytics/conversation_aggregate.html

    which gives an example of how to get information with the "nOutboundConnected" metric

    I use the example in the API only changing the time interval, with only the metric that I need, and the API does not return information, but in the example it does !.

    Request:

    Response:

    I need this metric for a development that the client is requesting.


    tim.smith | 2019-01-09 14:50:04 UTC | #2

    Metrics are only returned when there is data in the interval that matches the given filter. The predicates in your filter are missing the type and operator properties, try adding those. Also, the Analytics Query Builder is a much better tool for designing analytics queries than the API Explorer.


    system | 2019-02-08 15:03:49 UTC | #3

    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: 4312