mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Changed interface select for new alert rest
This commit is contained in:
parent
c6f8f6f085
commit
c212c47eff
9 changed files with 9 additions and 80 deletions
|
|
@ -25,15 +25,7 @@ if not auth.has_capability(auth.capabilities.alerts) then
|
|||
return
|
||||
end
|
||||
|
||||
local ifid = _GET["ifid"]
|
||||
|
||||
if isEmptyString(ifid) then
|
||||
rc = rest_utils.consts.err.invalid_interface
|
||||
rest_utils.answer(rc)
|
||||
return
|
||||
end
|
||||
|
||||
interface.select(ifid)
|
||||
interface.select(getSystemInterfaceId())
|
||||
|
||||
local res = user_alert_store:get_stats()
|
||||
local top_alerts = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue