If you need to reference existing alert channels that were created outside of your CLI project, use
fromId().Configuration
- Webhook Alert Channel
- General Alert Channel
Configure webhook-specific settings:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | URL | ✅ | - | Target URL for the webhook request |
method | string | ✅ | - | HTTP method: GET | POST | PUT | PATCH | HEAD | DELETE |
name | string | ❌ | - | Friendly name for the webhook channel |
template | string | ❌ | - | Request body template with Handlebars-style variables |
headers | array | ❌ | [] | Array of { key, value } objects for HTTP headers |
queryParameters | array | ❌ | [] | Array of { key, value } objects for query parameters |
webhookSecret | string | ❌ | '' | Value to use as secret for the webhook |
Webhook Alert Channel Options
Target URL for the webhook request.
The HTTP method, either
GET, POST, PUT, PATCH, HEAD or DELETE.Friendly name for the webhook channel.
The request body template, usually JSON. You can use Handlebars-style template variables to add custom data to the template.
An array of
{ key, value } objects to define HTTP headers.An array of
{ key, value } objects to define query parameters.Secret token that you can use to validate the authenticity of the webhook and its payload. Learn more about webhook secrets.
General Alert Channel Options
These options are valid for all alert channels types.Whether to send notifications when checks recover from a failed or degraded state. Default value is
true.Whether to send notifications when checks become degraded. Default value is
false.Whether to send notifications when a SSL/TLS certificate is about to expire. Default value is Learn more about SSL alerts.
false.Number of days before the SSL/TLS certificate expiry date to send notifications. Only relevant when Learn more about SSL alerts.
sslExpiry is enabled. Default value is 30.