Skip to content

Commit

Permalink
[AIRFLOW-XXX] update SlackWebhookHook and SlackWebhookOperator docstr…
Browse files Browse the repository at this point in the history
…ing (apache#5074)
  • Loading branch information
youngyjd authored and Tao Feng committed Apr 10, 2019
1 parent 1a76275 commit 6d5315f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/slack_webhook_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SlackWebhookHook(HttpHook):
This hook allows you to post messages to Slack using incoming webhooks.
Takes both Slack webhook token directly and connection that has Slack webhook token.
If both supplied, http_conn_id will be used as base_url,
and webhook_token will be taken as endpoint.
and webhook_token will be taken as endpoint, the relative path of the url.
Each Slack webhook token can be pre-configured to use a specific channel, username and
icon. You can override these defaults in this hook.
Expand Down
3 changes: 2 additions & 1 deletion airflow/contrib/operators/slack_webhook_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class SlackWebhookOperator(SimpleHttpOperator):
"""
This operator allows you to post messages to Slack using incoming webhooks.
Takes both Slack webhook token directly and connection that has Slack webhook token.
If both supplied, Slack webhook token will be used.
If both supplied, http_conn_id will be used as base_url,
and webhook_token will be taken as endpoint, the relative path of the url.
Each Slack webhook token can be pre-configured to use a specific channel, username and
icon. You can override these defaults in this hook.
Expand Down

0 comments on commit 6d5315f

Please sign in to comment.