implement new netflow item
This commit is contained in:
parent
362898681e
commit
931477fcd5
|
@ -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'
|
// 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)
|
function api_get_netflow_get_summary($discard_1, $discard_2, $params)
|
||||||
{
|
{
|
||||||
if (defined('METACONSOLE')) {
|
if (is_metaconsole() === true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -840,7 +840,7 @@ function netflow_get_summary($start_date, $end_date, $filter, $connection_name='
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// Requesting remote data.
|
// 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)));
|
$data = metaconsole_call_remote_api($connection_name, 'netflow_get_summary', "$start_date|$end_date|".base64_encode(json_encode($filter)));
|
||||||
return json_decode($data, true);
|
return json_decode($data, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue