-
Notifications
You must be signed in to change notification settings - Fork 288
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
Add manual trigger support for webhooks #4934
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matiasb
added
the
release:enhancement
PR will be added to "Exciting New Features 🎉" section of release notes
label
Aug 27, 2024
matiasb
force-pushed
the
matiasb/manual-webhooks
branch
from
August 30, 2024 18:08
6298559
to
79ad2f7
Compare
teodosii
had a problem deploying
to
github-pages
September 2, 2024 09:28
— with
GitHub Actions
Error
teodosii
had a problem deploying
to
github-pages
September 2, 2024 09:28
— with
GitHub Actions
Error
teodosii
had a problem deploying
to
github-pages
September 2, 2024 09:28
— with
GitHub Actions
Error
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:30
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:30
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:30
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:42
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:42
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:42
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:53
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:53
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 2, 2024 09:53
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 3, 2024 08:19
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 3, 2024 08:19
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 3, 2024 08:19
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 3, 2024 10:16
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 3, 2024 10:16
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 3, 2024 10:16
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 4, 2024 07:14
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 4, 2024 07:14
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 4, 2024 07:14
— with
GitHub Actions
Inactive
matiasb
force-pushed
the
matiasb/manual-webhooks
branch
from
September 5, 2024 17:12
1748e30
to
32bd1a1
Compare
matiasb
had a problem deploying
to
github-pages
September 5, 2024 17:13
— with
GitHub Actions
Failure
matiasb
had a problem deploying
to
github-pages
September 5, 2024 17:13
— with
GitHub Actions
Failure
matiasb
had a problem deploying
to
github-pages
September 5, 2024 17:13
— with
GitHub Actions
Failure
teodosii
had a problem deploying
to
github-pages
September 6, 2024 09:26
— with
GitHub Actions
Failure
teodosii
had a problem deploying
to
github-pages
September 6, 2024 09:26
— with
GitHub Actions
Failure
teodosii
had a problem deploying
to
github-pages
September 6, 2024 09:26
— with
GitHub Actions
Failure
teodosii
had a problem deploying
to
github-pages
September 6, 2024 10:14
— with
GitHub Actions
Failure
teodosii
had a problem deploying
to
github-pages
September 6, 2024 10:14
— with
GitHub Actions
Failure
teodosii
had a problem deploying
to
github-pages
September 6, 2024 10:14
— with
GitHub Actions
Failure
teodosii
temporarily deployed
to
github-pages
September 6, 2024 11:15
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 6, 2024 11:15
— with
GitHub Actions
Inactive
teodosii
temporarily deployed
to
github-pages
September 6, 2024 11:15
— with
GitHub Actions
Inactive
alyssawada
approved these changes
Sep 7, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I know you mentioned that we should probably add additional documentation around this, but we can go with this for now.
brojd
pushed a commit
that referenced
this pull request
Sep 18, 2024
Related to #4748 - Added support for additional filters when getting webhooks: - `GET /api/plugins/grafana-oncall-app/resources/webhooks/?integration=CALBFV7RRDH93` (filter webhooks that are enabled for the specified integration) - `GET /api/plugins/grafana-oncall-app/resources/webhooks/?trigger_type=0` (filter webhooks with the given trigger type) - Allow triggering a Manual webhook using an alert group as context: `POST /api/plugins/grafana-oncall-app/resources/webhooks/<webhook public ID>/trigger_manual` Example payload: `{"alert_group": "I4A4I1UPSA7IC"}` (will return a 200 OK on success) --------- Co-authored-by: Rares Mardare <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #4748
GET /api/plugins/grafana-oncall-app/resources/webhooks/?integration=CALBFV7RRDH93
(filter webhooks that are enabled for the specified integration)
GET /api/plugins/grafana-oncall-app/resources/webhooks/?trigger_type=0
(filter webhooks with the given trigger type)
POST /api/plugins/grafana-oncall-app/resources/webhooks/<webhook public ID>/trigger_manual
Example payload:
{"alert_group": "I4A4I1UPSA7IC"}
(will return a 200 OK on success)