Added v0.5
Send a Slack notification - such as to alert someone when a recipe is finished or if it fails.
See docs for how to create a WebHook in Slack.
run:
on_success:
- notification.slack:
web_hook: Slack WebHook
title: title
message: message
from wrangles.connectors.notification import slack
slack.run(
web_hook= 'Slack WebHook',
title='title',
message='message'
)
Parameter | Required | Data Type | Notes |
---|---|---|---|
web_hook | ✓ | str | Slack WebHook. See docs. |
title | ✓ | str | The title of the notification. |
message | ✓ | str | The body of the notification. |
if | str | A condition that will determine whether the action runs or not as a whole. |