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

# Alerts

> Create automated alerting rules to detect policy violations and notify stakeholders in real-time.

## Overview

Violations and Alerts enable you to detect risky or non-compliant assets and trigger real-time notifications.

These rules continuously evaluate asset data and notify relevant teams when defined conditions are met — helping you respond faster to security and compliance issues.

***

## Alerts List

<Frame caption="View and manage all alert rules with enable/disable controls">
  <img src="https://mintcdn.com/snapsec-23724fa2/wfY-a2uHz4_Qm_FB/images/aim/alerts.png?fit=max&auto=format&n=wfY-a2uHz4_Qm_FB&q=85&s=4f8c8ad76f59c3640027da0cc8770a40" width="1913" height="893" data-path="images/aim/alerts.png" />
</Frame>

This screen provides a centralized view of all alert rules.

### Key Elements

* **Name & Description** — Defines what the alert detects
* **Enabled Toggle** — Activate or disable alerts instantly
* **Matched Assets** — Assets currently violating the rule
* **Created On** — Rule creation timestamp
* **Actions Menu** — Manage alert behavior

***

## Create a Violation Rule

<Frame caption="Create a new violation rule using the Create Violation button">
  <img src="https://mintcdn.com/snapsec-23724fa2/wfY-a2uHz4_Qm_FB/images/aim/alerts2.png?fit=max&auto=format&n=wfY-a2uHz4_Qm_FB&q=85&s=173d40fceb35b8a3d59977c525a26211" width="883" height="421" data-path="images/aim/alerts2.png" />
</Frame>

To create a new alert:

1. Click **Create Violation**
2. Open the guided policy builder
3. Define rule conditions and alert behavior

***

## Guided Policy Builder

<Frame caption="Define rule logic and alert configuration with YAML preview">
  <img src="https://mintcdn.com/snapsec-23724fa2/wfY-a2uHz4_Qm_FB/images/aim/alerts3.png?fit=max&auto=format&n=wfY-a2uHz4_Qm_FB&q=85&s=225c653dfd33a2e0a6a122a368b37e41" width="1591" height="517" data-path="images/aim/alerts3.png" />
</Frame>

This builder allows you to define when an alert should trigger.

### Rule Configuration

* **Rule Name** — Unique name for the alert
* **Description** — Optional explanation

### Conditions

Define trigger logic:

* Select a field
* Choose an operator (equals, contains, etc.)
* Provide a value

### YAML Preview

A real-time YAML representation is generated for transparency and advanced users.

***

## Configure Alert Channels

<Frame caption="Configure email or other notification channels for alerts">
  <img src="https://mintcdn.com/snapsec-23724fa2/wfY-a2uHz4_Qm_FB/images/aim/alerts4.png?fit=max&auto=format&n=wfY-a2uHz4_Qm_FB&q=85&s=7efe619911a4346dfd65130cf4cd7760" width="1120" height="586" data-path="images/aim/alerts4.png" />
</Frame>

Once conditions are defined, configure how alerts are delivered.

### Email Channel

* **Recipients** — Comma-separated email addresses
* **Subject** — Alert title
* **Template** — Custom notification message

Supports dynamic variables like:

* `{{matchedAssetCount}}`
* `{{ruleName}}`
* `{{matchedAssets}}`

This ensures alerts are contextual and actionable.

***

## Manage Alerts

<Frame caption="Manage alert rules using the actions menu">
  <img src="https://mintcdn.com/snapsec-23724fa2/wfY-a2uHz4_Qm_FB/images/aim/alerts5.png?fit=max&auto=format&n=wfY-a2uHz4_Qm_FB&q=85&s=9904f208b219c81bfc9b8c8e3aaf4552" width="867" height="401" data-path="images/aim/alerts5.png" />
</Frame>

Each alert includes the following actions:

* **Edit Alert** — Modify conditions or channels
* **Execute Now** — Run the rule instantly
* **Delete Rule** — Remove the alert

***

## Execute All Rules

Use **Execute All Rules** to evaluate all alert conditions across your assets at once.

This ensures your alerts reflect the latest asset state.

***

## Why This Matters

* Detects security risks in real-time
* Automates incident awareness
* Reduces manual monitoring effort
* Enables faster response to violations

***

## Explore Live Demo

<Card title="Explore AIM Live — No Signup Needed" icon="wand-magic-sparkles" href="https://suite.snapsec.co/demo">
  See how Snapsec AIM detects violations and sends real-time alerts based on your defined policies.
</Card>
