From 563323d0beec26c8c728c3c7776b37a64e8c7bda Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 21 Aug 2023 13:05:39 +0200 Subject: [PATCH] #11852 warning time lapse more than 30 days --- .../godmode/reporting/graph_builder.main.php | 11 ++- .../reporting_builder.item_editor.php | 70 ++++++++++++++++--- .../include/class/CustomNetScan.class.php | 12 +++- pandora_console/include/functions_html.php | 11 ++- pandora_console/include/javascript/pandora.js | 36 ++++++++++ .../lib/Dashboard/Widgets/BasicChart.php | 2 + .../lib/Dashboard/Widgets/BlockHistogram.php | 3 +- .../lib/Dashboard/Widgets/DataMatrix.php | 4 ++ .../lib/Dashboard/Widgets/custom_graph.php | 2 + .../Widgets/graph_module_histogram.php | 2 + .../include/lib/Dashboard/Widgets/netflow.php | 2 + .../lib/Dashboard/Widgets/single_graph.php | 2 + .../lib/Dashboard/Widgets/sla_percent.php | 2 + .../include/lib/Dashboard/Widgets/top_n.php | 2 + .../models/VisualConsole/Items/BasicChart.php | 2 + .../VisualConsole/Items/ModuleGraph.php | 2 + pandora_console/operation/agentes/graphs.php | 20 +++++- .../operation/reporting/graph_viewer.php | 20 +++++- 18 files changed, 185 insertions(+), 20 deletions(-) diff --git a/pandora_console/godmode/reporting/graph_builder.main.php b/pandora_console/godmode/reporting/graph_builder.main.php index 4233e4f9f4..7ed4e20eb5 100644 --- a/pandora_console/godmode/reporting/graph_builder.main.php +++ b/pandora_console/godmode/reporting/graph_builder.main.php @@ -190,14 +190,21 @@ $output .= html_print_label_input_block( html_print_extended_select_for_time( 'period', $period, - '', + 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', '', '0', false, true, false, false, - 'w100p' + 'w100p', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')' ) ); $output .= ""; diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 397e533366..adb54f89fe 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -1421,10 +1421,21 @@ $class = 'databox filters'; html_print_extended_select_for_time( 'period', $period, - '', + 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', '', '0', - 10 + 10, + false, + false, + true, + '', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')' ); ?> @@ -1444,10 +1455,21 @@ $class = 'databox filters'; html_print_extended_select_for_time( 'period_range', $period_range, - '', + 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', '', '0', - 10 + 10, + false, + false, + true, + '', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'period_range\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')' ); ?> @@ -1487,10 +1509,21 @@ $class = 'databox filters'; html_print_extended_select_for_time( 'period1', $period_pg, - '', + 'check_period_warning(this)', '', '0', - 10 + 10, + false, + false, + true, + '', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'period\')' ); ?> @@ -1506,10 +1539,21 @@ $class = 'databox filters'; html_print_extended_select_for_time( 'period2', $projection_period, - '', + 'check_period_warning(this)', '', '0', - 10 + 10, + false, + false, + true, + '', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'period\')' ); ?> @@ -3440,7 +3484,7 @@ $class = 'databox filters'; html_print_extended_select_for_time( 'lapse', $lapse, - '', + 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', __('None'), '0', 10, @@ -3448,7 +3492,13 @@ $class = 'databox filters'; '', '', '', - !$lapse_calc + !$lapse_calc, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'lapse\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')' ); ?> diff --git a/pandora_console/include/class/CustomNetScan.class.php b/pandora_console/include/class/CustomNetScan.class.php index 409f5636cf..ec4351e831 100644 --- a/pandora_console/include/class/CustomNetScan.class.php +++ b/pandora_console/include/class/CustomNetScan.class.php @@ -542,13 +542,21 @@ class CustomNetScan extends Wizard 'extra' => ''.html_print_extended_select_for_time( 'interval', $this->task['interval_sweep'], - '', + 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', '', '0', false, true, false, - false + false, + '', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'interval\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')' ).'', ]; diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 0d74ec9005..26fd12e75e 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -2166,7 +2166,8 @@ function html_print_extended_select_for_time( $style_icon='', $no_change=false, $allow_zero=0, - $units=null + $units=null, + $script_input='' ) { global $config; $admin = is_user_admin($config['id_user']); @@ -2256,7 +2257,7 @@ function html_print_extended_select_for_time( echo ''; echo '
'; - html_print_input_text($uniq_name.'_text', $selected, '', $size, 255, false, $readonly, false, '', $class); + html_print_input_text($uniq_name.'_text', $selected, '', $size, 255, false, $readonly, false, '', $class, $script_input); html_print_input_hidden($name, $selected, false, $uniq_name); html_print_select( @@ -5771,7 +5772,11 @@ function html_print_input($data, $wrapper='div', $input_only=false) ((isset($data['class']) === true) ? $data['class'] : ''), ((isset($data['readonly']) === true) ? $data['readonly'] : false), ((isset($data['custom_fields']) === true) ? $data['custom_fields'] : false), - ((isset($data['style_icon']) === true) ? $data['style_icon'] : '') + ((isset($data['style_icon']) === true) ? $data['style_icon'] : ''), + ((isset($data['no_change']) === true) ? $data['no_change'] : ''), + ((isset($data['allow_zero']) === true) ? $data['allow_zero'] : ''), + ((isset($data['units']) === true) ? $data['units'] : null), + ((isset($data['script_input']) === true) ? $data['script_input'] : '') ); break; diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js index 738deb0834..b13301d77f 100644 --- a/pandora_console/include/javascript/pandora.js +++ b/pandora_console/include/javascript/pandora.js @@ -2487,3 +2487,39 @@ function menuActionButtonResizing() { "width: calc(100% - " + $("#menu_full").width() + "px);" ); } + +function check_period_warning(time, title, message) { + var period = time.value; + var times = 0; + if (period >= 2592000 && period < 7776000) { + WarningPeriodicityModal(title, message); + } else if (period >= 7776000 && period < 15552000) { + do { + WarningPeriodicityModal(title, message); + times = times + 1; + } while (times < 2); + } else if (period >= 15552000) { + do { + WarningPeriodicityModal(title, message); + times = times + 1; + } while (times < 3); + } +} + +function check_period_warning_manual(input_name, title, message) { + var period = { + value: + $("#text-" + input_name + "_text").val() * + $("#" + input_name + "_units option:selected").val() + }; + check_period_warning(period, title, message); +} + +function WarningPeriodicityModal(title, message) { + confirmDialog({ + title: title, + message: message, + strCancelButton: "Ok", + hideOkButton: 1 + }); +} diff --git a/pandora_console/include/lib/Dashboard/Widgets/BasicChart.php b/pandora_console/include/lib/Dashboard/Widgets/BasicChart.php index 85665e7e4c..c3b9ddf9ad 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/BasicChart.php +++ b/pandora_console/include/lib/Dashboard/Widgets/BasicChart.php @@ -421,6 +421,8 @@ class BasicChart extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php b/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php index 2d26760c76..a3ff215c76 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php +++ b/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php @@ -304,7 +304,8 @@ class BlockHistogram extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', - + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/lib/Dashboard/Widgets/DataMatrix.php b/pandora_console/include/lib/Dashboard/Widgets/DataMatrix.php index 10ddd2bc9c..e4905688df 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/DataMatrix.php +++ b/pandora_console/include/lib/Dashboard/Widgets/DataMatrix.php @@ -308,6 +308,8 @@ class DataMatrix extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; @@ -324,6 +326,8 @@ class DataMatrix extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'slice\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/lib/Dashboard/Widgets/custom_graph.php b/pandora_console/include/lib/Dashboard/Widgets/custom_graph.php index 52425947de..377ca145a0 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/custom_graph.php +++ b/pandora_console/include/lib/Dashboard/Widgets/custom_graph.php @@ -392,6 +392,8 @@ class CustomGraphWidget extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/lib/Dashboard/Widgets/graph_module_histogram.php b/pandora_console/include/lib/Dashboard/Widgets/graph_module_histogram.php index 09e46c36d5..b0382ba273 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/graph_module_histogram.php +++ b/pandora_console/include/lib/Dashboard/Widgets/graph_module_histogram.php @@ -367,6 +367,8 @@ class GraphModuleHistogramWidget extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/lib/Dashboard/Widgets/netflow.php b/pandora_console/include/lib/Dashboard/Widgets/netflow.php index be603e452b..13a15bf6a0 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/netflow.php +++ b/pandora_console/include/lib/Dashboard/Widgets/netflow.php @@ -205,6 +205,8 @@ class Netflow extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; $chart_types = netflow_get_chart_types(); diff --git a/pandora_console/include/lib/Dashboard/Widgets/single_graph.php b/pandora_console/include/lib/Dashboard/Widgets/single_graph.php index 2cdcf65fb3..72ad55309b 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/single_graph.php +++ b/pandora_console/include/lib/Dashboard/Widgets/single_graph.php @@ -352,6 +352,8 @@ class SingleGraphWidget extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/lib/Dashboard/Widgets/sla_percent.php b/pandora_console/include/lib/Dashboard/Widgets/sla_percent.php index 6ec96f9ef8..4dfefbf292 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/sla_percent.php +++ b/pandora_console/include/lib/Dashboard/Widgets/sla_percent.php @@ -381,6 +381,8 @@ class SLAPercentWidget extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/lib/Dashboard/Widgets/top_n.php b/pandora_console/include/lib/Dashboard/Widgets/top_n.php index 98fb8c5135..5a603501c0 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/top_n.php +++ b/pandora_console/include/lib/Dashboard/Widgets/top_n.php @@ -260,6 +260,8 @@ class TopNWidget extends Widget 'nothing' => __('None'), 'nothing_value' => 0, 'style_icon' => 'flex-grow: 0', + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/BasicChart.php b/pandora_console/include/rest-api/models/VisualConsole/Items/BasicChart.php index 8e9a20ce1d..77229f096a 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/BasicChart.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/BasicChart.php @@ -317,6 +317,8 @@ final class BasicChart extends Item 'value' => $values['period'], 'nothing' => __('None'), 'nothing_value' => 0, + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php b/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php index 96c2e54771..17244a7a17 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php @@ -633,6 +633,8 @@ final class ModuleGraph extends Item 'value' => $values['period'], 'nothing' => __('None'), 'nothing_value' => 0, + 'script' => 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + 'script_input' => 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', ], ]; diff --git a/pandora_console/operation/agentes/graphs.php b/pandora_console/operation/agentes/graphs.php index 14b13c6893..c1c3705acd 100644 --- a/pandora_console/operation/agentes/graphs.php +++ b/pandora_console/operation/agentes/graphs.php @@ -233,7 +233,25 @@ $table->data[2][2] .= html_print_image( $table->data[3][1] = __('Time range'); -$table->data[3][2] = html_print_extended_select_for_time('period', $period, '', '', 0, 7, true); +$table->data[3][2] = html_print_extended_select_for_time( + 'period', + $period, + 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + '', + 0, + 7, + true, + false, + true, + '', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')' +); $table->data[4][2] = __('Show events'); $table->data[4][3] = html_print_checkbox('draw_events', 1, (bool) $draw_events, true); diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php index bba28e6a7e..3d01d6b5c1 100644 --- a/pandora_console/operation/reporting/graph_viewer.php +++ b/pandora_console/operation/reporting/graph_viewer.php @@ -344,7 +344,25 @@ if ($view_graph) { $searchForm .= ""; $searchForm .= html_print_label_input_block( __('Time range'), - html_print_extended_select_for_time('period', (string) $period, '', '', 0, 10, true, 'width:100%') + html_print_extended_select_for_time( + 'period', + (string) $period, + 'check_period_warning(this, \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')', + '', + 0, + 10, + true, + 'width:100%', + true, + '', + false, + false, + '', + false, + 0, + null, + 'check_period_warning_manual(\'period\', \''.__('Warning').'\', \''.__('Displaying items with extended historical data can have an impact on system performance. We do not recommend that you use intervals longer than 30 days, especially if you combine several of them in a report, dashboard or visual console.').'\')' + ) ); $searchForm .= ''; $searchForm .= '';