mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Alerts API cleanup and JSON migration
This commit is contained in:
parent
3ca04b95ec
commit
c183a577be
42 changed files with 1353 additions and 880 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
local test_utils = {}
|
||||
|
||||
local alerts = require("alerts_api")
|
||||
local alerts_api = require("alerts_api")
|
||||
local test_failed_alert = alerts:newAlert({
|
||||
type = "test_failed",
|
||||
entity = "test"
|
||||
|
|
@ -12,7 +12,8 @@ local test_failed_alert = alerts:newAlert({
|
|||
})
|
||||
|
||||
local function test_error(msg)
|
||||
test_failed_alert:trigger("test", msg)
|
||||
--~ test_failed_alert:trigger("test", msg)
|
||||
-- TODO adapt to new alerts api
|
||||
end
|
||||
|
||||
local function test_assert(cond, error_msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue