> For the complete documentation index, see [llms.txt](https://docs.adsecure.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adsecure.com/adsecure-documentation/how-to-guides/alert-rules.md).

# How to - Manage Alert Rules

## Introduction

An Alert Rule lets you define the conditions that must occur to trigger an alert based on AdSecure detections. By default every detection made by AdSecure will get flagged as a violation. Alert Rules allow you to define alert conditions that would highlight the violations in the reports, but would also allow to generate notifications (emails, callbacks).

In this guide we will further explain in detail how to:

* Navigate to Alert Rules page
* Create an Alert Rule
* Edit an Alert Rule
* Delete an Alert Rule

### Navigate to Alert Rules section

You can navigate to the **Alert Rules** via the navigation menu on the left of the application.

![](https://405863316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuRaI0FQmgJwzlmWKw5f%2Fuploads%2FshMXW6rQLMCGvzdYTppS%2F2a5a90f48312.png?alt=media\&token=1fff1d80-1845-41fc-8475-d850473e408a)

### Create an Alert Rule

To create a new Alert Rule, simply click on the "New Alert Rule" button at the top right corner of the screen.

![](https://405863316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuRaI0FQmgJwzlmWKw5f%2Fuploads%2FEYD4nVkyMomZVGrn0u5h%2F701f1d186ba0.png?alt=media\&token=baa327f6-c66d-4dfb-9833-15a6d86bef7b)

A panel will slide-in from the right of your screen.

![](https://405863316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuRaI0FQmgJwzlmWKw5f%2Fuploads%2FIC8DxpXkcbkDAt9TdzmG%2F3cbc217dd3a8.png?alt=media\&token=e003d3ef-bfd4-4f14-ad7b-4ff2e3fefdd4)

a. Give a name to your alert rule, to easily identify it later.\
b. Click on any of the 3 categories and select the violations you want to consider as alerts.\
c. And submit.

You can create as many Alert Rules as you need to correctly monitor your scans. You will notice that violations are classified in 3 categories, easily identifiable by their color coding:

* Red for violations affecting the User Security
* Orange for the violations affecting the User Experience
* Black for violations affecting the User Advisory

### Edit an Alert Rule

If you need to modify an existing alert rule, go back into the Alert Rules section, click on the Alert Rule to open it. Update the fields of your choice, then submit to save the update.

![](https://405863316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuRaI0FQmgJwzlmWKw5f%2Fuploads%2FmGLiNeEBrrLLhlsOiMN0%2F0f4a0f6e7986.png?alt=media\&token=77cfa967-549e-42bd-8c40-fc55fe6dacdb)

### Delete an Alert Rule

To delete an Alert Rule, click on the delete icon next to the rule.

![](https://405863316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuRaI0FQmgJwzlmWKw5f%2Fuploads%2FiaXPDSiqcdpJZnTs8Lkz%2F6fea0a524845.png?alt=media\&token=16734a5b-f784-4859-8643-5d174e62a950)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.adsecure.com/adsecure-documentation/how-to-guides/alert-rules.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
