webhook
Reference for the `webhook` action.
webhook· action · runnanook doc webhookfor the same content in your terminal.
POSTs alert payloads as JSON to a generic webhook URL.
Options
| Option | Type | Default | Description |
|---|---|---|---|
url | string | required 🔒 | target webhook URL |
method | enum | POST | HTTP method (one of: GET, POST, PUT, PATCH, DELETE) |
retries | string | 0 | number of retries on failure |
backoff | string | 1s | retry backoff |
Examples
Generic JSON webhook
[]
= "webhook"
[]
= "${OPS_WEBHOOK_URL}"
= 3
= 2000
Custom body shape
[]
= "webhook"
[]
= "${OPS_WEBHOOK_URL}"
= '{"text":"{{ kind }} {{ rule }} on {{ trigger.source }}"}'