Device Availability

<% @devices.each do |device,count| %> <% end %>
TYPE UP DOWN TOTAL
<%=device%> <%=count['up_count']%> <%=count['down_count']%> <%=count['total_count']%>

Alert Trends

Devices by Open Alert

<% @open_alerts.each do |device,detail| %> <% detail.each do |index, alert| %> <% end %> <% end %>
Host Name IP Address Device Type Count
<%=alert['host_name']%> <%=alert['ip_address']%> <%= device %> <%=alert['count']%>
<%= javascript_tag "devices = #{@devices.to_json.html_safe};" %> <%= javascript_tag "alerts = #{@alerts.to_json.html_safe};" %>