Appearance
070 - Notification Config
Multi-channel notification routing rules. This is an example of a MAML document.
maml
{
channels: {
email: {
enabled: true
provider: "mailgun"
from: "notifications@whole-pliers.name"
}
slack: {
enabled: false
webhook_url: "https://hooks.slack.com/services/BmkR2WD6on0RikU7dxbf"
default_channel: "#alerts"
}
sms: {
enabled: false
provider: "sns"
}
}
# 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"
}
]
}