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

refactor: remote graphite trigger validation #1127

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

AleksandrMatsko
Copy link
Member

PR Summary

Before this PR when you tried to create/update trigger on graphite-remote metric source, you received response with status code 503 on any error from graphite.

Now you will get 503 only if graphite returns 401, 502, 503, 504. Otherwise, you will get 400.

Affects endpoints:

  • PUT /api/trigger
  • PUT /api/trigger/check
  • PUT /api/trigger/{triggerID}

Relates to #1085
Closes #620

@AleksandrMatsko AleksandrMatsko marked this pull request as ready for review November 27, 2024 07:56
@AleksandrMatsko AleksandrMatsko requested a review from a team as a code owner November 27, 2024 07:56
kissken
kissken previously approved these changes Nov 27, 2024
api/handler/triggers.go Outdated Show resolved Hide resolved
Tetrergeru
Tetrergeru previously approved these changes Nov 28, 2024
Co-authored-by: Tetrergeru <[email protected]>
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.

Trigger target validation return 500 on wrong function names
3 participants