Skip to content

Support environment for generic alerts in new alert payload class

Sarah Yasonik requested to merge sy-integrate-generic-environments into master

What does this MR do?

!38971 (merged) added new classes to manage alert payloads, but they're not 100% utilized yet. While migrating onto these new classes, subclasses in Gitlab::AlertManagement::Payload should stay in sync with Gitlab::Alerting::Alert, AlertManagement::AlertPresenter, Gitlab::Alerting::NotificationPayloadParser, AlertManagement::PrometheusAlertPresenter, etc.

!39785 (merged) added support for looking up an environment for alerts generated through our generic alert endpoint. That update was merged just before !38971 (merged), so !38971 (merged) didn't include the changes.

This MR adds environment support for generic alerts to the new payload classes.

Refs #239029 (closed)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Peter Leitzen

Merge request reports