RackHD/on-http

View on GitHub
data/views/poller.2.0.json

Summary

Maintainability
Test Coverage
<%
    var type = _.findKey(Constants.WorkItems.Pollers, function(value) {
        return value === name;
    });
%>
{
    "id": "<%=id%>",
    "type": "<%=type.toLowerCase()%>",
    "pollInterval": <%=pollInterval%>,
    <% if (node !== null) { %>
    "node": "<%=basepath%>/nodes/<%=node%>",
    <% } else { %>
    "node": null,
    <% } %>
    "config": <%-JSON.stringify(config)%>,
    <% if (lastStarted !== null) { %>
    "lastStarted": "<%=lastStarted%>",
    <% } else { %>
    "lastStarted": null,
    <% } %>
    <% if (lastFinished !== null) { %>
    "lastFinished": "<%=lastFinished%>",
    <% } else { %>
    "lastFinished": null,
    <% } %>
    "paused": <%=paused%>,
    "failureCount": <%=failureCount%>
}