mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Refactors alrt builders into creators
Refactors builders into creators: calls
This commit is contained in:
parent
00c5e9f909
commit
290175b16f
75 changed files with 158 additions and 158 deletions
|
|
@ -17,7 +17,7 @@ local format_utils = require("format_utils")
|
|||
-- @param operator A string indicating the operator used when evaluating the threshold, one of "gt", ">", "<"
|
||||
-- @param unit The unit of measure of value and threshold
|
||||
-- @return A table with the alert built
|
||||
local function buildActiveMonitoringTxCross(alert_severity, alert_granularity, value, threshold, ip, host, operator, unit)
|
||||
local function createActiveMonitoringTxCross(alert_severity, alert_granularity, value, threshold, ip, host, operator, unit)
|
||||
local threshold_type = {
|
||||
alert_severity = alert_severity,
|
||||
alert_granularity = alert_granularity,
|
||||
|
|
@ -88,5 +88,5 @@ return {
|
|||
i18n_title = "graphs.active_monitoring",
|
||||
i18n_description = thresholdCrossFormatter,
|
||||
icon = "fas fa-exclamation",
|
||||
builder = buildActiveMonitoringTxCross,
|
||||
creator = createActiveMonitoringTxCross,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue