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

28 lines
639 B
Text
Raw Normal View History

2020-04-22 19:07:51 +05:30
%p
2021-01-03 14:25:43 +05:30
= _('An alert has been triggered in %{project_path}.') % { project_path: @alert.project.full_path }
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)