Notifications¶
Pandas-TD supports several messaging services to get you notified when your queued jobs are completed.
HipChat Notifications¶
HipChat Send Notification Token¶
- Go to your HipChat group admin page (
https://<GROUP>.hipchat.com/admin/
). - Choose “Rooms” and select your favorite room.
- Copy “API ID” in “Summary” tab.
- Select “Tokens” tab and create a new token with “Send Notification” scope.
Configure HipChat Notification¶
Define the following environment variables:
# Your email address
export TD_USER="love-pandas@example.com"
# Enable HipChat Notifier
export TD_NOTIFIER_CLASS="pandas_td.drivers.hipchat.HipChatNotifier"
# Room ID (API ID)
export TD_HIPCHAT_ROOM_ID="12345678"
# Send Notification token
export TD_HIPCHAT_TOKEN="ubyr..."
# (optional) Users to be notified
export TD_HIPCHAT_TARGETS="@me, @td-users"
Slack Notifications¶
Slack Incoming WebHooks¶
- Run Slack app and open your favorite channel.
- Choose “Add a service integration…” from channel’s menu.
- Find “Incoming WebHooks”, select a channel, and press “Add Incoming WebHooks Integration”.
- Copy “Webhook URL”.
Configure Slack Notification¶
Define the following environment variables:
# Your email address
export TD_USER="love-pandas@example.com"
# Enable Slack Notifier
export TD_NOTIFIER_CLASS="pandas_td.drivers.slack.SlackNotifier"
# Webhook URL
export TD_SLACK_WEBHOOK_URL="https://hooks.slack.com/services/..."
# (optional) Users or groups to be notified
export TD_SLACK_TARGETS="@me, @td-users"