---
title: "Analytics alerts"
description: "Get told when an area is nearly full, a queue gets long, someone loiters, a car overstays a bay or fewer people come in than expected."
url: https://vigiora.com/docs/ai/analytics-alerts
updated: 2026-11-25T15:30:07.000Z
---

# Analytics alerts

> Get told when an area is nearly full, a queue gets long, someone loiters, a car overstays a bay or fewer people come in than expected.

From version 1.6.16, [Analytics](https://vigiora.com/docs/ai/analytics) raises alerts when its numbers cross a limit. Each rule watches one area, line, zone or camera. An alert appears in **Recordings** (with **Needs attention** on) like any other, and can also go to push notifications, email, Telegram, LINE and webhooks.

These rules work on counts and positions, not on what the AI sees in the video. To be told about a situation described in words, such as "a parcel left at the door", use Guardian [alert rules](https://vigiora.com/docs/ai/alert-rules).

![The New alert rule form with the Kind, Target, Severity, Cooldown, Active hours and Notify through fields](https://vigiora.com/docs/img/ai/analytics-alerts-2-editor.png)

*An alert rule: what it watches, when it fires, and where the alert goes.*

## Add a rule

1. **Open the alerts section**

   Open **Home** → **Analytics**, pick the area's tab and scroll to **Alerts**. Admins and operators see **Alert rules** with a **Rule** button.

2. **Choose the kind and the target**

   Click **Rule**. Give the rule a **Name**, choose its **Kind** (below), then the **Target** it watches: an area, a line, a zone or a camera, depending on the kind.

3. **Set the limit**

   Fill in the kind's settings, such as **Percent full** or **People in queue**.

4. **Choose when and how often**

   Pick the **Severity** (**Low**, **Normal** or **High**), the **Cooldown (minutes)** and, if the rule should only work at some times, its **Active hours**.

5. **Choose where it goes**

   Under **Notify through**, choose the channels (below), then save.

You need operator permission on every camera the target uses. Viewers see the rules and the alerts of what they may see.

## Kinds of rule

| Kind | Watches | Fires when |
| --- | --- | --- |
| **Capacity** | An area with a capacity | Occupancy reaches **Percent full** (90 % by default) of the capacity, and again at 100 %. |
| **Queue length** | A queue zone | At least **People in queue** are queuing for **For minutes**. |
| **Queue wait** | A queue zone | Someone has waited **Seconds**. |
| **Loitering** | A zone | Someone has stayed **Seconds** in the zone. |
| **Wrong direction** | A line | Someone crosses in the **Direction** you forbid (**In** or **Out**), such as through an exit-only door. |
| **Tailgating** | A line | Two people cross **In** within **Within (seconds)** of each other, at an access door. |
| **Speed** | A line | Something crosses at **Speed limit (km/h)** or more. Only on a camera with a [reference distance](https://vigiora.com/docs/ai/queues-and-parking#speed), and only as accurate as it is. |
| **No bays free** | An area or camera with bays | No bay has been free for **For minutes**. |
| **Zone empty** | A zone | Nobody has been in the zone for **For minutes** while it should be staffed, for example a reception desk. |
| **Line below expected** | A line | Fewer than **Expected people** came in over the last **Per hours**. Checked every 15 minutes. |
| **Reserved bay taken** | A bay | A vehicle is in the bay during its reserved schedule. |
| **Bay overstay** | A bay | A vehicle stays longer than the bay's **Max stay (min)**. |

Queues and bays are kinds of zone: see [Queues, parking and speed](https://vigiora.com/docs/ai/queues-and-parking).

## When a rule fires

- **Cooldown:** the same rule doesn't fire again within its cooldown (5 minutes by default). Conditions that stay true, such as **Capacity**, **Queue length**, **No bays free** and **Zone empty**, fire again once per cooldown while they last, and at most once a minute.
- **Active hours:** a rule fires only inside its windows. Without any, it works all the time. See [Opening hours and schedules](https://vigiora.com/docs/ai/queues-and-parking#opening-hours-and-schedules).
- **Zone empty** without active hours follows the **Open hours** of the zone's area. With neither, it never fires.
- **Line below expected** looks back over the last hours, so it can fire as soon as its active hours start.
- Deleting a line, zone or area deletes the rules that watch it.

## Where alerts go

Every alert appears in **Recordings** (with **Needs attention** on), labelled with the kind, for example `analytics:capacity`, and under **Recent alerts** in the Analytics page's alerts section. A line or zone alert can carry a live picture from the camera at that moment.

| Notify through | What it does | Default |
| --- | --- | --- |
| Push | A push notification to the Vigiora app and browsers. | On |
| Email recipients | Up to 10 addresses, separated by commas. | None |
| Mark as alert (badge, floor plan, webhooks) | Counts it as an alert: the red badge on Alerts, the pulse on floor plans, alert-only lists and the alert.created webhook event. | On |
| Telegram | Sends it to the Telegram chats set up under Integrations. | Off |
| LINE | Sends it to the LINE recipients set up under Integrations. | Off |
| Snapshot | Attaches a live picture from the camera, for line and zone rules. | Off |

Telegram and LINE need setting up first: see [Integrations](https://vigiora.com/docs/admin/integrations). Until then the form says **Set up Telegram under Integrations to use it.**

> **Home Assistant**
>
> Home Assistant [rule actions](https://vigiora.com/docs/home-assistant/bridge#alert-rule-actions) don't run for Analytics rules yet. Home Assistant still gets every Analytics alert as the `alert.created` event, through [MQTT](https://vigiora.com/docs/admin/integrations#mqtt) or a [webhook](https://vigiora.com/docs/admin/webhooks).

## Alert history

**Recent alerts** lists the latest firings of the area's rules, each with the rule, the time and the measured value: the percent full, the people queued, the seconds waited or the speed. Each rule shows **Last fired** and can be turned off with its switch, edited or deleted.

## With the API

Rules are `/api/v1/analytics/alert-rules` and the history `/api/v1/analytics/alert-events`, with the `analytics:read` and `analytics:write` scopes. See [API v1](https://vigiora.com/docs/developers/api-v1#api-126-to-130-analytics-alerts-door-displays-integrations-and-more).

---

Source: https://vigiora.com/docs/ai/analytics-alerts · Last updated 25 Nov 2026, 15:30 UTC
