Class Rule
java.lang.Object
org.graylog.plugins.pipelineprocessor.ast.Rule
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RulealwaysFalse(String name) static Rule.Builderbuilder()copy()Creates a copy of this Rule.abstract Stringid()voidvoidvoidvoidabstract Stringname()voidregisterMetrics(PipelineMetricRegistry metricRegistry, String pipelineId, int stageId) Register the metrics attached to this pipeline.abstract Collection<Statement>then()abstract Rule.BuildertoString()abstract LogicalExpressionwhen()
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
id
-
name
-
when
-
then
-
builder
-
toBuilder
-
withId
-
alwaysFalse
-
registerMetrics
Register the metrics attached to this pipeline.- Parameters:
metricRegistry- the registry to add the metrics topipelineId- the pipeline IDstageId- the pipeline stage ID
-
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
-