-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: supports new notifier_id attribute in alert configuration notifications #1514
Conversation
…tance tests are run in CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test are failing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small nits here and there!
@@ -226,13 +230,13 @@ Notifications to send when an alert condition is detected. | |||
- `WEBHOOK` | |||
- `MICROSOFT_TEAMS` | |||
|
|||
* `notifier_id` - The notifier id is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `notifier_id` - The notifier id is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials. | |
* `notifier_id` - The notifier id is a system-generated unique identifier assigned to each notification method. This is needed to update third-party notifications without explicit authentication credentials. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that this was copied directly from our API docs (https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Alert-Configurations/operation/createAlertConfiguration within notifications), would it be better to leave as is for consistency?
Description
Jira ticket: INTMDB-981
Adds support for new
notifier_id
attribute in alert configuration notifications. The use case of this attribute is to enable updates of third party notifications without having to provide the original credentials associated to the notification.Depends on: mongodb/go-client-mongodb-atlas#516
Type of change:
Required Checklist:
Further comments
Testing with local build
Import and modify existing pager duty alert notification
Create pager duty alert configuration using UI:
![Screenshot 2023-10-09 at 11 35 43](https://private-user-images.githubusercontent.com/20469408/273594155-4466ac7f-f550-4573-a1bc-21b52ce00c35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MjY5NjMsIm5iZiI6MTcxODkyNjY2MywicGF0aCI6Ii8yMDQ2OTQwOC8yNzM1OTQxNTUtNDQ2NmFjN2YtZjU1MC00NTczLWExYmMtMjFiNTJjZTAwYzM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDIzMzc0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlNTlkMWZmZTg3MDQwY2U1OWY4MWJmMDMwNmUxYWZkZTM3NGE1ODA1ZDJmN2RiY2E1YWQyODcxMDlhY2E0ZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KCocUwRHj_7Dl208xLymYtxVsbxs3pW2RJit-AgBHk4)
Making use of "alert_configurations" data source, imported the created notification defining the
notifier_id
attribute and modifying another attribute (in this casedelay_min
).Applying changes successfully:
UI displayed update alert notification:
![Screenshot 2023-10-09 at 12 12 36](https://private-user-images.githubusercontent.com/20469408/273595467-b9f42b26-b99f-4350-9832-3e1162f9cb21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MjY5NjMsIm5iZiI6MTcxODkyNjY2MywicGF0aCI6Ii8yMDQ2OTQwOC8yNzM1OTU0NjctYjlmNDJiMjYtYjk5Zi00MzUwLTk4MzItM2UxMTYyZjljYjIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDIzMzc0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0MGJmZjE5NTg4NTg5Y2Q4ODljODA3MzMwM2FiM2IyMTYwYjI4Yjc4Yjk4OTAzMjVmNDFhNGRmZTY0NjNmYmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zl5xLoTnzlJ_B_s_Qkscd4bnojMsgnjPaHOc4xROLro)