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()voidvoidvoidvoidcom.codahale.metrics.MetricFilterThe metric filter matching all metrics that have been registered by this pipeline.abstract Stringname()voidregisterMetrics(com.codahale.metrics.MetricRegistry metricRegistry, String pipelineId, String 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
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
-