Hi Jerome,
Thanks for the quick reply.
Do you have any reference code as to where and how to catch the websocket exceptions?
Also the queue observation topic respond in three different metric categories like below,
Category 1
{'topicName': 'v2.analytics.queues.b8749577-2cf8-4d17-9df2-cdc2cfe082fd.observations', 'version': '2', 'eventBody': {'group': {'queueId': 'b8749577-2cf8-4d17-9df2-cdc2cfe082fd'}, 'data': [{'interval': '2021-08-19T12:56:16.035Z/2021-08-19T12:56:16.035Z', 'metrics': [{'metric': 'oActiveUsers', 'stats': {'count': 48.0}}, {'metric': 'oMemberUsers', 'stats': {'count': 64.0}}, {'metric': 'oUserRoutingStatuses', 'qualifier': 'OFF_QUEUE', 'stats': {'count': 48.0}}, {'metric': 'oUserPresences', 'qualifier': '6a3af858-942f-489d-9700-5f9bcdcdae9b', 'stats': {'count': 6.0}}, {'metric': 'oOffQueueUsers', 'qualifier': '6a3af858-942f-489d-9700-5f9bcdcdae9b', 'stats': {'count': 6.0}}, {'metric': 'oUserPresences', 'qualifier': 'ccf3c10a-aa2c-4845-8e8d-f59fa48c58e5', 'stats': {'count': 42.0}}, {'metric': 'oOffQueueUsers', 'qualifier': 'ccf3c10a-aa2c-4845-8e8d-f59fa48c58e5', 'stats': {'count': 42.0}}]}]}, 'metadata': {'CorrelationId': '0a4ca781-1732-4ff6-81dc-f0a03c05a644'}}
Category 2
{'topicName': 'v2.analytics.queues.e25798c8-0d7d-4b44-a6a3-574511c18f0d.observations', 'version': '2', 'eventBody': {'group': {'queueId': 'e25798c8-0d7d-4b44-a6a3-574511c18f0d', 'mediaType': 'voice'}, 'data': [{'interval': '2021-08-19T13:00:00.000Z/2021-08-19T13:30:00.000Z', 'metrics': [{'metric': 'nConnected', 'stats': {'count': 3.0}}, {'metric': 'tAcw', 'stats': {'count': 2.0, 'sum': 60000.0, 'min': 30000.0, 'max': 30000.0}}, {'metric': 'tHandle', 'stats': {'count': 2.0, 'sum': 118395.0, 'min': 39445.0, 'max': 78950.0}}, {'metric': 'nOutbound', 'stats': {'count': 3.0}}, {'metric': 'tDialing', 'stats': {'count': 3.0, 'sum': 34892.0, 'min': 5150.0, 'max': 21977.0}}, {'metric': 'tTalk', 'stats': {'count': 4.0, 'sum': 855491.0, 'min': 9445.0, 'max': 762831.0}}, {'metric': 'nError', 'stats': {'count': 1.0}}, {'metric': 'nConsult', 'stats': {'count': 1.0}}, {'metric': 'tContacting', 'stats': {'count': 3.0, 'sum': 6842.0, 'min': 1444.0, 'max': 3223.0}}, {'metric': 'tTalkComplete', 'stats': {'count': 2.0, 'sum': 48406.0, 'min': 9445.0, 'max': 38961.0}}]}]}, 'metadata': {'CorrelationId': '6b72ad11-c126-4557-93bc-a48dc2b0296a'}}
Category 3
{'topicName': 'v2.analytics.queues.b8749577-2cf8-4d17-9df2-cdc2cfe082fd.observations', 'version': '2', 'eventBody': {'group': {'queueId': 'b8749577-2cf8-4d17-9df2-cdc2cfe082fd', 'mediaType': 'voice'}, 'data': [{'interval': '2021-08-19T13:06:53.783Z/2021-08-19T13:06:53.783Z', 'metrics': [{'metric': 'oWaiting', 'stats': {'count': 3.0}}, {'metric': 'oInteracting', 'stats': {'count': 2.0}}]}]}, 'metadata': {'CorrelationId': '697dd1fb-4809-4c64-9a45-2a4a461fbe79'}}
So can I control this response , for example if I want only category 2 response and I want to ask for some set of metrics in category 2 response only .
Thanks,
Abhijeet Hivarkar