> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vibraniumlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Alert routes enrichment and notifications

## Overview

An **alert route** decides what happens after an alert source receives an alert. It can enrich the alert with severity or metadata, then use a **Notification rule** to decide whether to page responders.

Use this page when you want to tune the rules inside a route. For a high-level explanation of how sources and routes work together, return to the parent **Routing** page.

> [!NOTE]
>
> Changes on this page apply only to the alert route you are editing. Other routes can have different sources, attributes, notification conditions, recipients, and fallback behavior.

***

## Route Flow

Within an alert route, alerts move through these steps:

| Step | What it does |
| - | - |
| **Receive alerts from** | Lists the alert sources that send alerts into this route. |
| **Attributes** | Optional rules that set severity or add metadata to matching alerts before notification decisions run. |
| **Notification rule** | Conditions and recipients that decide which alerts page someone, plus an **ELSE** fallback for alerts that do not match a condition. |

***

## Receive Alerts From

The **Receive alerts from** section shows the sources connected to this route. A source can send alerts to one route at a time.

To add or move a source:

1. Open **Settings → On-call → Routing**.
2. Open the route you want to edit.
3. In **Receive alerts from**, click **Add source**.
4. Pick the source you want this route to receive.
5. Save the route.

If you move a source from one route to another, new alerts from that source use the new route after the change is saved.

***

## Enriching Alerts With Attributes

**Attributes are optional** rules that change an alert **before** the Notification rule decides who to page. Use them when the alert you get from a tool isn't quite the alert you want to route on, for example when the severity is missing or wrong, or when the detail that tells you who owns the alert is buried in the title.

An attribute can apply two actions to matching alerts:

| Action | What it does |
| - | - |
| **Define Severity** | Sets the alert's severity (SEV0–SEV5 or SIGNAL), replacing the severity the source sent. |
| **Add Metadata** | Adds one or more key/value pairs to the alert's metadata. If the key already exists, the new value replaces it. |

**Do Nothing** leaves the alert unchanged. One branch can use both actions: click **Add Action**.

Every later step sees the enriched alert: Notification rule conditions, maintenance windows, and the alert as it appears in the alert list. If a route has no attributes, alerts continue with the severity and metadata they arrived with.

### When to use attributes

#### 1. Your tool doesn't send a severity you can route on

Email alerts and generic HTTP webhooks often put the urgency in the subject line instead of a severity field.

> [!NOTE]
>
> **Attribute:** *Severity from subject*
>
> * **IF** Title contains `[CRITICAL]` → **Define Severity** SEV1
> * **ELSE IF** Title contains `[WARNING]` → **Define Severity** SEV3
> * **ELSE** → **Do Nothing**

#### 2. Keep test and staging alerts from paging

Downgrade them to SIGNAL. They are still recorded, but a Notification rule that pages only on high severities skips them.

> [!NOTE]
>
> **Attribute:** *Quiet non-production*
>
> * **IF** Title matches regex `^\[(TEST|STAGING)\]` → **Define Severity** SIGNAL
>
> **Notification rule:** severity is more severe than SEV3 → escalate to the on-call schedule. **ELSE** → **Do Nothing**.

#### 3. Route by owner when the tool doesn't know who owns the alert

Tag the alert with an owner, then route on that tag.

> [!NOTE]
>
> **Attribute:** *Owning team*
>
> * **IF** Title contains `checkout-api` → **Add Metadata** `owner` = `payments`
> * **ELSE IF** Title contains `search-` → **Add Metadata** `owner` = `search`
>
> **Notification rule:** Metadata `owner` exactly matches `payments` → Payments escalation policy. Metadata `owner` exactly matches `search` → Search escalation policy. **ELSE** → escalate to the platform on-call schedule.

#### 4. One route, several tools that label things differently

Normalize them to one key so the Notification rule needs a single condition.

> [!NOTE]
>
> **Attribute:** *Normalize environment*
>
> * **IF** Metadata `env` exactly matches `prod` → **Add Metadata** `tier` = `production`
> * **ELSE IF** Metadata `environment` exactly matches `production` → **Add Metadata** `tier` = `production`
>
> **Notification rule:** Metadata `tier` exactly matches `production` → escalate.

### Add or edit an attribute

1. Open **Settings → On-call → Routing** (or *your team* → **Routing**) and open the route.
2. Under **Attributes**, click **Add Attribute** and give it a clear name, such as *Severity from subject*.
3. Add branches: an **IF**, optional **ELSE IF** branches, and the fixed **ELSE**. Branches are checked top to bottom. The **first** branch that matches applies its actions, and the rest are skipped. Drag a branch to reorder it.
4. In each branch, choose **Match all conditions** or **Match any condition**, then click **Add Condition**:
   * **Title**, **Description**, or **Metadata**. For Metadata, pick a key; the list suggests keys seen on recent alerts. Operators: **exactly matches**, **contains**, **does not contain**, **matches regex**.
   * **Source**: the alert is from **one of** the source types you pick, for example only Datadog alerts on a route that also receives Grafana.
