|
|
@ -140,6 +140,9 @@ def rule_notify(rule, index, message, meta=None):
|
|
|
|
if not notification_settings:
|
|
|
|
if not notification_settings:
|
|
|
|
# No/invalid notification settings, don't send anything
|
|
|
|
# No/invalid notification settings, don't send anything
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
if notification_settings.get("service") == "none":
|
|
|
|
|
|
|
|
# Don't send anything
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
# Create a cast we can reuse for the formatting helpers and sendmsg
|
|
|
|
# Create a cast we can reuse for the formatting helpers and sendmsg
|
|
|
|
cast = {
|
|
|
|
cast = {
|
|
|
|