lemur_email Package¶
lemur_email
Package¶
plugin
Module¶
-
class
lemur.plugins.lemur_email.plugin.
EmailNotificationPlugin
(*args, **kwargs) Bases:
lemur.plugins.bases.notification.ExpirationNotificationPlugin
-
additional_options
= [{'name': 'recipients', 'type': 'str', 'required': True, 'validation': '^([\\w+-.%]+@[\\w-.]+\\.[A-Za-z]{2,4},?)+$', 'helpMessage': 'Comma delimited list of email addresses'}]
-
author
= 'Kevin Glisson'
-
author_url
= 'https://github.com/netflix/lemur'
-
description
= 'Sends expiration email notifications'
-
static
filter_recipients
(options, excluded_recipients, **kwargs) Given a set of options (which should include configured recipient info), filters out recipients that we do NOT want to notify.
For any notification types where recipients can’t be dynamically modified, this returns an empty list.
-
static
send
(notification_type, message, targets, options, **kwargs)
-
slug
= 'email-notification'
-
title
= 'Email'
-
version
= 'unknown'
-
-
lemur.plugins.lemur_email.plugin.
render_html
(template_name, options, certificates) Renders the html for our email notification.
- Parameters
template_name –
options –
certificates –
- Returns
-
lemur.plugins.lemur_email.plugin.
send_via_ses
(subject, body, targets) Attempts to deliver email notification via SES service. :param subject: :param body: :param targets: :return:
-
lemur.plugins.lemur_email.plugin.
send_via_smtp
(subject, body, targets) Attempts to deliver email notification via SMTP.
- Parameters
subject –
body –
targets –
- Returns