Notification match rule based on notification text

meichthys

Well-Known Member
Sep 25, 2019
38
7
48
35
The 'new' notification options have been great!
One thing that i find myself wanting to do often is to be able to create a match rule based on the notification text itself.

For example, I would only like to be notified if a specific replication fails at least 3 times.

Currently, with the default matcher, the notification email looks like this:

Code:
Replication job '114-0' with target 'proxinator' and schedule 'mon..fri 6..18:00/15' failed!

Last successful sync: 1969-12-31 19:00:00
Next sync try: ERROR
Failure count: 384

Error:

I would like to use a regex to key on the `Failure count:`

Would it be possible to add the notification text as another `Field`, or perhaps as another 'Node type' in the matcher?
1750946358843.png
 
I think it could be more useful to add 'failure-count' as a metadata field for replication jobs and then maybe add some kind of of 'arithmetic' match type, so that you can simply match on 'failure-count > 3'. Would this work for you?
 
  • Like
Reactions: meichthys