oncall-engine/engine/apps
Joey Orlando f905ac5246
Updates to POST /direct_paging internal API endpoint to support Grafana Incident use-cases (#3232)
# What this PR does

- Add a new column, `grafana_incident_id`, to the `AlertGroup` model.
For now this is really just needed to determine if the Alert Group was
created, via a Direct Page, that originated from Grafana Incident.
- I understand that these IDs may be cluster specific. For now we will
not need to make OnCall backend -> Incident API calls. Should we need to
start doing this we will likely need to start syncing the Incident
plugin's provisioned API url into the `organization` in OnCall, such
that we make the API call to the right Incident backend.
- Add two new optional request body parameters to `POST /direct_paging`,
`source_url` and `grafana_incident_id`
- `source_url` - will easily allow Grafana Incident to specify the URL
to the Incident and have this populate the "Source" button
- `grafana_incident_id` - Grafana Incident can specify this such that we
have a link back to Incident (+ we know that the Alert Group was
generated from Incident)
- Hide the "Declare Incident" button in the UI if the Alert Group was
generated from Grafana Incident

## 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)
2023-11-01 17:19:44 -04:00
..
alerts Updates to POST /direct_paging internal API endpoint to support Grafana Incident use-cases (#3232) 2023-11-01 17:19:44 -04:00
api Updates to POST /direct_paging internal API endpoint to support Grafana Incident use-cases (#3232) 2023-11-01 17:19:44 -04:00
api_for_grafana_incident Add render_for_web information to alert group incident API (#3005) 2023-09-12 12:02:42 +00:00
auth_token Return API URL as part of status (#2791) 2023-08-22 17:17:26 +00:00
base WIP: Direct paging improvements (#3064) 2023-09-28 03:57:49 +00:00
email Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
grafana_plugin Add labels implementation for integration (#3014) 2023-10-20 07:30:11 +00:00
heartbeat Use periodic task for heartbeats (#2723) 2023-08-10 02:25:00 +00:00
integrations Fixing ratelimit texts 2023-09-27 14:18:00 +03:00
labels Add labels implementation for integration (#3014) 2023-10-20 07:30:11 +00:00
metrics_exporter Fix metrics and dashboard (#2895) 2023-08-29 13:52:24 +00:00
mobile_app "Going oncall" notification settings (#3187) 2023-10-30 13:44:18 +00:00
oss_installation Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
phone_notifications Re-enable a few mypy rules + fix existing errors (#2725) 2023-08-03 09:43:03 +00:00
public_api remove all references to deprecated AlertGroup.is_restricted field (#3228) 2023-10-31 20:10:45 +00:00
schedules add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
slack fix RBAC authz issue for Slack Alert Group actions (#3213) 2023-10-30 09:48:54 -04:00
social_auth Upgrade to django 4.2.6 and other deps updates (#3176) 2023-10-27 18:45:00 +00:00
telegram Fix "Replied message not found" Telegram bug (#3013) 2023-09-12 15:55:13 +00:00
twilioapp add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
user_management add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
webhooks Allow deletion for removed presets (#3072) 2023-09-27 10:21:55 -06:00
zvonok add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00