Search in sources :

Example 6 with PipelineRuleParser

use of org.graylog.plugins.pipelineprocessor.parser.PipelineRuleParser in project graylog2-server by Graylog2.

the class PipelineServiceHelperTest method setup.

@Before
public void setup() {
    final Map<String, Function<?>> functions = ImmutableMap.of();
    final PipelineRuleParser pipelineRuleParser = new PipelineRuleParser(new FunctionRegistry(functions));
    underTest = new PipelineServiceHelper(pipelineRuleParser);
}
Also used : Function(org.graylog.plugins.pipelineprocessor.ast.functions.Function) FunctionRegistry(org.graylog.plugins.pipelineprocessor.parser.FunctionRegistry) PipelineRuleParser(org.graylog.plugins.pipelineprocessor.parser.PipelineRuleParser) Before(org.junit.Before)

Aggregations

PipelineRuleParser (org.graylog.plugins.pipelineprocessor.parser.PipelineRuleParser)6 FunctionRegistry (org.graylog.plugins.pipelineprocessor.parser.FunctionRegistry)4 PipelineService (org.graylog.plugins.pipelineprocessor.db.PipelineService)3 RuleMetricsConfigService (org.graylog.plugins.pipelineprocessor.db.RuleMetricsConfigService)3 ImmutableMap (com.google.common.collect.ImmutableMap)2 Api (io.swagger.annotations.Api)2 ApiOperation (io.swagger.annotations.ApiOperation)2 ApiParam (io.swagger.annotations.ApiParam)2 ArrayList (java.util.ArrayList)2 Collection (java.util.Collection)2 List (java.util.List)2 Collectors (java.util.stream.Collectors)2 Inject (javax.inject.Inject)2 NotNull (javax.validation.constraints.NotNull)2 BadRequestException (javax.ws.rs.BadRequestException)2 Consumes (javax.ws.rs.Consumes)2 DELETE (javax.ws.rs.DELETE)2 DefaultValue (javax.ws.rs.DefaultValue)2 GET (javax.ws.rs.GET)2 POST (javax.ws.rs.POST)2