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

Allow use of dynamic payloads in alert receive channels preview templ… #1756

Merged
merged 7 commits into from
Apr 18, 2023

Conversation

iskhakov
Copy link
Contributor

@iskhakov iskhakov commented Apr 17, 2023

…ate in private api

  • Add payload field to api/internal/v1/alert_receive_channels/***/preview_template/ POST endpoint
curl 'http://localhost:3000/api/plugin-proxy/grafana-oncall-app/api/internal/v1/alert_receive_channels/***/preview_template/' \
  -H 'Content-Type: application/json' \
  --data-raw '{"template_name":"web_title_template","template_body":"{{ payload.foo }}", "payload": {"foo": "bar"}}' \
  --compressed

What this PR does

Which issue(s) this PR fixes

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@iskhakov iskhakov requested a review from a team April 17, 2023 04:04
@iskhakov iskhakov changed the title Allow use of dynamic payloads in alert receive channels preview templ… [Ready] Allow use of dynamic payloads in alert receive channels preview templ… Apr 17, 2023
@iskhakov iskhakov changed the title [Ready] Allow use of dynamic payloads in alert receive channels preview templ… Allow use of dynamic payloads in alert receive channels preview templ… Apr 18, 2023
@iskhakov iskhakov added the pr:no public docs Added to a PR that does not require public documentation updates label Apr 18, 2023
@iskhakov iskhakov enabled auto-merge April 18, 2023 03:13
@iskhakov iskhakov added this pull request to the merge queue Apr 18, 2023
Merged via the queue into dev with commit 5da5b8d Apr 18, 2023
@iskhakov iskhakov deleted the iskhakov/dynamic-payload-integrations-template-preview branch April 18, 2023 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants