Legacy Dev Forum Posts

 View Only

Sign Up

Recent changes to queue observations

  • 1.  Recent changes to queue observations

    Posted 06-05-2025 18:15

    bjayakatubby | 2019-09-27 14:39:45 UTC | #1

    We need some developer assistance with the PureCloud API. In short, our goal is to figure out the number of users who are online and awaiting activity in a specific queue.

    For about 10 months now, we’ve been using the .NET NuGet package PureCloudPlatform.Client.V2 as our API wrapper. (I don't think the issue is specific to .NET, however.) We’re POSTing to /api/v2/analytics/queues/observations/query with a single predicate on dimension = "queueId" and value = "(queue ID)". Our current logic is

    1. Sum response.results[].data[].stats.count where data.metric == "oActiveUsers", yielding numActiveUsers
    2. Sum response.results[].data[].stats.count where data.metric == "oOffQueueUsers", yielding numOffQueueUsers
    3. Calculate numActiveUsers - numOffQueueUsers, yielding numOnlineUsers

    Before today, this has given us the expected result of numOnlineUsers >= 0; what’s changed now is that numActiveUsers comes back as 0, yielding numOnlineUsers <= 0. We haven’t changed our code in almost a year, leading us to suspect the API has changed. Can anyone please offer any insights or assistance? Thanks in advance!


    peter.westermann | 2019-09-27 16:17:21 UTC | #2

    Due to a recently introduced bug, oActiveUsers and oMemberUsers are currently dropped in the response from the queue observations endpoint. The fix should be deployed soon.


    bjayakatubby | 2019-09-27 16:24:38 UTC | #3

    Thanks, @peter.westermann. Do you have a timeline? Either way, will you please post an update here and let me know once the fix has been deployed? Thanks!


    peter.westermann | 2019-09-27 16:37:28 UTC | #4

    I'll post here when the fix has been deployed.


    Paulo | 2019-09-30 20:41:25 UTC | #5

    peter.westermann, post:2, topic:6124
    oMemberUsers

    Hi Team,

    Is there an update? We are having the same issue for the metric oMemberUsers.


    peter.westermann | 2019-10-01 18:39:26 UTC | #6

    The bugfix has just been deployed.


    system | 2019-11-01 18:39:27 UTC | #7

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