Notifications for interval/Day queue activity

Hello,

I'm trying to get interval/Day queue activity using notifications
to show queue activity like the Genesys Cloud UI.
e.g. Answer Interval/Day

GCUI

I tried notifications topic "v2.analytics.queues.{Id}.observations".
But that topic returned only 30 minutes interval data.

"interval": "2021-07-14T01:30:00.000Z/2021-07-14T02:00:00.000Z"

does anyone know a notification topic that returns interval/Day data?

Appreciate your advice.

Thanks,
Yasufumi Ikeda

What you're doing won't give you the same answer because it's not how that page is getting it.
The activity page runs

/api/v2/analytics/conversations/aggregates/query

	"interval": "2021-07-15T05:00:00.000Z/2021-07-15T13:30:00.000Z",
	"groupBy": [
		"queueId",
		"mediaType"
	],
	"granularity": "PT30M",
	"metrics": [
		"nOffered",
		"tAnswered",
		"tAbandon",
		"oServiceLevel",
		"oServiceTarget",
		"tHandle",
		"tTalkComplete",
		"tHeldComplete",
		"tAcw",
		"tWait",
		"nTransferred",
		"nOutbound",
		"tFlowOut",
		"tVoicemail",
		"nOutboundAttempted",
		"tShortAbandon",
		"nOverSla"
	],

and

/api/v2/analytics/queues/observations/query
for
"detailMetrics": [
"oWaiting",
"oInteracting"
],
"metrics": [
"oWaiting",
"oInteracting",
"oMemberUsers",
"oActiveUsers",
"oUserRoutingStatuses",
"oUserPresences",
"oOnQueueUsers",
"oOffQueueUsers"
],

All those "interval/Day" labels are simply telling you they're a sum of the current days intervals, because it's bringing back a full aggregate set for the current day broken out by 30 minute intervals every time it runs. As far as I understand the only way you can recreate that with a Notification is you keep a running total of the results in your code layer, reset at midnight, and don't lose any thing.

Hello Eos_Rios, thanks for your quick reply.

I understood how that page was getting it,
and using notification had risks losing intervals.

I'll get it by polling queries that you showed.

Thank you for your kind support.

Yasufumi Ikeda.

Hello!
You need to be careful with api because of rate limits. Also there are something about billing per api usage.
And of course you can implement it based on notifications topic, you just need to aggregate data through the day, to accumulate metrics for every 30 minutes.
Notifications topic in my opinion is more efficient way of implementation in terms of API limitations, just requires little bit more work.
Noralogix designed special C# nuget package so you can filter, project and aggregate events.

Hello Taras.

Thanks for your advice.
I also think about rate limits and billing per api usage.
Maybe it's better to use notifications topic and aggregate data locally.
I'll try to implement it.

Thank you for your kind support.

Yasufumi Ikeda.

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