Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: mvacs on October 05, 2017, 04:27:02 PM

Title: Stat Server data consumption
Post by: mvacs on October 05, 2017, 04:27:02 PM
Hey all,

I am new here so if this needs to get moved over to the development page I apologize in advance.

I am developing a service that will consume Stat data from the stat server. The documentation provided by Genesys is fine, but it shows me only being able to directly "query" one object at a time. So I figured I would ask here and see:

Is there a way to pull all defined objects on the Stat Server without having to individually define them on my side?

Thanks!
Title: Re: Stat Server data consumption
Post by: hsujdik on October 05, 2017, 04:41:49 PM
Short answer: No.
Depending on the data you need, you may group objects (e.g. DN Group, Agent Group) and get the stat data for the group (which may or may not be the same data for the individual objects depending on the stat)
Title: Re: Stat Server data consumption
Post by: mvacs on October 05, 2017, 04:55:30 PM
That is what I was afraid of.

Question part 2 (I haven't gotten this far in the documentation) Is there a way to query what has been defined in the configuration? i.e. Agents etc...
Title: Re: Stat Server data consumption
Post by: cavagnaro on October 05, 2017, 05:37:08 PM
By configserver PSDK maybe but you always need to know what you will query.

Enviado de meu E6633 usando Tapatalk

Title: Re: Stat Server data consumption
Post by: hsujdik on October 05, 2017, 06:02:47 PM
Complementing what cavagnaro already said, you can use PSDK to query for all objects of any type (e.g. CfgPersonQuery) on Config Server. There are plenty of examples around the forum (for example, I recall this one: http://www.sggu.com/smf/index.php/topic,9642.msg43669.html#msg43669 )
Title: Re: Stat Server data consumption
Post by: mvacs on October 05, 2017, 06:12:11 PM
Perfect! Thank you all!!!