mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Refactors alert_severities into an independend Lua module
This commit is contained in:
parent
e683509dec
commit
b3dc39c641
109 changed files with 317 additions and 264 deletions
|
|
@ -5,6 +5,7 @@
|
|||
local user_scripts = require("user_scripts")
|
||||
local ts_utils = require("ts_utils_core")
|
||||
local alerts_api = require("alerts_api")
|
||||
local alert_severities = require "alert_severities"
|
||||
local alert_consts = require("alert_consts")
|
||||
|
||||
local script = {
|
||||
|
|
@ -58,7 +59,7 @@ script.hooks["min"] = function(params)
|
|||
local influxdb = ts_utils.getQueryDriver()
|
||||
|
||||
local alert_type = alert_consts.alert_types.alert_influxdb_error.create(
|
||||
alert_consts.alert_severities.error,
|
||||
alert_severities.error,
|
||||
alert_consts.alerts_granularities.min,
|
||||
last_error
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue