Hi, dear colleagues.
Please help me with create Dinamic request for StatServer
Getting dinamic statistics on the StatisticObjectType.GroupAgents - successfully
Getting dinamic statistics on the StatisticObjectType.GroupQueues - fail
Template config StatisticObjectType.GroupQueues in CCPulse
https://www.dropbox.com/s/9yquuzpiveeetsh/CCPulse%20-%20Entered.png?dl=0
and returned correct value CallEntered.
Create this dinamic request in code java
@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;
}
and returned value CallEntered = 0
What is the problem? Where I made a error?
Sorry for bad knowledge of English ![]()