Added references to netwflow filters reports

This commit is contained in:
Enrique Martin 2024-02-14 10:41:29 +01:00
parent 73c33c15fd
commit 4ab6b29bef
1 changed files with 47 additions and 0 deletions

View File

@ -238,6 +238,13 @@ class Prd
*/
private $treport;
/**
* Reference to tnetflow_filter.
*
* @var array
*/
private $tnetflowFilter;
/**
* Column references.
*
@ -702,6 +709,26 @@ class Prd
'columns' => ['name'],
];
$this->tnetflowFilter = [
'table' => 'tnetflow_filter',
'id' => 'id_sg',
'columns' => [
'ip_dst',
'ip_src',
'dst_port',
'src_port',
'router_ip',
'advanced_filter',
'filter_args',
'aggregate',
'netflow_monitoring',
'traffic_max',
'traffic_critical',
'traffic_warning',
'netflow_monitoring_interval',
],
];
// Define references between tables fields.
$this->columnRefs = [
'tlayout' => [
@ -728,6 +755,26 @@ class Prd
'id_group' => ['ref' => $this->tgrupo],
'id_module_group' => ['ref' => $this->tmoduleGroup],
'ncm_agents' => ['ref' => ($this->tagente + ['array' => true])],
'text' => [
'conditional_refs' => [
[
'when' => ['type' => 'netflow_area'],
'ref' => $this->tnetflowFilter,
],
[
'when' => ['type' => 'netflow_data'],
'ref' => $this->tnetflowFilter,
],
[
'when' => ['type' => 'netflow_summary'],
'ref' => $this->tnetflowFilter,
],
[
'when' => ['type' => 'netflow_top_N'],
'ref' => $this->tnetflowFilter,
]
]
],
],
'treport_content_item' => [
'id_agent_module' => ['ref' => $this->tagenteModulo],