Move user scripts gui config to admin, cleanup

This commit is contained in:
emanuele-f 2020-01-03 15:16:46 +01:00
parent d037f9a9a4
commit ad9c386bb3
44 changed files with 241 additions and 289 deletions

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.activity_time",
i18n_description = "alerts_thresholds_config.alert_active_description",
i18n_field_unit = user_scripts.field_units.seconds,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.alert_bytes_title",
i18n_description = "alerts_thresholds_config.alert_bytes_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.dns_traffic",
i18n_description = "alerts_thresholds_config.alert_dns_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
},
env = {

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.alert_flows_title",
i18n_description = "alerts_thresholds_config.alert_flows_description",
i18n_field_unit = user_scripts.field_units.flows,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.idle_time",
i18n_description = "alerts_thresholds_config.alert_idle_description",
i18n_field_unit = user_scripts.field_units.seconds,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.p2p_traffic",
i18n_description = "alerts_thresholds_config.alert_p2p_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
},
env = {

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.alert_packets_title",
i18n_description = "alerts_thresholds_config.alert_packets_description",
i18n_field_unit = user_scripts.field_units.packets,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -20,8 +20,7 @@ local script = {
i18n_title = "alerts_thresholds_config.throughput",
i18n_description = "alerts_thresholds_config.alert_throughput_description",
i18n_field_unit = user_scripts.field_units.mbits,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.active_local_hosts",
i18n_description = "alerts_thresholds_config.active_local_hosts_threshold_descr",
i18n_field_unit = user_scripts.field_units.hosts,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.alert_bytes_title",
i18n_description = "alerts_thresholds_config.alert_bytes_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.dns_traffic",
i18n_description = "alerts_thresholds_config.alert_dns_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.idle_time",
i18n_description = "alerts_thresholds_config.alert_idle_description",
i18n_field_unit = user_scripts.field_units.mbits,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.p2p_traffic",
i18n_description = "alerts_thresholds_config.alert_p2p_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.alert_packets_title",
i18n_description = "alerts_thresholds_config.alert_packets_description",
i18n_field_unit = user_scripts.field_units.packets,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.throughput",
i18n_description = "alerts_thresholds_config.alert_throughput_description",
i18n_field_unit = user_scripts.field_units.mbits,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.egress_traffic",
i18n_description = "alerts_thresholds_config.alert_network_egress_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.ingress_traffic",
i18n_description = "alerts_thresholds_config.alert_network_ingress_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}

View file

@ -19,8 +19,7 @@ local script = {
i18n_title = "alerts_thresholds_config.inner_traffic",
i18n_description = "alerts_thresholds_config.alert_network_inner_description",
i18n_field_unit = user_scripts.field_units.bytes,
input_builder = user_scripts.threshold_cross_input_builder,
post_handler = user_scripts.threshold_cross_post_handler,
input_builder = "threshold_cross",
}
}