summaryrefslogtreecommitdiff
path: root/app/views/notify/prometheus_alert_fired_email.text.erb
blob: 8853f2a317be21786e6a91a18bb7f784b0b9c1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<%= _('An alert has been triggered in %{project_path}.') % { project_path: @alert.project.full_path } %>.

<% if description = @alert.description %>
<%= _('Description:') %> <%= description %>
<% end %>

<% if env_name = @alert.environment&.name %>
<%= _('Environment:') %> <%= env_name %>
<% end %>

<% if metric_query = @alert.prometheus_alert&.full_query %>
<%= _('Metric:') %> <%= metric_query %>
<% end %>

<% if @alert.show_incident_issues_link? %>
<%= _('View incident issues.') %> <%= @alert.incident_issues_link %>
<% end %>

<% if @alert.show_performance_dashboard_link? %>
<%= _('View the performance dashboard at') %> <%= @alert.performance_dashboard_link %>
<% end %>