Search in sources :

Example 1 with ReductionFunction

use of org.opennms.netmgt.bsm.service.model.functions.reduce.ReductionFunction in project opennms by OpenNMS.

the class BsmTestUtils method transform.

public static ReduceFunctionDTO transform(AbstractReductionFunctionEntity input) {
    Objects.requireNonNull(input);
    ReductionFunction reductionFunction = new ReduceFunctionMapper().toServiceFunction(input);
    return new FunctionsManager().getReduceFunctionDTO(reductionFunction);
}
Also used : ReductionFunction(org.opennms.netmgt.bsm.service.model.functions.reduce.ReductionFunction) FunctionsManager(org.opennms.web.rest.v2.bsm.model.meta.FunctionsManager)

Aggregations

ReductionFunction (org.opennms.netmgt.bsm.service.model.functions.reduce.ReductionFunction)1 FunctionsManager (org.opennms.web.rest.v2.bsm.model.meta.FunctionsManager)1