Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: oceanblue on August 05, 2020, 06:37:18 PM

Title: Display Real Time Stats on a web UI
Post by: oceanblue on August 05, 2020, 06:37:18 PM
Hello All, I need to pull some crucial contact centre resource/agent related real time stats and display them somewhere, so the execs can view it on their mobile devices.

Has anybody done something along this lines already?What's the best way to go about it?

Can Pulse rest API's be used? What are other options out there that can be considered for this matter?

Thanks in advance.

Cheers,
Title: Re: Display Real Time Stats on a web UI
Post by: hsujdik on August 06, 2020, 12:00:47 PM
You could user Pulse REST API or build your own API based on Platform SDK communicating with Stat Server
Title: Re: Display Real Time Stats on a web UI
Post by: marmota on September 23, 2020, 10:59:24 AM
Hi! We use GMS API for that purpose.
Title: Re: Display Real Time Stats on a web UI
Post by: oceanblue on September 23, 2020, 01:19:27 PM
Hello @marmota - would you be able to share some details on that?

Thanks,
Title: Re: Display Real Time Stats on a web UI
Post by: marmota on September 23, 2020, 02:59:07 PM
Sure. Do you have any specific questions?

In general, we base on docs: https://docs.genesys.com/Documentation/GMS/latest/API/Welcome

API is rather simple - casual REST POST (sometimes GET, but if we talk about StatServer metrics the are usually POST) requests to:
[list]
[li].../genesys/1/internal_statistic[/li]
[/list]
with body such as:
[list]
[li]objectId=7702@SIPSwitch&objectType=RoutePoint&tenant=Citilink&metric=AverAnswCallTime
[/li]
[/list]
where you can define what metrics you want to get from StatServer.

Answer is in JSON.
Title: Re: Display Real Time Stats on a web UI
Post by: oceanblue on September 25, 2020, 02:11:58 PM
Thanks, marmota! We were thinking the Pulse restful API to get the snapshot data using a Get method. But, the GMS approach is good too if you know the particular object that you want to pull stat from. Would that be ok if I reach out with any questions on this?
Title: Re: Display Real Time Stats on a web UI
Post by: marmota on September 25, 2020, 02:42:29 PM
Yep, please ask =)