lemur_slack package¶
lemur_slack
Module¶
plugin
Module¶
-
class
lemur.plugins.lemur_slack.plugin.
SlackNotificationPlugin
Bases:
lemur.plugins.bases.notification.ExpirationNotificationPlugin
-
additional_options
= [{'name': 'webhook', 'type': 'str', 'required': True, 'validation': '^https:\\/\\/hooks\\.slack\\.com\\/services\\/.+$', 'helpMessage': 'The url Slack told you to use for this integration'}, {'name': 'username', 'type': 'str', 'validation': '^.+$', 'helpMessage': 'The great storyteller', 'default': 'Lemur'}, {'name': 'recipients', 'type': 'str', 'required': True, 'validation': '^(@|#).+$', 'helpMessage': 'Where to send to, either @username or #channel'}]
-
author
= 'Harm Weites'
-
author_url
= 'https://github.com/netflix/lemur'
-
description
= 'Sends notifications to Slack'
-
send
(notification_type, message, targets, options, **kwargs) A typical check can be performed using the notify command: lemur notify
While we receive a targets parameter here, it is unused, as Slack webhooks do not allow dynamic re-targeting of messages. The webhook itself specifies a channel.
-
slug
= 'slack-notification'
-
title
= 'Slack'
-
version
= 'unknown'
-
-
lemur.plugins.lemur_slack.plugin.
create_certificate_url
(name)
-
lemur.plugins.lemur_slack.plugin.
create_expiration_attachments
(certificates)
-
lemur.plugins.lemur_slack.plugin.
create_rotation_attachments
(certificate)