From 01b08f85697fdfb1d08dd794ee76bb32f401af12 Mon Sep 17 00:00:00 2001 From: Hirofumi Kosaka Date: Tue, 1 Dec 2015 15:52:09 +0900 Subject: [PATCH] Added new params {critical,warning}_inverse to set {create,update}_{network,plugin,data}_module APIs. --- pandora_console/include/functions_api.php | 24 +++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 2d7cee4454..ce739bb10f 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -1550,7 +1550,9 @@ function api_set_create_network_module($id, $thrash1, $other, $thrash3) { 'each_ff' => $other['data'][24], 'min_ff_event_normal' => $other['data'][25], 'min_ff_event_warning' => $other['data'][26], - 'min_ff_event_critical' => $other['data'][27] + 'min_ff_event_critical' => $other['data'][27], + 'critical_inverse' => $other['data'][28], + 'warning_inverse' => $other['data'][29] ); if ( ! $values['descripcion'] ) { @@ -1644,7 +1646,9 @@ function api_set_update_network_module($id_module, $thrash1, $other, $thrash3){ 'each_ff', 'min_ff_event_normal', 'min_ff_event_warning', - 'min_ff_event_critical'); + 'min_ff_event_critical', + 'critical_inverse', + 'warning_inverse'); $values = array(); $cont = 0; @@ -1737,7 +1741,9 @@ function api_set_create_plugin_module($id, $thrash1, $other, $thrash3) { 'each_ff' => $other['data'][29], 'min_ff_event_normal' => $other['data'][30], 'min_ff_event_warning' => $other['data'][31], - 'min_ff_event_critical' => $other['data'][32] + 'min_ff_event_critical' => $other['data'][32], + 'critical_inverse' => $other['data'][33], + 'warning_inverse' => $other['data'][34] ); if ( ! $values['descripcion'] ) { @@ -1835,7 +1841,9 @@ function api_set_update_plugin_module($id_module, $thrash1, $other, $thrash3){ 'each_ff', 'min_ff_event_normal', 'min_ff_event_warning', - 'min_ff_event_critical'); + 'min_ff_event_critical', + 'critical_inverse', + 'warning_inverse'); $values = array(); $cont = 0; @@ -1923,7 +1931,9 @@ function api_set_create_data_module($id, $thrash1, $other, $thrash3) { 'min_ff_event_normal' => $other['data'][20], 'min_ff_event_warning' => $other['data'][21], 'min_ff_event_critical' => $other['data'][22], - 'ff_timeout' => $other['data'][23] + 'ff_timeout' => $other['data'][23], + 'critical_inverse' => $other['data'][24], + 'warning_inverse' => $other['data'][25] ); if ( ! $values['descripcion'] ) { @@ -2013,7 +2023,9 @@ function api_set_update_data_module($id_module, $thrash1, $other, $thrash3){ 'min_ff_event_normal', 'min_ff_event_warning', 'min_ff_event_critical', - 'ff_timeout'); + 'ff_timeout', + 'critical_inverse', + 'warning_inverse'); $values = array(); $cont = 0;