airbus-cyber / graylog-plugin-alert-wizard

Alert Wizard plugin for Graylog to manage the alert rules
Other
47 stars 7 forks source link

GET on statistical rules is missing not export condition parameter field #143

Open c8y3 opened 2 hours ago

c8y3 commented 2 hours ago

When doing a GET request on a statistical rule, there seems to be no field in condition_parameters anymore. This also impacts the exported data which relies on the get.

To reproduce:

c8y3 commented 2 hours ago

Accompanying test: def test_get_alert_rule_should_return_correct_field(self): title = 'rule_title' self._api.create_alert_rule_statistics(title, _PERIOD) retrieved_alert_rule = self._graylog.get_alert_rule(title) self.assertEqual('a', retrieved_alert_rule['condition_parameters']['field'])