1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
<h1>Federation Status</h1>
<div class="section">
<h2>Running Links</h2>
<div class="hider updatable">
<% if (links.length > 0) { %>
<table class="list">
<thead>
<tr>
<th>Upstream</th>
<th>URI</th>
<% if (vhosts_interesting) { %>
<th>Virtual Host</th>
<% } %>
<th>Exchange / Queue</th>
<% if (nodes_interesting) { %>
<th>Node</th>
<% } %>
<th>State</th>
<th>Inbound message rate</th>
<th>Last changed</th>
</tr>
</thead>
<tbody>
<%
for (var i = 0; i < links.length; i++) {
var link = links[i];
%>
<tr<%= alt_rows(i)%>>
<td>
<%= fmt_string(link.upstream) %>
<% if (link.type == 'exchange' &&
link.exchange != link.upstream_exchange) { %>
<sub><%= fmt_string(link.upstream_exchange) %></sub>
<% } else if (link.type == 'queue' &&
link.queue != link.upstream_queue) { %>
<sub><%= fmt_string(link.upstream_queue) %></sub>
<% } %>
</td>
<td><%= fmt_string(link.uri) %></td>
<% if (vhosts_interesting) { %>
<td><%= fmt_string(link.vhost) %></td>
<% } %>
<td>
<% if (link.type == 'exchange') { %>
<%= link_exchange(link.vhost, link.exchange) %>
<% } else { %>
<%= link_queue(link.vhost, link.queue) %>
<% } %>
<sub><%= fmt_string(link.type) %></sub>
</td>
<% if (nodes_interesting) { %>
<td><%= fmt_node(link.node) %></td>
<% } %>
<% if (link.error) { %>
<td>
<%= fmt_state('red', link.status) %>
</td>
<td></td>
<td><%= link.timestamp %></td>
</tr>
<tr>
<% if (vhosts_interesting) { %>
<td colspan="7">
<% } else { %>
<td colspan="6">
<% } %>
Error detail:
<pre><%= fmt_escape_html(link.error) %></pre>
</td>
</tr>
<% } else { %>
<td>
<%= fmt_state(link.status == 'starting' ? 'yellow' : 'green', link.status) %>
</td>
<td class="r">
<% if (link.local_channel) { %>
<%= fmt_rate(link.local_channel.message_stats, 'confirm') %>
<% } %>
</td>
<td><%= link.timestamp %></td>
</tr>
<% } %>
<% } %>
</tbody>
</table>
<% } else { %>
<p>... no links ...</p>
<% } %>
</div>
</div>
|