Skip to content

Instantly share code, notes, and snippets.

@armiiller
Last active July 21, 2020 21:00
Show Gist options
  • Save armiiller/02673e1748e620321582f3b93dc8435f to your computer and use it in GitHub Desktop.
Save armiiller/02673e1748e620321582f3b93dc8435f to your computer and use it in GitHub Desktop.
# To switch the channel url the message is sent to.
rules:
- match:
alert.d_team_id: "tem_xxx" # Apps Team
actions:
- type: setval
map:
webhook_url: "https://hooks.slack.com/services/aaa/bbb/ccc" # apps channel webhook
- match:
alert.d_team_id: "tem_xxx" # Devops Team
actions:
- type: setval
map:
webhook_url: "https://hooks.slack.com/services/ddd/eee/fff" # devops channel webhook
# else, send it to the default url on the webhook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment