Compare commits
2 Commits
56b268bd77
...
cb9500a36d
Author | SHA1 | Date | |
---|---|---|---|
cb9500a36d | |||
e993f0f20e |
@ -379,6 +379,7 @@ class NotificationRuleData(object):
|
||||
pass
|
||||
|
||||
# We hit the return above if we don't need to notify
|
||||
if "matched" not in meta:
|
||||
meta["matched"] = self.format_matched(message)
|
||||
if "aggs" in meta:
|
||||
aggs_formatted = self.format_aggs(meta["aggs"])
|
||||
@ -415,9 +416,13 @@ class NotificationRuleData(object):
|
||||
pass
|
||||
|
||||
# We hit the return above if we don't need to notify
|
||||
if "matched" not in meta:
|
||||
meta["matched"] = self.format_matched(message)
|
||||
if "aggs" in meta:
|
||||
meta["format_aggs"] = self.format_aggs(meta["aggs"])
|
||||
aggs_formatted = self.format_aggs(meta["aggs"])
|
||||
if aggs_formatted:
|
||||
meta["matched_aggs"] = aggs_formatted
|
||||
|
||||
rule_notify(self.object, index, message, meta)
|
||||
self.store_match(index, message)
|
||||
self.ingest_matches_sync(index, message, meta, mode)
|
||||
|
@ -259,7 +259,7 @@
|
||||
"channel": "{{ row.cells.channel|escapejs }}",
|
||||
"time": "{{ row.cells.time|escapejs }}",
|
||||
"date": "{{ row.cells.date|escapejs }}",
|
||||
"index": "{{ params.index }}",
|
||||
"index": "{% if row.cells.index != '—' %}{{row.cells.index}}{% else %}{{ params.index }}{% endif %}",
|
||||
"type": "{{ row.cells.type }}",
|
||||
"mtype": "{{ row.cells.mtype }}",
|
||||
"nick": "{{ row.cells.nick|escapejs }}",
|
||||
|
Loading…
Reference in New Issue
Block a user