public class RuleMetricsListener extends Object implements InterpreterListener
| Modifier and Type | Class and Description |
|---|---|
static class |
RuleMetricsListener.Type |
| Constructor and Description |
|---|
RuleMetricsListener(com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
continuePipelineExecution(Pipeline pipeline,
Stage stage) |
void |
dissatisfyRule(Rule rule,
Pipeline pipeline) |
void |
enterStage(Stage stage) |
void |
evaluateRule(Rule rule,
Pipeline pipeline) |
void |
executeRule(Rule rule,
Pipeline pipeline) |
void |
exitStage(Stage stage) |
void |
failEvaluateRule(Rule rule,
Pipeline pipeline) |
void |
failExecuteRule(Rule rule,
Pipeline pipeline) |
void |
finishExecuteRule(Rule rule,
Pipeline pipeline) |
void |
finishProcessing() |
static String |
getMetricName(String name,
RuleMetricsListener.Type type) |
void |
processStreams(Message message,
Set<Pipeline> pipelines,
Set<String> streams) |
void |
satisfyRule(Rule rule,
Pipeline pipeline) |
void |
startProcessing() |
void |
stopPipelineExecution(Pipeline pipeline,
Stage stage) |
public RuleMetricsListener(com.codahale.metrics.MetricRegistry metricRegistry)
public static String getMetricName(String name, RuleMetricsListener.Type type)
public void startProcessing()
startProcessing in interface InterpreterListenerpublic void finishProcessing()
finishProcessing in interface InterpreterListenerpublic void processStreams(Message message, Set<Pipeline> pipelines, Set<String> streams)
processStreams in interface InterpreterListenerpublic void enterStage(Stage stage)
enterStage in interface InterpreterListenerpublic void exitStage(Stage stage)
exitStage in interface InterpreterListenerpublic void evaluateRule(Rule rule, Pipeline pipeline)
evaluateRule in interface InterpreterListenerpublic void failEvaluateRule(Rule rule, Pipeline pipeline)
failEvaluateRule in interface InterpreterListenerpublic void satisfyRule(Rule rule, Pipeline pipeline)
satisfyRule in interface InterpreterListenerpublic void dissatisfyRule(Rule rule, Pipeline pipeline)
dissatisfyRule in interface InterpreterListenerpublic void executeRule(Rule rule, Pipeline pipeline)
executeRule in interface InterpreterListenerpublic void finishExecuteRule(Rule rule, Pipeline pipeline)
finishExecuteRule in interface InterpreterListenerpublic void failExecuteRule(Rule rule, Pipeline pipeline)
failExecuteRule in interface InterpreterListenerpublic void continuePipelineExecution(Pipeline pipeline, Stage stage)
continuePipelineExecution in interface InterpreterListenerpublic void stopPipelineExecution(Pipeline pipeline, Stage stage)
stopPipelineExecution in interface InterpreterListenerCopyright © 2012–2021 Graylog, Inc.. All rights reserved.