This is a Microsoft Teams bot that notifies users in a channel about opened/closed/acknowledged New Relic incidents.
Setup is simple –– you can deploy it without writing any code or configuring any files due to Standard Library's Identity Token support! The only things you need to do are to add the Standard Library bot to your Microsoft Teams organization, have a New Relic account, link those to resources, and deploy.
// Flow pending
Once you've installed the Standard Library app into your Microsoft Teams organization, click the button below to open this repo in Autocode:
You should see a screen like this:
Save your project, then open functions/events/newrelic/opened.js
in the sidebar and click the red 2 Accounts Required button in the lower right corner.
You'll then see a modal appear that will prompt you to link your New Relic Account and select a specific team within your Microsoft Teams organization where you would like to receive notifications.
Once you've linked the required resources, you can press the green Run Code button to test your endpoint. Finally, once you've verified things are working, press the blue Deploy button to deploy your project live.
That's it, you're all done! Your bot should be ready to go.
Please check out Standard Library or follow us on Twitter, @StandardLibrary.