Add require_attention to all alert families on SQLite. Cleanup SQLite schema

This commit is contained in:
Alfredo Cardigliano 2024-11-11 18:12:27 +01:00
parent 2da5925181
commit 6f9d0690c6
4 changed files with 127 additions and 104 deletions

View file

@ -362,6 +362,7 @@ function alerts_api.trigger(entity_info, type_info, when, cur_alerts)
triggered.ifid = ifid
triggered.action = "engage"
triggered.require_attention = true
-- Emit the notification only if the notification hasn't already been emitted.
-- This is to avoid alert storms when ntopng is restarted. Indeeed,
@ -450,6 +451,7 @@ function alerts_api.release(entity_info, type_info, when, cur_alerts)
released.ifid = ifid
released.action = "release"
triggered.require_attention = true
addAlertPoolAndNetworkInfo(entity_info, released)