Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Harifidy on September 03, 2021, 11:37:03 AM

Title: StatisticType for a specific object Type
Post by: Harifidy on September 03, 2021, 11:37:03 AM
Hi all.
I am developing a web application which display statistic of Stat Server.
My question is:
On PSDK, what is the function we use to get all possible StatisticType of a specific Object Type. I mean if I select "Agent", only statistic type about "Agent" are displayed (TotalLoginTime,...)
Thank you.
Title: Re: StatisticType for a specific object Type
Post by: cavagnaro on September 04, 2021, 11:18:40 PM
None
In PSDK you declare which metric you want to apply to an object.
Remember that metrics only became to exist after they are declared at StatServer so it understands what you want to monitor.
There is no a predefined set of ready metrics in StatServer or in PSDK. What you can do maybe is to query StatServer options and capture all that have a Subject equal or is part of the object you are trying to get info from
Title: Re: StatisticType for a specific object Type
Post by: Harifidy on September 09, 2021, 07:38:46 AM
Thank you for your reply.
What I have done is:
[code]
requestOpenStatistic.StatisticObject = StatisticObject.Create();
requestOpenStatistic.StatisticObject.ObjectId = "Analyst001";
requestOpenStatistic.StatisticObject.ObjectType = StatisticObjectType.Agent;
requestOpenStatistic.StatisticObject.TenantName = "Environment";
requestOpenStatistic.StatisticObject.TenantPassword = "";

// StaticMetric
requestOpenStatistic.StatisticMetric = StatisticMetric.Create();

[/code]

What should be next? Could you please advise.
Thank you.
Title: Re: StatisticType for a specific object Type
Post by: Kubig on September 09, 2021, 09:03:40 AM
What next? It depends on what statistic you want to gather
Title: Re: StatisticType for a specific object Type
Post by: Harifidy on September 09, 2021, 09:40:10 AM
If I want to get all possible statistic type of Object Agent, what to do?
Title: Re: StatisticType for a specific object Type
Post by: Kubig on September 09, 2021, 10:27:28 AM
Discover enumerations from Genesyslab.Platform.Reporting.Protocols.StatServer namespace, there you can find all possible values for statistic definition on StatServer level.
Title: Re: StatisticType for a specific object Type
Post by: Harifidy on September 09, 2021, 11:38:57 AM
Oki thank you.
I am gonna check this.