Search in sources :

Example 6 with FunctionsManager

use of org.opennms.web.rest.v2.bsm.model.meta.FunctionsManager 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

FunctionsManager (org.opennms.web.rest.v2.bsm.model.meta.FunctionsManager)6 Test (org.junit.Test)4 BusinessServiceEntity (org.opennms.netmgt.bsm.persistence.api.BusinessServiceEntity)4 HighestSeverityEntity (org.opennms.netmgt.bsm.persistence.api.functions.reduce.HighestSeverityEntity)4 BusinessServiceEntityBuilder (org.opennms.netmgt.bsm.test.BusinessServiceEntityBuilder)4 Identity (org.opennms.netmgt.bsm.service.model.functions.map.Identity)3 IdentityEntity (org.opennms.netmgt.bsm.persistence.api.functions.map.IdentityEntity)1 Ignore (org.opennms.netmgt.bsm.service.model.functions.map.Ignore)1 MapFunction (org.opennms.netmgt.bsm.service.model.functions.map.MapFunction)1 ReductionFunction (org.opennms.netmgt.bsm.service.model.functions.reduce.ReductionFunction)1 BusinessServiceRequestDTO (org.opennms.web.rest.v2.bsm.model.BusinessServiceRequestDTO)1 BusinessServiceResponseDTO (org.opennms.web.rest.v2.bsm.model.BusinessServiceResponseDTO)1 ChildEdgeRequestDTO (org.opennms.web.rest.v2.bsm.model.edge.ChildEdgeRequestDTO)1 IpServiceEdgeRequestDTO (org.opennms.web.rest.v2.bsm.model.edge.IpServiceEdgeRequestDTO)1 ReductionKeyEdgeRequestDTO (org.opennms.web.rest.v2.bsm.model.edge.ReductionKeyEdgeRequestDTO)1