2021-01-29 00:20:46 +05:30
|
|
|
<% body = @alert.resolved? ? _('An alert has been resolved in %{project_path}.') : _('An alert has been triggered in %{project_path}.') %>
|
|
|
|
|
|
|
|
<%= body % { project_path: @alert.project.full_path } %>
|
|
|
|
<%= _('View alert details at') %> <%= @alert.details_url %>
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
<% if description = @alert.description %>
|
|
|
|
<%= _('Description:') %> <%= description %>
|
|
|
|
<% end %>
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
<% if env_name = @alert.environment&.name %>
|
2020-04-22 19:07:51 +05:30
|
|
|
<%= _('Environment:') %> <%= env_name %>
|
|
|
|
<% end %>
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
<% if metric_query = @alert.prometheus_alert&.full_query %>
|
2020-04-22 19:07:51 +05:30
|
|
|
<%= _('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 %>
|