diff options
Diffstat (limited to 'app/presenters/alert_management/prometheus_alert_presenter.rb')
-rw-r--r-- | app/presenters/alert_management/prometheus_alert_presenter.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/presenters/alert_management/prometheus_alert_presenter.rb b/app/presenters/alert_management/prometheus_alert_presenter.rb index 3bcc98e6784..6b8c8183f08 100644 --- a/app/presenters/alert_management/prometheus_alert_presenter.rb +++ b/app/presenters/alert_management/prometheus_alert_presenter.rb @@ -2,6 +2,12 @@ module AlertManagement class PrometheusAlertPresenter < AlertManagement::AlertPresenter + def runbook + strong_memoize(:runbook) do + payload&.dig('annotations', 'runbook') + end + end + def metrics_dashboard_url alerting_alert.metrics_dashboard_url end |