Added ability to query alerts from Python

This commit is contained in:
Luca Deri 2022-12-16 14:01:17 +01:00
parent 25baf5df5e
commit 792e79a429
6 changed files with 176 additions and 11 deletions

View file

@ -34,11 +34,6 @@ end
interface.select(ifid)
if not auth.has_capability(auth.capabilities.alerts) then
rest_utils.answer(rest_utils.consts.err.not_granted)
return
end
local res = all_alert_store:get_counters_by_severity()
local top_alerts = {}