public abstract class Rule extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Rule.Builder |
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
static Rule |
alwaysFalse(String name) |
static Rule.Builder |
builder() |
abstract GeneratedRule |
generatedRule() |
abstract Class<? extends GeneratedRule> |
generatedRuleClass() |
abstract String |
id() |
Rule |
invokableCopy(FunctionRegistry functionRegistry)
Creates a copy of this Rule with a new instance of the generated rule class if present.
|
void |
markExecution() |
void |
markFailure() |
void |
markMatch() |
void |
markNonMatch() |
com.codahale.metrics.MetricFilter |
metricsFilter()
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 |
toBuilder() |
String |
toString() |
abstract LogicalExpression |
when() |
Rule |
withId(String id) |
public abstract String name()
public abstract LogicalExpression when()
public abstract Collection<Statement> then()
@Nullable public abstract Class<? extends GeneratedRule> generatedRuleClass()
@Nullable public abstract GeneratedRule generatedRule()
public static Rule.Builder builder()
public abstract Rule.Builder toBuilder()
public void registerMetrics(com.codahale.metrics.MetricRegistry metricRegistry,
String pipelineId,
String stageId)
metricRegistry - the registry to add the metrics topublic com.codahale.metrics.MetricFilter metricsFilter()
public void markExecution()
public void markMatch()
public void markNonMatch()
public void markFailure()
public Rule invokableCopy(FunctionRegistry functionRegistry)
functionRegistry - the registered functions of the systemCopyright © 2012–2021 Graylog, Inc.. All rights reserved.