Skip to content

#30 - Added script to bulk import notifications from UI into Monte Carlo YAML template#31

Open
kunaljubce wants to merge 1 commit intomonte-carlo-data:mainfrom
kunaljubce:add-code-to-bulk-import-notifications
Open

#30 - Added script to bulk import notifications from UI into Monte Carlo YAML template#31
kunaljubce wants to merge 1 commit intomonte-carlo-data:mainfrom
kunaljubce:add-code-to-bulk-import-notifications

Conversation

@kunaljubce
Copy link

@kunaljubce kunaljubce commented Jul 30, 2023

We can create Notifications from UI directly as well as YAML. However, for accounts that already have a lot of notifications created from UI, it can be tedious to have to manually create the YAML for each notification. This PR aims to provide a script that, when executed with the MCD_DEFAULT_API_ID and MCD_DEFAULT_API_TOKEN will automatically generate a Monte Carlo compatible YAML file, which can then be deployed using the montecarlo monitors apply command.

Prerequisites to run the code -
Export MCD_DEFAULT_API_ID and MCD_DEFAULT_API_TOKEN values in the ~/.zshrc or ~/.bashrc files for Mac or Linux respectively. Alternately for Windows, these two credentials can be added to the environment variables.

@kunaljubce
Copy link
Author

@lgavish @bheltzel @glencwillis @melissa-hale Request your review comments on this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant