Appearance
1174 - Notification Config
Multi-channel notification routing rules. This is an example of a MAML document.
maml
{
channels: {
email: {
enabled: true
provider: "postmark"
from: "notifications@adolescent-amnesty.biz"
}
slack: {
enabled: true
webhook_url: "https://hooks.slack.com/services/3eHUWJMWN1lZ1rXk6kvK"
default_channel: "#deployments"
}
sms: {
enabled: false
provider: "twilio"
}
}
# Routing rules
rules: [
{
event: "deploy_success"
channels: [
"slack"
"email"
]
priority: "low"
}
{
event: "deploy_failure"
channels: [
"slack"
"email"
"sms"
]
priority: "critical"
}
{
event: "error_spike"
channels: [
"slack"
]
priority: "high"
}
]
}