java.lang.Object
org.graylog.plugins.pipelineprocessor.ast.Rule

public abstract class Rule extends Object
  • Constructor Details

    • Rule

      public Rule()
  • Method Details

    • id

      @Nullable public abstract String id()
    • name

      public abstract String name()
    • when

      public abstract LogicalExpression when()
    • then

      public abstract Collection<Statement> then()
    • builder

      public static Rule.Builder builder()
    • toBuilder

      public abstract Rule.Builder toBuilder()
    • withId

      public Rule withId(String id)
    • alwaysFalse

      public static Rule alwaysFalse(String name)
    • registerMetrics

      public void registerMetrics(PipelineMetricRegistry metricRegistry, String pipelineId, int stageId)
      Register the metrics attached to this pipeline.
      Parameters:
      metricRegistry - the registry to add the metrics to
      pipelineId - the pipeline ID
      stageId - the pipeline stage ID
    • markExecution

      public void markExecution()
    • markMatch

      public void markMatch()
    • markNonMatch

      public void markNonMatch()
    • markFailure

      public void markFailure()
    • copy

      public Rule copy()
      Creates a copy of this Rule.
      Returns:
      a copy of this rule
    • toString

      public String toString()
      Overrides:
      toString in class Object