summaryrefslogtreecommitdiff
path: root/app/views/notify/prometheus_alert_fired_email.html.haml
blob: 75ba66b44f9f271d6432c295a0ea4d7c77bdf7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%p
  = _('An alert has been triggered in %{project_path}.') % { project_path: @alert.project.full_path }

- if description = @alert.description
  %p
    = _('Description:')
    = description

- if env_name = @alert.environment&.name
  %p
    = _('Environment:')
    = env_name

- if metric_query = @alert.prometheus_alert&.full_query
  %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)