Oved Ourfali has submitted this change and it was merged.
Change subject: tools: notifier: filter messages based on severity
......................................................................
tools: notifier: filter messages based on severity
Extend the existing notifier filter mechanism to accept severities in an
extra, optional field:
PATTERN=include|exclude:event[:severity][(subscriber)]
The parser accepts the prior format for backwards compatibility.
An inclusion filter will match an event with greater-or-equal severity.
Conversely, an exclusion filter will match an event with lesser-or-equal
severity.
Change-Id: Ia8abc34d56f1ede2fb51daf71dee293d08f198a3
Signed-off-by: Greg Padgett <gpadgett(a)redhat.com>
---
M
backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/NotificationService.java
M
backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/dao/EventsManager.java
M
backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/filter/FirstMatchSimpleFilter.java
M
backend/manager/tools/src/test/java/org/ovirt/engine/core/notifier/filter/FirstMatchSimpleFilterTest.java
M packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.conf.in
5 files changed, 99 insertions(+), 10 deletions(-)
Approvals:
Alon Bar-Lev: Looks good to me, but someone else must approve
Greg Padgett: Verified
Allon Mureinik: Looks good to me, but someone else must approve
Oved Ourfali: Looks good to me, approved
--
To view, visit
https://gerrit.ovirt.org/38442
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia8abc34d56f1ede2fb51daf71dee293d08f198a3
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Greg Padgett <gpadgett(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl(a)redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadgett(a)redhat.com>
Gerrit-Reviewer: Mooli Tayer <mtayer(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server