5. Choose the branch's action or actions.
6. Click **Save changes**.

The switch on an attribute turns it on or off immediately, without saving the route.

### How attributes combine

* **Every enabled attribute on the route runs, and each one looks at the alert as it arrived.** One attribute can't match on metadata that another attribute on the same route adds. If you need that, put both steps in the same branch.
* **Set each field in one attribute only.** If two attributes both set severity, or both set the same metadata key, only one result is kept. Put related cases in one attribute as **ELSE IF** branches instead.
* **Values are fixed text.** Add Metadata can't copy a value out of the alert payload; there are no `{{…}}` templates.
* **Use simple keys** such as `owner` or `tier`. Avoid dots in keys you add.

### Matching details

* Matching is **case-sensitive** by default. For **contains**, **exactly matches**, and **does not contain**, clear **Case sensitive** to ignore case.
* **matches regex** is always case-sensitive. To match both cases, use character classes, for example `[Cc]ritical`.
* **does not contain** is true when the field is missing entirely.
* Attributes don't affect deduplication. Duplicates are detected before attributes run.
* Attribute changes apply to **new** alerts. An alert that is already open keeps the severity and metadata it was given, even if it fires again.

### Verify it worked

Send a test alert through the route's source, open it from the alert list, and check its severity and metadata.

### Delete an attribute

Use the delete action on the attribute, then confirm. If you delete the only attribute, the route keeps receiving alerts, but no enrichment runs before the Notification rule.

***

## Notification Rule

The **Notification rule** decides whether an alert pages responders. It pairs conditions with recipients such as users, schedules, or escalation policies.

### Add notification conditions

1. Open the alert route.
2. Select the **Notification rule** section.
3. Add a condition for the alerts you want to page.
4. Choose the recipients for matching alerts.
5. Save the route.

Time conditions can start and end on the hour or half hour, such as 17:30 to 23:00.

Use immediate paging when responders should be contacted as soon as an alert matches. Use a delay when your team wants time for an alert to be acknowledged, resolved, muted, or suppressed before anyone is paged.

### How delayed paging works

* If the alert is still open and pageable after the delay, the notification is sent.
* If the alert was acknowledged, closed, resolved, muted, or otherwise suppressed before the delay ends, the notification is skipped.
* After the delay finishes, the configured recipient is paged immediately if the alert is still pageable.
* A delay can be anywhere from 1 minute to 24 hours.
* To page earlier than the delay — for example when an automated first responder gives up — an API key with **Page from alerts** can call `POST /escalations` with the alert and an escalation policy (see [Public API Reference](https://docs.vibraniumlabs.ai/api/public-api-reference.md)). That starts a new escalation and does not cancel the delayed one: if the alert is still open and unmuted when the delay ends, the route's recipients are paged too. Acknowledge or resolve the alert to stop the delayed page.

***

## ELSE Fallback

The **ELSE** branch controls alerts that do not match any notification condition. It can either **Do Nothing** or **Escalate** to selected recipients.

> [!NOTE]
>
> Set the **ELSE** branch deliberately. If it is set to **Do Nothing**, unmatched alerts are recorded but nobody is paged.

### Example: quieter weekends

A team only wants pages during business hours. Their Notification rule has one condition: severity is more severe than SEV2 and time is within Monday through Friday, 08:00 to 18:00. Matching alerts escalate to the on-call schedule, and the **ELSE** branch is set to **Do Nothing**.

At 02:00 on Saturday, a SEV1 CPU alert arrives. It does not match the business-hours condition, so it follows the **ELSE** branch. The alert is recorded as open, but nobody is paged.

***

## From Escalation To Notification

The alert route decides who should be escalated. Delivery still depends on escalation policies and personal notification preferences.

> [!NOTE]
>
> Alert source → Alert route → Attributes → Notification rule → Escalation policy → Personal notification preferences

* **Escalation policy.** If a rule escalates to an escalation policy, its tiers run in order. Each tier targets on-call schedules, specific people, or a Slack or Microsoft Teams channel where anyone can acknowledge the alert.
* **Personal notification preferences.** Once a person is selected, their notification preferences decide which channels are used and in what order, such as Slack, email, SMS, or phone call.

Two alerts handled by the same route can still reach people differently if the responders have different notification preferences.

***

## FAQ

> [accordion] Do I need attributes?
>
> No. Attributes are optional. Add them only when you want to change severity or add metadata before notification rules run. See **When to use attributes** above for examples.

> [accordion] What happens if no notification condition matches?
>
> The alert follows the **ELSE** branch. Set it to **Escalate** if unmatched alerts should still page someone.

> [accordion] Can two routes use the same source?
>
> No. A source sends to one route at a time. You can move a source to another route by editing the route or source connection.

> [accordion] What happens when a route is inactive?
>
> Sources connected to an inactive route may still receive alerts, but route actions such as enrichment and paging do not run until the route is active again.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.