debian-mirror-gitlab/app/views/notify/prometheus_alert_fired_email.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
788 B
Text
Raw Normal View History

2021-01-29 00:20:46 +05:30
- body = @alert.resolved? ? _('An alert has been resolved in %{project_path}.') : _('An alert has been triggered in %{project_path}.')
%p
= body % { project_path: @alert.project.full_path }
2020-04-22 19:07:51 +05:30
%p
2021-01-29 00:20:46 +05:30
= link_to(_('View alert details.'), @alert.details_url)
2020-04-22 19:07:51 +05:30
- if description = @alert.description
%p
= _('Description:')
= description
2021-01-03 14:25:43 +05:30
- if env_name = @alert.environment&.name
2020-04-22 19:07:51 +05:30
%p
= _('Environment:')
= env_name
2021-01-03 14:25:43 +05:30
- if metric_query = @alert.prometheus_alert&.full_query
2020-04-22 19:07:51 +05:30
%p
= _('Metric:')
%pre
= metric_query
- if @alert.show_incident_issues_link?
%p
= link_to(_('View incident issues.'), @alert.incident_issues_link)
- if @alert.show_performance_dashboard_link?
%p
= link_to(_('View performance dashboard.'), @alert.performance_dashboard_link)