Rules

Open a rule set (select its name or the list action) to manage its rules. Rules are evaluated top to bottom, and the first rule that matches an event handles it. You can reorder rules by dragging the grip handle on the left of each row; the order determines matching precedence.
Each row shows the rule Name, its target Provider, and a Disabled badge when the rule is turned off. Use the row actions to edit or delete a rule.
Create or edit a rule
Select Create (or edit a row) to open the rule form.
| Field | Required | Description |
|---|---|---|
| Name | Yes | A descriptive name for the rule. |
| Enabled | No | Toggle switch. When disabled, the rule is skipped during event matching. Useful for temporarily pausing a rule without deleting it. |
| Rulebook | Yes | The matching logic, written in YAML (see Rulebook format). Edited in a syntax-highlighted YAML editor. |
| Provider | No | The destination the event is sent to when this rule matches. Choose from configured providers, or No provider. |
| Provider fields | Varies | Extra per-rule fields that depend on the selected provider type, for example the Template to launch for an Ascender provider. See Provider-specific rule fields. |
A matched event for a rule with No provider is recorded on the Events page with an Error status, because there is nowhere to dispatch it. To record matches without dispatching anywhere, use a Log provider instead.
Rate limiting
Rate limiting controls how often matched events actually trigger the provider, per host (the source host of the event). Two independent modes are available and can be combined:
| Control | Description |
|---|---|
| Only trigger once within a time window | When enabled, after a match fires, further matches from the same host are suppressed until the window passes. Set Window (minutes) (1–1440). Useful to avoid repeated dispatches for a flapping condition. |
| Window (minutes) | The length of the suppression window for the throttle mode above. |
| Only trigger after a number of events within a time window | "Burst" mode: the provider is only triggered once a host has produced Events matches within the within (minutes) window. Useful to act only when a problem repeats. |
| Events | The number of matching events that must occur before the provider is triggered (burst threshold). |
| within (minutes) | The window over which the burst count is measured (1–1440). |
Suppressed matches are still recorded, with the status Throttled.
Provider-specific rule fields
When you select a provider, additional fields may appear depending on the provider type:
- Ascender providers show a Template selector. Choose the job or workflow template (synced from the Ascender controller) to launch when the rule matches. If the list is empty, run Sync on the provider first (see Providers).
- Generic Webhook and Log providers have no extra per-rule fields.
Rulebook format
A rulebook is a YAML list of entries. Each entry has a name, one or more condition expressions, and an optional provide payload. Conditions are Jinja2-style expressions evaluated against the incoming event; the event is available as event. All conditions in an entry must evaluate to true for the entry to match.
- name: Process web payloads
condition:
- event.payload is defined
- "'test' in event.payload.message"
provide:
extra_vars:
package: "{{ event.payload.package.name }}"
conditionmay be a single expression or a list of expressions (all must be true).- Expressions use Jinja2 syntax, for example
is defined,in, comparisons, and attribute access likeevent.payload.package.name. provideis an optional payload whose string values are rendered as Jinja2 templates against the event, producing the data passed to the provider. For an Ascender provider it is the body of the job template launch request (for exampleextra_vars); for a generic webhook it is the JSON body posted to the webhook URL.
A condition that begins with a quote, such as 'ERROR' in event.payload, must be wrapped in double quotes so YAML treats it as a single string, as in the example above. Reaqt validates the rulebook when you save the rule and reports malformed YAML.
Event data
Each event exposes the following fields to conditions and provide templates:
| Field | Description |
|---|---|
event.host | The source host (client IP address) of the event. Rate limiting is applied per host. |
event.received_at | When the listener received the event (UTC, RFC 3339). |
event.payload | The request body. A JSON (or YAML-style) object is parsed so you can reference its fields, for example event.payload.level. Any other body is available as a plain string. |