Class Rule
java.lang.Object
org.graylog.plugins.pipelineprocessor.ast.Rule
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Rule
alwaysFalse
(String name) static Rule.Builder
builder()
copy()
Creates a copy of this Rule.abstract String
id()
void
void
void
void
com.codahale.metrics.MetricFilter
The metric filter matching all metrics that have been registered by this pipeline.abstract String
name()
void
registerMetrics
(com.codahale.metrics.MetricRegistry metricRegistry, String pipelineId, String stageId) Register the metrics attached to this pipeline.abstract Collection<Statement>
then()
abstract Rule.Builder
toString()
abstract LogicalExpression
when()
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
id
-
name
-
when
-
then
-
builder
-
toBuilder
-
withId
-
alwaysFalse
-
registerMetrics
public void registerMetrics(com.codahale.metrics.MetricRegistry metricRegistry, String pipelineId, String stageId) Register the metrics attached to this pipeline.- Parameters:
metricRegistry
- the registry to add the metrics to
-
metricsFilter
public com.codahale.metrics.MetricFilter metricsFilter()The metric filter matching all metrics that have been registered by this pipeline. Commonly used to remove the relevant metrics from the registry upon deletion of the pipeline.- Returns:
- the filter matching this pipeline's metrics
-
markExecution
public void markExecution() -
markMatch
public void markMatch() -
markNonMatch
public void markNonMatch() -
markFailure
public void markFailure() -
copy
Creates a copy of this Rule.- Returns:
- a copy of this rule
-
toString
-