mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added ability to query alerts from Python
This commit is contained in:
parent
25baf5df5e
commit
792e79a429
6 changed files with 176 additions and 11 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue