oncall-engine/engine/apps/alerts/models
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
..
__init__.py Remove unnecessary signal (#2030) 2023-07-25 07:21:41 +00:00
alert.py Trigger alert group signal after transaction commit (#3001) 2023-09-11 14:28:37 +00:00
alert_group.py Updates to POST /direct_paging internal API endpoint to support Grafana Incident use-cases (#3232) 2023-11-01 17:19:44 -04:00
alert_group_counter.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_log_record.py Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
alert_manager_models.py Shift Swap Requests in Slack + improve typing for Slack django app (#2653) 2023-07-28 15:11:38 +00:00
alert_receive_channel.py WIP: Direct paging improvements (#3064) 2023-09-28 03:57:49 +00:00
channel_filter.py Fix channel filter endpoint (#3192) 2023-10-25 12:33:05 +00:00
custom_button.py re-enable mypy GitHub Actions CI job (#2390) 2023-06-29 14:01:52 +00:00
escalation_chain.py re-enable mypy GitHub Actions CI job (#2390) 2023-06-29 14:01:52 +00:00
escalation_policy.py Update STEP_NOTIFY_IF_TIME step description (#2914) 2023-08-30 13:24:49 +01:00
grafana_alerting_contact_point.py Improve getting/updating contact points for Grafana Alerting integration (#2742) 2023-08-18 12:12:29 +02:00
invitation.py Trigger alert group signal after transaction commit (#3001) 2023-09-11 14:28:37 +00:00
maintainable_object.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
resolution_note.py Resolution note source mobile app (#3174) 2023-10-20 15:22:45 +01:00
user_has_notification.py World, meet OnCall! 2022-06-03 08:09:47 -06:00