2020-09-22 08:09:39 -04:00
|
|
|
<%= _('An alert has been triggered in %{project_path}.') % { project_path: @alert.project.full_path } %>.
|
2020-03-19 20:09:29 -04:00
|
|
|
|
|
|
|
<% if description = @alert.description %>
|
|
|
|
<%= _('Description:') %> <%= description %>
|
|
|
|
<% end %>
|
|
|
|
|
2020-09-22 08:09:39 -04:00
|
|
|
<% if env_name = @alert.environment&.name %>
|
2020-03-19 20:09:29 -04:00
|
|
|
<%= _('Environment:') %> <%= env_name %>
|
|
|
|
<% end %>
|
|
|
|
|
2020-09-22 08:09:39 -04:00
|
|
|
<% if metric_query = @alert.prometheus_alert&.full_query %>
|
2020-03-19 20:09:29 -04:00
|
|
|
<%= _('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 %>
|