mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Added gdpr filter
This commit is contained in:
parent
cdfb1e4a0e
commit
7e58b9a052
@ -115,6 +115,8 @@ app.controller('agentsController', function ($timeout, $scope, $location, $rootS
|
||||
if(tab !== 'general'){
|
||||
if(tab === 'pci') {
|
||||
filters.push(filterHandler.pciQuery())
|
||||
} else if(tab === 'gdpr') {
|
||||
filters.push(filterHandler.gdprQuery())
|
||||
} else {
|
||||
filters.push(filterHandler.ruleGroupQuery(tabFilters[tab].group));
|
||||
}
|
||||
|
@ -100,4 +100,16 @@ export default class FilterHandler {
|
||||
delete result.query;
|
||||
return result;
|
||||
}
|
||||
|
||||
gdprQuery(){
|
||||
const result = this.base();
|
||||
result.meta.type = 'exists';
|
||||
result.meta.value = 'exists';
|
||||
result.meta.key = 'rule.gdpr';
|
||||
result.exists = {
|
||||
field: 'rule.gdpr'
|
||||
}
|
||||
delete result.query;
|
||||
return result;
|
||||
}
|
||||
}
|
@ -141,6 +141,8 @@ app.controller('overviewController', function ($timeout, $scope, $location, $roo
|
||||
if(tab !== 'general'){
|
||||
if(tab === 'pci') {
|
||||
filters.push(filterHandler.pciQuery())
|
||||
} else if(tab === 'gdpr') {
|
||||
filters.push(filterHandler.gdprQuery())
|
||||
} else {
|
||||
filters.push(filterHandler.ruleGroupQuery(tabFilters[tab].group));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user