mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
parent
8dd781b855
commit
04db8cc274
24 changed files with 75 additions and 519 deletions
|
|
@ -14,7 +14,7 @@ local am_alert_store = require "am_alert_store".new()
|
|||
|
||||
--
|
||||
-- Read alerts data
|
||||
-- Example: curl -u admin:admin -H "Content-Type: application/json" -d '{}' http://localhost:3000/lua/rest/v1/acknowledge/am_host/alerts.lua
|
||||
-- Example: curl -u admin:admin -H "Content-Type: application/json" -d '{"ifid": "1"}' http://localhost:3000/lua/rest/v1/acknowledge/am_host/alerts.lua
|
||||
--
|
||||
-- NOTE: in case of invalid login, no error is returned but redirected to login
|
||||
--
|
||||
|
|
@ -27,7 +27,7 @@ interface.select(getSystemInterfaceId())
|
|||
-- Add filters
|
||||
am_alert_store:add_request_filters()
|
||||
|
||||
am_alert_store:acknowledge()
|
||||
am_alert_store:acknowledge(_GET["label"])
|
||||
|
||||
rest_utils.answer(rc)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue