gatus/alerting/provider
raojinlin 59842d5e88
feat(alerting): custom alert support endpoint errors (#844)
* feat(alerting): add support for including endpoint errors in custom alerts

- Updated `buildHTTPRequest` method in `AlertProvider` to accept a `result` parameter.
- Added support for including `[ENDPOINT_ERRORS]` in both the request body and URL, which will be replaced by the errors from `Result.Errors[]`.
- Adjusted `CreateExternalEndpointResult` to capture and store errors from query parameters.
- This allows custom alerts to include detailed error information, enhancing the flexibility of alert notifications.

* feat: add ENDPOINT_ERRORS example

* feat: add tests

* Refactor: code review feedback

* delete unsed errors

* Update README.md

* Apply suggestions from code review

---------

Co-authored-by: raojinlin <raojinlin302@gmail.com>
Co-authored-by: TwiN <twin@linux.com>
2024-09-17 22:26:21 -04:00
..
awsses refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
custom feat(alerting): custom alert support endpoint errors (#844) 2024-09-17 22:26:21 -04:00
discord refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
email refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
gitea feat(alerting): implement Gitea alerting provider (#842) 2024-08-21 17:51:45 -04:00
github refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
gitlab refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
googlechat refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
gotify refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
jetbrainsspace refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
matrix refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
mattermost feat(alerting): Add optional field alerting.mattermost.channel (#823) 2024-09-17 21:02:31 -04:00
messagebird refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
ntfy refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
opsgenie refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
pagerduty refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
pushover refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
slack refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
teams refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
telegram feat(alerting): add telegram overriding token and id (#826) 2024-07-27 19:05:17 -04:00
twilio refactor: Break core package into multiple packages under config/endpoint (#759) 2024-05-09 22:56:16 -04:00
zulip feat(alerting): Implement Zulip's alerts (#845) 2024-09-03 23:21:08 -04:00
provider_test.go chore: Bump module version to v5 2022-12-06 01:41:18 -05:00
provider.go feat(alerting): Implement Zulip's alerts (#845) 2024-09-03 23:21:08 -04:00