<% hasError = (status === 'warn' || status === 'error' || status === 'unknown') %>
<% if (hasError) { %>###
There are errors or warnings in production.<% } %> <% if (!hasError) { %>### 💯 Pre-deploy Checks Passed 💯 <% } %>
| Status | External Link | Summary |
|:-:|--|--|<% if (isRollup) { %>
| <%=trafficLightStatus(lightstep.status)%> | Monitoring Conditions | <%=lightstep.message%> |<% } else { %><% if (lightstep.context) { for (var i=0; i < lightstep.context.length; i++) { %>
| <%=conditionStatus(lightstep.context[i])%> |
<%= lightstep.context[i].name %> | value:
<%= lightstep.context[i].description %>
|<% } %><% } %>
<% if (rollbar) { %>| <%=trafficLightStatus(rollbar.status)%> | New Items in Latest Version | <%=rollbar.message%> |<% } } %>
<% if (pagerduty) { %>#### Incident Response
<%=pagerduty.message%><% } %>
<% if (hasError && isRollup) { %>
Lightstep has detected some conditions in an unknown or error state in the project.
<% lightstep.details.forEach(function(c) { %><%=c.message%> <% }) %>