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

Add endpoints to start and stop maintenance in alert receive channel … #1755

Merged

Conversation

iskhakov
Copy link
Contributor

@iskhakov iskhakov commented Apr 17, 2023

  • Added start_maintenance and stop_maintenance actions to api/internal/v1/alert_receive_channels/ POST endpoint. Use same data as in api/internal/v1/start_maintenance/ and api/internal/v1/stop_maintenance/, except alert_receive_channel_id
curl 'http://localhost:3000/api/plugin-proxy/grafana-oncall-app/api/internal/v1/alert_receive_channels/***/start_maintenance/' \
  -XPOST -H 'Content-Type: application/json' \
  --data-raw '{}' \
  --compressed
curl 'http://localhost:3000/api/plugin-proxy/grafana-oncall-app/api/internal/v1/alert_receive_channels/***/stop_maintenance/' \
  -XPOST -H 'Content-Type: application/json' \
  --data-raw '{}' \
  --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 03:15
@iskhakov iskhakov enabled auto-merge April 18, 2023 02:51
@iskhakov iskhakov changed the title [Ready] Add endpoints to start and stop maintenance in alert receive channel … Add endpoints to start and stop maintenance in alert receive channel … 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 added this pull request to the merge queue Apr 18, 2023
Merged via the queue into dev with commit 7dd7266 Apr 18, 2023
@iskhakov iskhakov deleted the iskhakov/start_stop_maintenance_from_alert_receive_channel branch April 18, 2023 03:37
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