PSDK 8.1.4 [java] - Create RequestOpenStatisticEx

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 :frowning:

What does StatServer logs show?

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 :wink: Saving Money :smiley:
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.

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?

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.

In the snippet, there was nothing in the relative mask, so it does not matter.