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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Greg Padgett <[email protected]>
Gerrit-Reviewer: Mooli Tayer <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to