Fixes various lua memory issues

This commit is contained in:
Matteo Biscosi 2024-02-22 11:21:38 +00:00
parent eb52f62b1e
commit 5edfdeedcd
53 changed files with 336 additions and 551 deletions

View file

@ -4,11 +4,12 @@
local alerts_api = require("alerts_api")
local alert_consts = require("alert_consts")
local checks = require("checks")
local alert_categories = require "alert_categories"
local field_units = require "field_units"
local script = {
-- Script category
category = checks.check_categories.network,
category = alert_categories.network,
severity = alert_consts.get_printable_severities().error,
default_enabled = false,
@ -24,7 +25,7 @@ local script = {
gui = {
i18n_title = "alerts_thresholds_config.ingress_traffic",
i18n_description = "alerts_thresholds_config.alert_network_ingress_description",
i18n_field_unit = checks.field_units.bytes,
i18n_field_unit = field_units.bytes,
input_builder = "threshold_cross",
}
}