implement new netflow item

This commit is contained in:
alejandro.campos@artica.es 2022-02-21 12:26:48 +01:00
parent 362898681e
commit 931477fcd5
2 changed files with 2 additions and 2 deletions

View File

@ -13810,7 +13810,7 @@ function api_get_netflow_get_top_N($trash1, $trash2, $params)
// http://localhost/pandora_console/include/api.php?op=get&op2=netflow_get_summary&other=1348562410|1348648810|_base64_encode(json_encode($filter))&other_mode=url_encode_separator_|&apipass=pandora&user=pandora&pass=pandora'
function api_get_netflow_get_summary($discard_1, $discard_2, $params)
{
if (defined('METACONSOLE')) {
if (is_metaconsole() === true) {
return;
}

View File

@ -840,7 +840,7 @@ function netflow_get_summary($start_date, $end_date, $filter, $connection_name='
global $config;
// Requesting remote data.
if (defined('METACONSOLE') && $connection_name != '') {
if (is_metaconsole() === true && $connection_name != '') {
$data = metaconsole_call_remote_api($connection_name, 'netflow_get_summary', "$start_date|$end_date|".base64_encode(json_encode($filter)));
return json_decode($data, true);
}