Skip to main content

Match Rules

Match rules decide whether a filter applies to an event.

The supported event properties are:

PropertyDescription
summaryEvent title.
descriptionEvent description/body.
locationEvent location.
urlEvent URL.

String match conditions:

ConditionDescription
emptyMatches when the property is absent or empty.
containsMatches when the property contains this literal text.
contains_anyMatches when the property contains at least one listed value.
contains_allMatches when the property contains every listed value.
prefixMatches when the property starts with this literal text.
suffixMatches when the property ends with this literal text.
regexMatches using a Go regular expression.

All rules in a filter must match for the filter to apply:

config.yaml excerpt
filters:
- description: "Remove cancelled on-call events"
remove: true
match:
summary:
prefix: "Canceled: "
description:
contains: "on-call"
warning

Invalid regular expressions are rejected during config compilation before the service starts.