Hi friends, good day.
I am currently doing a program that does is check statistics with the api of genesys, I consulted and reviewed the documentation but only mention how to capture and configure a single object. But I need to get the formulas. Here is my code:
RequestOpenStatistic request = RequestOpenStatistic.create();
StatisticObject objeto = StatisticObject.create();
objeto.setObjectId(rs.getString("name_objeto"));
objeto.setObjectType(Util.getStatistic(rs.getInt("type_object")));
objeto.setTenantName("XXX");
objeto.setTenantPassword("");
StatisticMetric metrica = StatisticMetric.create();
metrica.setStatisticType(rs.getString("desc_metric"));
metrica.setFilter(rs.getString("filter_name"));
request.setReferenceId(indice);
request.setStatisticMetric(metrica);
request.setStatisticObject(objeto);
request.setNotification(notificacion);
Up to that point everything comes to perfection, but as I described above I need to capture the formulas eg (A = B + C) I need to get the value A;
Thanks..!!!
Hi friends, good day.
I am currently doing a program that does is check statistics with the api of genesys, I consulted and reviewed the documentation but only mention how to capture and configure a single object. But I need to get the formulas. Here is my code:
RequestOpenStatistic request = RequestOpenStatistic.create();
StatisticObject objeto = StatisticObject.create();
objeto.setObjectId(rs.getString("name_objeto"));
objeto.setObjectType(Util.getStatistic(rs.getInt("type_object")));
objeto.setTenantName("XXX");
objeto.setTenantPassword("");
StatisticMetric metrica = StatisticMetric.create();
metrica.setStatisticType(rs.getString("desc_metric"));
metrica.setFilter(rs.getString("filter_name"));
request.setReferenceId(indice);
request.setStatisticMetric(metrica);
request.setStatisticObject(objeto);
request.setNotification(notificacion);
Up to that point everything comes to perfection, but as I described above I need to capture the formulas eg (A = B + C) I need to get the value A;
Thanks..!!!
can’t you do that via your code? (get two values and assign the sum in a variable)
The ‘custom formula’ formula should be inside the statistictype, though
Hello, thanks for answering.
What happens that I currently have to gather statistics to make the corresponding calculation using a library of the Java execute the logic to process the calculation. So there is no way to invoke the statistics already formulated since the SDK of Genesys?