Author Topic: Display Real Time Stats on a web UI  (Read 3443 times)

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Display Real Time Stats on a web UI
« 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,

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Display Real Time Stats on a web UI
« Reply #1 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

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Display Real Time Stats on a web UI
« Reply #2 on: September 23, 2020, 10:59:24 AM »
Hi! We use GMS API for that purpose.

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: Display Real Time Stats on a web UI
« Reply #3 on: September 23, 2020, 01:19:27 PM »
Hello @marmota - would you be able to share some details on that?

Thanks,

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Display Real Time Stats on a web UI
« Reply #4 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.

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: Display Real Time Stats on a web UI
« Reply #5 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?

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Display Real Time Stats on a web UI
« Reply #6 on: September 25, 2020, 02:42:29 PM »
Yep, please ask =)