Refactors alrt builders into creators

Refactors builders into creators: calls
This commit is contained in:
Simone Mainardi 2020-04-27 15:36:34 +02:00
parent 00c5e9f909
commit 290175b16f
75 changed files with 158 additions and 158 deletions

View file

@ -11,7 +11,7 @@ local alert_keys = require "alert_keys"
-- @param alert_granularity A granularity as defined in `alert_consts.alerts_granularities`
-- @param last_error A string with the lastest influxdb error
-- @return A table with the alert built
local function buildInfluxdbError(alert_severity, alert_granularity, last_error)
local function createInfluxdbError(alert_severity, alert_granularity, last_error)
local threshold_type = {
alert_severity = alert_severity,
alert_granularity = alert_granularity,
@ -36,5 +36,5 @@ return {
i18n_title = "alerts_dashboard.influxdb_error",
i18n_description = formatInfluxdbErrorMessage,
icon = "fas fa-database",
builder = buildInfluxdbError,
creator = createInfluxdbError,
}