-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for multiple chat rooms
A new required query param (`room_name`) is introduced in `/create` POST call. This is for routing alerts to different teams based on the alertmanager config. The `room_name` must be additionally configured in `config.toml`, which has information about `notification_url` of the room.
- Loading branch information
Showing
8 changed files
with
57 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
- [x] Add route for inserting new alert | ||
- [x] Add route for inserting new alert | ||
|
||
- [x] Parse alertmanager reponse | ||
- [x] Parse alertmanager reponse | ||
|
||
- [x] Add example payload - curl script | ||
- [x] Add example payload - curl script | ||
|
||
- [x] Log only errors (unix philosophy) | ||
- [x] Log only errors (unix philosophy) | ||
|
||
- [x] Response check from google chat | ||
- [x] Response check from google chat | ||
|
||
- [x] Gomod | ||
- [x] Gomod | ||
|
||
- [x] Refactor to new name | ||
- [x] Refactor to new name | ||
|
||
- [ ] Add tests | ||
- [ ] Add tests | ||
|
||
- [x] Use middleware to pass around args/context/return err signature instead of naked returns (ugly! *must fix) | ||
- [x] Use middleware to pass around args/context/return err signature instead of naked returns (ugly! \*must fix) | ||
|
||
- [ ] Create a package | ||
- [ ] Create a package | ||
|
||
- [x] Goreleaser binary | ||
- [x] Goreleaser binary | ||
|
||
- [x] Images (Google chat instructions + bot usage (gif) + Logo) | ||
- [x] Images (Google chat instructions + bot usage (gif) + Logo) | ||
|
||
- [x] Add documentation + comments everywhere | ||
- [x] Add documentation + comments everywhere | ||
|
||
- [x] Add License, CoC, CONTRIBUTION.md | ||
- [x] Add License, CoC, CONTRIBUTION.md | ||
|
||
- [ ] Add metrics handler (feature request) | ||
- [ ] Add metrics handler (feature request) | ||
|
||
- [ ] Add verbose mode (optional, low priority) | ||
- [ ] Add verbose mode (optional, low priority) | ||
|
||
- [x] Add support for chat room param, so people can use multiple chat rooms based on alertmanager config (DUH! How could I possibly miss this) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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