Change in ovirt-engine[master]: tools: notifier: filter messages based on severity

oourfali at redhat.com oourfali at redhat.com
Sun Mar 8 09:31:37 UTC 2015


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 at 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 at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadgett at redhat.com>
Gerrit-Reviewer: Mooli Tayer <mtayer at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list