Legacy Dev Forum Posts

 View Only

Sign Up

Current and actual service level in a queue

  • 1.  Current and actual service level in a queue

    Posted 06-05-2025 18:01

    Malick | 2017-11-22 12:34:03 UTC | #1

    Hello,

    Please, how to get the actual service level in a queue ( not the target one) via API ? Here's in red what I mean in PureCloud Web GUI: <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/66b75c5faa1d857add6ef3ceb6ee108b94dbdb27.png" width="690" height="111">

    Thank you.


    Thomas_Larsen | 2017-11-23 16:54:50 UTC | #2

    You use /api/v2/analytics/conversations/aggregates/query https://developer.mypurecloud.ie/api/rest/v2/analytics/index.html#postAnalyticsConversationsAggregatesQuery

    Then you just filter the time frame and queue you want to see, and select the oServiceLevel metric.

    Your ServiceLevel should be "ratio" in the response.

    Example query:

    { "interval": "2017-11-22T23:00:00.000Z/2017-11-23T23:00:00.000Z", "groupBy": [], "filter": { "type": "or", "predicates": [ { "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "c99646a3-e18b-4c87-a27b-39f6414e7caa" } ] }, "views": [], "metrics": [ "oServiceLevel" ] }

    Example response:

    { "results": [ { "group": { "mediaType": "voice" }, "data": [ { "interval": "2017-11-22T23:00:00.000Z/2017-11-23T23:00:00.000Z", "metrics": [ { "metric": "oServiceLevel", "stats": { "ratio": 0.4935064935064935, "numerator": 38, "denominator": 77 } } ] } ] } ] }


    Malick | 2017-11-24 02:54:45 UTC | #3

    Thank you very much !


    system | 2017-12-25 02:54:57 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 2138