Skip to content

Alerts

Examples

A distribution that uses email and Slack channels

{
    "list_id": "network-alerts",
    "name": "Network alerts",
    "channels": {
        "email": {
            "template": "https://abc.s3.amazonaws.com/capacity-alert.html",
            "addresses": [
                "project-managers@abc.com",
                "development-team@abc.com"
            ]
        },
        "slack": {
            "configs": [
                {
                    "channel": "#alerts",
                    "webhook": "https://hooks.slack.com/services/xxx/xxx",
                    "name": "Company Slack account"
                }
            ]
        }
    }
}

A trigger alert request providing a Slack-specific title

{
    "distribution_list": "network-alerts",
    "context": {
        "title": "Failed to establish a new connection",
        "error_message": "nodename nor servname provided, or not known"
    },
    "channel_context": {
        "slack": {
            "title": "[Slack specific title] Connection error"
        }
    }
}