Skip to content

Commit

Permalink
Added SMTP_OPTS['default_recipient']
Browse files Browse the repository at this point in the history
- Added default recipient which acts as a catchall for alert tuples that do not
  have a matching namespace defined in recipients in SMTP_OPTS and
  BOUNDARY_SMTP_OPTS

Modified:
skyline/settings.py
  • Loading branch information
earthgecko committed Aug 14, 2016
1 parent f09e6c7 commit f265877
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions skyline/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,11 +513,19 @@
'skyline': ['you@your_domain.com', 'them@your_domain.com'],
'skyline_test.alerters.test': ['you@your_domain.com'],
},
# This is the default recipient which acts as a catchall for alert tuples
# that do not have a matching namespace defined in recipients
'default_recipient': ['you@your_domain.com'],
'embed-images': True,
}
"""
:var SMTP_OPTS: Your SMTP settings.
:vartype SMTP_OPTS: dictionary
.. note:: For each alert tuple defined in :mod:`settings.ALERTS` you need a
recipient defined that matches the namespace. The default_recipient acts
as a catchall for any alert tuple that does not have a matching recipients
defined.
"""

HIPCHAT_OPTS = {
Expand Down Expand Up @@ -1074,6 +1082,9 @@
'nometrics': ['you@your_domain.com', 'them@your_domain.com'],
'nometrics.either': ['you@your_domain.com', 'another@some-company.com'],
},
# This is the default recipient which acts as a catchall for alert tuples
# that do not have a matching namespace defined in recipients
'default_recipient': ['you@your_domain.com'],
'embed-images': True,
# Send graphite graphs at the most meaningful resolution if different from
# FULL_DURATION
Expand Down

0 comments on commit f265877

Please sign in to comment.