Legacy Dev Forum Posts

 View Only

Sign Up

Redundant Metrics with Same Qualifier in Queue Observation Notification

  • 1.  Redundant Metrics with Same Qualifier in Queue Observation Notification

    Posted 06-05-2025 18:13

    Ali | 2018-03-28 15:50:06 UTC | #1

    I trying to get notifications for queue for topic id: (v2.analytics.queues.{id}.observations). But sometime the Json message contains redundant Metrics having same qualifier. The Analytics API endpoint (/api/v2/analytics/queues/observations/query) seems to work fine and never returns metrics having same qualifier. Sample Json message i got is as below contains oOnQueueUsers metrics having qualifier IDLE twice. Same is the case with oOffQueueUsers

    {
      "topicName": "v2.analytics.queues.2b351822-8d98-45fb-b7da-ca63d75c903c.observations",
      "version": "2",
      "eventBody": {
        "group": {
          "queueId": "2b351822-8d98-45fb-b7da-ca63d75c903c"
        },
        "data": [
          {
            "interval": "2018-03-28T04:00:00.000Z/2018-03-28T04:30:00.000Z",
            "metrics": [
              {
                "metric": "oOffQueueUsers",
                "qualifier": "6a3af858-942f-489d-9700-5f9bcdcdae9b",
                "stats": {
                  "count": 10
                }
              },
              {
                "metric": "oUserPresences",
                "qualifier": "6a3af858-942f-489d-9700-5f9bcdcdae9b",
                "stats": {
                  "count": 10
                }
              },
              {
                "metric": "oUserPresences",
                "qualifier": "e08eaf1b-ee47-4fa9-a231-1200e284798f",
                "stats": {
                  "count": 5
                }
              },
              {
                "metric": "oUserRoutingStatuses",
                "qualifier": "OFF_QUEUE",
                "stats": {
                  "count": 16
                }
              },
              {
                "metric": "oOnQueueUsers",
                "qualifier": "IDLE",
                "stats": {
                  "count": 1
                }
              },
              {
                "metric": "oUserRoutingStatuses",
                "qualifier": "IDLE",
                "stats": {
                  "count": 1
                }
              },
              {
                "metric": "oOnQueueUsers",
                "qualifier": "INTERACTING",
                "stats": {
                  "count": 5
                }
              },
              {
                "metric": "oUserRoutingStatuses",
                "qualifier": "INTERACTING",
                "stats": {
                  "count": 5
                }
              },
              {
                "metric": "oOnQueueUsers",
                "qualifier": "IDLE",
                "stats": {
                  "count": 0
                }
              },
              {
                "metric": "oUserRoutingStatuses",
                "qualifier": "IDLE",
                "stats": {
                  "count": 0
                }
              },
              {
                "metric": "oUserPresences",
                "qualifier": "e08eaf1b-ee47-4fa9-a231-1200e284798f",
                "stats": {
                  "count": 4
                }
              },
              {
                "metric": "oOffQueueUsers",
                "qualifier": "6a3af858-942f-489d-9700-5f9bcdcdae9b",
                "stats": {
                  "count": 11
                }
              },
              {
                "metric": "oUserPresences",
                "qualifier": "6a3af858-942f-489d-9700-5f9bcdcdae9b",
                "stats": {
                  "count": 11
                }
              }
            ]
          }
        ]
      },
      "metadata": {
        "CorrelationId": "f1013730-323e-11e8-af23-ed01514f8593"
      }
    }

    tim.smith | 2018-03-28 15:51:28 UTC | #2

    This definitely seems like a bug with the Analytics service that will require additional investigation via Support. Can you open an issue with PureCloud Support please?


    Ali | 2018-03-29 03:35:39 UTC | #3

    Thanks Tim, for helping out. I will open the issue on Purecloud support.


    system | 2018-04-29 03:42:35 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: 2674