Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started 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.
-
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
-
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.
-
What next? It depends on what statistic you want to gather
-
If I want to get all possible statistic type of Object Agent, what to do?
-
Discover enumerations from Genesyslab.Platform.Reporting.Protocols.StatServer namespace, there you can find all possible values for statistic definition on StatServer level.
-
Oki thank you.
I am gonna check this.