Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: jalona on January 29, 2015, 06:27:28 PM
-
Hi, dear colleagues.
Please help me with create Dinamic request for StatServer
Getting dinamic statistics on the [i]StatisticObjectType.GroupAgents[/i] - successfully
Getting dinamic statistics on the [i]StatisticObjectType.GroupQueues[/i] - fail
Template config [i]StatisticObjectType.GroupQueues[/i] in CCPulse
[url=https://www.dropbox.com/s/9yquuzpiveeetsh/CCPulse%20-%20Entered.png?dl=0]https://www.dropbox.com/s/9yquuzpiveeetsh/CCPulse%20-%20Entered.png?dl=0[/url]
and returned correct value [i]CallEntered[/i].
Create this dinamic request in code java
[code]
@SuppressWarnings("deprecation")
public RequestOpenStatisticEx setRequestOpenStatisticEx() {
RequestOpenStatisticEx requestOpenStatistic = RequestOpenStatisticEx.create();
StatisticObject object = StatisticObject.create();
object.setObjectId("All_HelpDesk_VQ");
object.setObjectType(StatisticObjectType.GroupQueues);
object.setTenantName("Resources");
object.setTenantPassword("");
DnActionMask mainMask = ActionsMask.createDNActionsMask();
mainMask.setBit(DnActions.CallEntered);
DnActionMask relMask = ActionsMask.createDNActionsMask();
StatisticMetricEx metric = StatisticMetricEx.create();
metric.setCategory(StatisticCategory.TotalNumber);
metric.setMainMask(mainMask);
metric.setRelativeMask(relMask);
metric.setSubject(StatisticSubject.DNAction);
metric.setTimeProfile("Default");
metric.setIntervalType(StatisticInterval.GrowingWindow);
Notification notification = Notification.create();
notification.setInsensitivity(1);
notification.setMode(NotificationMode.Periodical);
notification.setFrequency(-1);
requestOpenStatistic.setStatisticObject(object);
requestOpenStatistic.setStatisticMetricEx(metric);
requestOpenStatistic.setNotification(notification);
return requestOpenStatistic;
}
[/code]
and returned value [i]CallEntered[/i] = 0
What is the problem? Where I made a error?
Sorry for bad knowledge of English :(
-
What does StatServer logs show?
-
[quote author=cavagnaro link=topic=8693.msg38532#msg38532 date=1422564247]
What does StatServer logs show?
[/quote]
I do not have access to the logs on the primary StatServer. In my company's - 1 administrator for all genesis servers. He has no time to look for logs ;) Saving Money :D
In operation with GroupAgents - I manage to get all the values. In GroupAgents - NotificationMode.Periodical(Time Based)
I suspect that the problem is "NotificationMode". How to assign ChangesBased for NotificationMode?
I see Event's for creat connect - there not errors
-
Within CCPulse template definition.
-
[quote author=Kubig link=topic=8693.msg38544#msg38544 date=1422629531]
Within CCPulse template definition.
[/quote]
I need an analogue in PSDK. See the code above.
-
Select the NotificationMode.Immediate
-
I never saw an actually answer on here, and I just ran into a similar issue.
Your issue is probably similar to mine, where you are using DnActions vs RoutePointActions. RoutePointActions.CallEntered, should provide you with the correct statistic.
-
A RP is a DN too...so...metric is the same.
Without logs we are shooting on the air, that is why we ask for them. Sure, one of those shoots may hit the target, but what if not?
-
Question...why a Relative Mask?
-
[quote author=cavagnaro link=topic=8693.msg39575#msg39575 date=1432681460]
A RP is a DN too...so...metric is the same.
Without logs we are shooting on the air, that is why we ask for them. Sure, one of those shoots may hit the target, but what if not?
[/quote]
Yes the metric may be the same, but the ID's are not. If you look at what ID is generated for DnActions.CallsEntered is completely different, one is 10, and the other is 80. So as far as the SDK is concerned they are different. It is more practical and helpful to verify the code snippet he had given before requesting to see any logs.
[quote author=cavagnaro link=topic=8693.msg39576#msg39576 date=1432686917]
Question...why a Relative Mask?
[/quote]
In the snippet, there was nothing in the relative mask, so it does not matter.