Add support for InfluxDB authentication

This commit is contained in:
emanuele-f 2018-08-13 14:35:55 +02:00
parent 165329947b
commit d4ea15619f
15 changed files with 237 additions and 169 deletions

View file

@ -1019,6 +1019,7 @@ local known_parameters = {
["toggle_pool_activation_alert"] = validateBool,
["toggle_quota_exceeded_alert"] = validateBool,
["toggle_external_alerts"] = validateBool,
["toggle_influx_auth"] = validateBool,
-- Input fields
["minute_top_talkers_retention"] = validateNumber,
@ -1064,6 +1065,8 @@ local known_parameters = {
["email_recipient"] = validateSingleWord,
["smtp_server"] = validateSingleWord,
["influx_dbname"] = validateSingleWord,
["influx_username"] = validateEmptyOr(validateSingleWord),
["influx_password"] = validateEmptyOr(validateSingleWord),
-- Multiple Choice
["disaggregation_criterion"] = validateChoiceInline({"none", "vlan", "probe_ip", "iface_idx", "ingress_iface_idx", "ingress_vrf_id"}),