Merges acknowledge and label alerts into acknowledge

Addresses #5600
This commit is contained in:
Simone Mainardi 2021-07-05 18:02:56 +02:00
parent 8dd781b855
commit 04db8cc274
24 changed files with 75 additions and 519 deletions

View file

@ -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)