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

Rebased main onto "Capture and expose notification delivery errors (#31)" #48

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

grobinson-grafana
Copy link

@grobinson-grafana grobinson-grafana commented Sep 11, 2023

What this PR is

This pull request is an updated version of #31 that fixes conflicts and failing tests that have occurred as a result of changes to Alertmanager in the last 9 months. There were a number of conflicts that I had to fix, including a new test called TestGetReceiversHandler as #31 uses a different field in the API struct for GET /api/v2/receivers. It should otherwise be equivalent to #31, but please review with care.

This PR makes it possible to store the last error for each receiver in case of notification delivery failure. These errors are exposed via the `/api/v2/receivers` endpoint.

Co-authored-by: gotjosh <[email protected]>
@grobinson-grafana grobinson-grafana changed the title Capture and expose notification delivery errors (#31) Rebased main onto "Capture and expose notification delivery errors (#31)" Sep 13, 2023
@santihernandezc santihernandezc self-requested a review September 13, 2023 20:58
Copy link

@santihernandezc santihernandezc left a comment

Choose a reason for hiding this comment

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

I reviewed the changes, ran all the tests locally, checked the generated spec, built the binary and checked the api/v2/receivers endpoint and everything looks great 👍

@grobinson-grafana grobinson-grafana merged commit 3513be6 into main Sep 18, 2023
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.

2 participants