Welcome to mirror list, hosted at ThFree Co, Russian Federation.

prometheus_alert_fired_email.html.haml « notify « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cdc97d583dfed2dd04848ca94dc83d00d686d039 (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
28
29
30
31
- 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 }
%p
  = link_to(_('View alert details.'), @alert.details_url)

- 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)