Cloud Alerts

Create notification channel

post/triggers/notificators/

Add a notification channel (email, Slack, or Discord) that Cloud Alerts can send notifications to.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Cuerpo de la petición

application/jsonObligatorio
name*string
Rango1 ≤ length ≤ 255
type*NotificatorType
Valores"slack""email""discord"
config?record<string, any>

Channel settings. Slack and Discord require an HTTPS webhook_url; email needs no settings.

enabled?boolean
Por defectotrue

Respuestas

Successful Response

application/json

id*string
name*string
type*NotificatorType
Valores"slack""email""discord"
config*record<string, any>
enabled*boolean
created_at*string
Formatodate-time
updated_at*string
Formatodate-time