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

# Alerts

> Manage alert rules and notification channels for your Connect AI account.

Account administrators are notified when alert conditions are met.

> [!NOTE]
>
> * Only Administrators can configure alerts.
> * A rule cannot be enabled until it has at least one notification channel assigned.

The **Alerts** tab of the **Settings** page contains the following tabs:

* **Alert Rules:** Define the conditions that trigger a notification.
* **Notification Channels:** Manage the channels that receive notifications.
* **Settings:** Set account-wide alert settings: the default cooldown and how long fired-alert records are kept.

![Alert Rules tab](https://mintcdn.com/cdata/wBoY1rNffzxlnead/en/images/alerts.png?fit=max\&auto=format\&n=wBoY1rNffzxlnead\&q=85\&s=8fbeccd2aa6255adcdebce702ff9add4)

The **Alert Rules** tab lists your rules, including the **Name**, **Alert Type**, **Severity**, **Scope**, and **Notify Via** channels of each. Use the **Enabled** toggle to turn a rule on or off. Use the edit and delete icons to change or remove a rule. To find a rule, search by name or filter the list by **Severity**.

## Add a Notification Channel

Add a notification channel before you create an alert rule, because a rule cannot be enabled until it has a channel.

**Step 1**

On the **Settings** page, open the **Alerts** tab, then the **Notification Channels** tab, and click **+ Add Channel**. The **Add Notification Channel** dialog appears.

![Add Notification Channel dialog](https://mintcdn.com/cdata/wBoY1rNffzxlnead/en/images/alerts_add_channel.png?fit=max\&auto=format\&n=wBoY1rNffzxlnead\&q=85\&s=713a804bb6251604c2ff1b9a32b846ab)

**Step 2**

Enter a **Channel Name**.

**Step 3**

Select the **Channel Type**: **Email**, **Slack**, **Microsoft Teams**, or **Webhook**. You cannot change the type after you save the channel.

**Step 4**

Configure the destination for the channel type:

* **Email:** Enter one or more **Email Addresses**. Click **+ Add address** to add more addresses.
* **Slack:** Enter the **Slack Webhook URL**.
* **Microsoft Teams:** Enter the **Microsoft Teams Webhook URL**.
* **Webhook:** Enter the **Webhook URL**. Optionally, select an **Authorization Header** of **Bearer token** or **Basic auth**, then enter the **Token**, or the **Username** and **Password**. Connect AI stores the credential encrypted and does not show it again.

**Step 5**

Click **Save channel**.

To verify that a channel receives notifications, click **Test** for the channel in the **Notification Channels** list. Connect AI sends a test notification and checks whether the channel accepted it.

* **Success:** A queued message appears, followed by a sent message. The test notification arrives at the destination.
* **Failure:** A **Test notification failed** message appears with the reason. Check the destination settings for the channel, then test again.
* **Unconfirmed:** The status remains **Queued. Delivery has not been confirmed.** Check the destination to see whether the notification arrived.

## Create an Alert Rule

**Step 1**

On the **Settings** page, open the **Alerts** tab, then the **Alert Rules** tab, and click **+ Add Rule**. The **New Alert Rule** dialog appears.

![New Alert Rule dialog](https://mintcdn.com/cdata/7rS01-8IBbhh0wIU/en/images/new_alert_rule.png?fit=max\&auto=format\&n=7rS01-8IBbhh0wIU\&q=85\&s=2855ecaca82e1ba87df4e8931269e95c)

**Step 2**

Enter a user-defined **Rule Name**.

**Step 3**

Select the **Alert Type**:

* **Error Rate:** Fires when the query error rate exceeds a percentage threshold within a rolling window.
* **Query Volume:** Fires based on query volume.

**Step 4**

Configure the scope. For an **Error Rate** alert, the **Scope** is **Workspace**, because this alert type is evaluated for one workspace. Select the **Workspace** to monitor.

**Step 5**

Under **Threshold**, configure the following:

* **Value:** Enter the percentage of queries that failed. The alert fires when the error rate is above this value, once the window has at least 20 queries. The default value is *10*.
* **Window (minutes):** Enter how far back, in minutes, Connect AI counts activity. The default value is *15*.

**Step 6**

Select the **Severity** of the alert. The suggested severity is **Warning**.

**Step 7**

(Optional) Enter the **Cooldown (minutes)** for the rule. The default value is *30*. To use a different cooldown for this rule, enter another number of minutes. See [Alert Cooldown](#alert-cooldown) for details.

**Step 8**

Under **Notify via**, select one or more notification channels to receive notifications for this rule. See [Add a Notification Channel](#add-a-notification-channel) if you have not added a channel yet.

**Step 9**

Click **Save rule**.

## Test an Alert Rule

You can send a test notification only after you save the rule. To verify that notifications are delivered, click the edit icon for the rule in the list and click **Send test notification**.

## Alert Cooldown

Repeat alerts are grouped by a cooldown period. The default cooldown value applies to all alert rules in your account. You set it in **Default Cooldown Window (minutes)** on the **Settings** sub-tab of the **Alerts** tab. The default value is 30 minutes, and you can set it to a value from 1 to 1440 minutes. You can also override the cooldown on individual alert rules.

## Fired-Alert Retention

Connect AI keeps an internal record of each alert that fires, which it uses to apply the alert cooldown. You cannot view these records in the Connect AI interface. Changes to alert rules, channels, and settings, and failed alert deliveries, appear in the **Audit Log**. In **Fired-Alert Retention (days)** on the **Settings** sub-tab of the **Alerts** tab, enter how long, in days, to keep these records for your account. The default value is 90 days, and you can set it between 7 and 365 days.

Connect AI deletes records older than this value once a day. If you shorten the retention period, records outside the new period are deleted the next time that cleanup runs, not immediately, and you cannot recover them afterward.


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