Last active
July 21, 2020 21:00
-
-
Save armiiller/02673e1748e620321582f3b93dc8435f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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