From 3c5509a5e92d154e2673105aa93df436a80a3724 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 25 Nov 2021 17:59:14 +0100 Subject: [eventlog] Allow filtering by select hardware info (to be extended) --- modules-available/eventlog/pages/rules.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules-available/eventlog/pages') 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); } -- cgit v1.2.3-55-g7522