To create a webhook.
Input Parameters | Type | Default | Description |
---|---|---|---|
name | str | None | A unique name for the webhook. |
URL | str | None | The webhook url is used for sending notification messages. |
provider | str | None | The platform provides webhooks functionality. Only ‘SLACK’ is supported. |
client.add_webhook(
name='range_violation_channel',
url='https://hooks.slack.com/services/T9EAVLUQ5/P982J/G8ISUczk37hxQ15C28d',
provider='SLACK')
)
Return Type | Description |
---|---|
fdl.Webhook | Details of the webhook created. |
Example responses:
Webhook(uuid='df2397d3-23a8-4eb3-987a-2fe43b758b08',
name='range_violation_channel', organization_name='some_org_name',
url='https://hooks.slack.com/services/T9EAVLUQ5/P982J/G8ISUczk37hxQ15C28d',
provider='SLACK')
Add Slack webhook
Use the Slack API reference to generate a webhook for your Slack App