Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
display health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Feb 24, 2014
1 parent d5f109b commit eb5253a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
35 changes: 27 additions & 8 deletions loadsweb/templates/index.tmpl
Expand Up @@ -9,9 +9,15 @@
<h3 id="active-title">Active Runs</h3>
%if len(runs) > 0:
%for index, (started, fqn, run_id, info) in enumerate(runs):
<div id="run-{{run_id}}">
<a href="/run/{{run_id}}"><span class="status yellow"></span>{{fqn}}</a>
</div>
%if fqn.endswith('test_health'):
<div id="run-{{run_id}}">
<a href="/run/{{run_id}}"><span class="status yellow"></span>Health Check</a>
</div>
%else:
<div id="run-{{run_id}}">
<a href="/run/{{run_id}}"><span class="status yellow"></span>{{fqn}}</a>
</div>
%end
%end
%else:
<span id="norun">
Expand All @@ -33,11 +39,24 @@
</thead>
<tbody id="stored">
%for index, (started, fqn, run_id, info) in enumerate(inactives):
<tr id="inactive-{{run_id}}" class="{{info['counts']['success'] and 'green' or 'red'}}">
<td><a href="/run/{{run_id}}"><span class="status {{info['counts']['success'] and 'green' or 'red'}}"></span>{{fqn}}</a></td>
<td>{{info['counts']['elapsed']}}</td>
<td>{{info['counts']['finished']}} ago</td>
</tr>
%if fqn.endswith('test_health'):
<tr id="inactive-{{run_id}}" class="{{info['counts']['success'] and 'green' or 'red'}}">
<td>
<a href="/run/{{run_id}}"><span class="status {{info['counts']['success'] and 'green' or 'red'}}"></span>Health Check</a>
</td>
<td>{{info['counts']['elapsed']}}</td>
<td>{{info['counts']['finished']}} ago</td>
</tr>

%else:
<tr id="inactive-{{run_id}}" class="{{info['counts']['success'] and 'green' or 'red'}}">
<td>
<a href="/run/{{run_id}}"><span class="status {{info['counts']['success'] and 'green' or 'red'}}"></span>{{fqn}}</a>
</td>
<td>{{info['counts']['elapsed']}}</td>
<td>{{info['counts']['finished']}} ago</td>
</tr>
%end
%end
</tbody>
</table>
Expand Down
5 changes: 4 additions & 1 deletion loadsweb/templates/run.tmpl
Expand Up @@ -9,8 +9,11 @@
</div>
%end


%if fqn.endswith('test_health'):
<p>Health Check. Loads runs a dummy test across all agents to verify that the cluster is healthy.</p>
%else:
<p>Testing <strong>{{info['metadata']['fqn']}}</strong></p>
%end

<dl id="summary">

Expand Down

0 comments on commit eb5253a

Please sign in to comment.