summaryrefslogtreecommitdiffstats
path: root/modules-available/eventlog/pages
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-25 17:59:14 +0100
committerSimon Rettberg2022-03-09 15:06:54 +0100
commit3c5509a5e92d154e2673105aa93df436a80a3724 (patch)
tree6dc71193cf5ffa0189de069e0b4de0135ade282a /modules-available/eventlog/pages
parent[statistics] Support IOMMU for AMD (diff)
downloadslx-admin-3c5509a5e92d154e2673105aa93df436a80a3724.tar.gz
slx-admin-3c5509a5e92d154e2673105aa93df436a80a3724.tar.xz
slx-admin-3c5509a5e92d154e2673105aa93df436a80a3724.zip
[eventlog] Allow filtering by select hardware info (to be extended)
Diffstat (limited to 'modules-available/eventlog/pages')
-rw-r--r--modules-available/eventlog/pages/rules.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules-available/eventlog/pages/rules.inc.php b/modules-available/eventlog/pages/rules.inc.php
index b00dcf08..5ba1713b 100644
--- a/modules-available/eventlog/pages/rules.inc.php
+++ b/modules-available/eventlog/pages/rules.inc.php
@@ -169,6 +169,10 @@ class SubPage
FROM notification_backend nb
LEFT JOIN notification_rule_x_transport sfxb ON (sfxb.transportid = nb.transportid AND sfxb.ruleid = :id)",
['id' => $id]);
+ if (Module::isAvailable('statistics')) {
+ // Filter keys to suggest for events with machineuuid in data
+ $data['machine_keys'] = array_keys(FilterRuleProcessor::HW_QUERIES);
+ }
Render::addTemplate('page-filters-edit-rule', $data);
}