Skip to content
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: Add custom webhook as notification option #254

Merged

Conversation

coolusaHD
Copy link
Contributor

@coolusaHD coolusaHD commented Aug 13, 2024

Add the support of custom webhooks as notification endpoint

This would be the first step to solve upptime discussions 191

It uses NOTIFICATION_WEBHOOK boolean and
NOTIFICATION_WEBHOOK_URL for the URL

Other configuration could be possible when this PR gets merged.

Thanks ✌️

@coolusaHD
Copy link
Contributor Author

👀 FYI
@AnandChowdhary

Copy link
Member

@AnandChowdhary AnandChowdhary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it makes sense to rename NOTIFICATION_WEBHOOK to NOTIFICATION_CUSTOM_WEBHOOK?

For example, for Microsoft Teams we have:

  • NOTIFICATION_TEAMS
  • NOTIFICATION_TEAMS_WEBHOOK_URL

So maybe we can make it clear that it's a custom webhook rather than a service webhook?

src/helpers/notifme.ts Outdated Show resolved Hide resolved
src/helpers/notifme.ts Outdated Show resolved Hide resolved
@AnandChowdhary
Copy link
Member

AnandChowdhary commented Aug 13, 2024

Can you also please add docs to https://github.com/upptime/upptime.js.org/blob/master/docs/notifications.md and I can merge them at the same time? Thanks a lot for your hard work on this!

coolusaHD and others added 2 commits August 13, 2024 12:25
Co-authored-by: Anand Chowdhary <[email protected]>
Co-authored-by: Anand Chowdhary <[email protected]>
@coolusaHD
Copy link
Contributor Author

@AnandChowdhary
See upptime/upptime.js.org#55

And thanks for the quick response

@AnandChowdhary AnandChowdhary merged commit ec5aeb2 into upptime:master Aug 13, 2024
@coolusaHD coolusaHD deleted the feat/custom-webhook-notification branch August 13, 2024 10:32
@upptime-bot
Copy link
Member

🎉 This PR is included in version 1.38.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants