- Documentație
- AI
- Analytics alerts
Această pagină nu este încă disponibilă în Română. Este afișată în engleză.
Analytics alertsDin 1.6.16
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.
În aplicație: /analytics
From version 1.6.16, 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.
Add a rule#
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.
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.
Set the limit
Fill in the kind's settings, such as Percent full or People in queue.
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.
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, 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.
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.
- 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 | Descriere | Implicit |
|---|---|---|
| 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. Until then the form says Set up Telegram under Integrations to use it.
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.