-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
226 lines (212 loc) · 6.44 KB
/
index.html
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Frenzy Bunnies Web</title>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css" media="all">
body{
padding-top: 40px;
height:100%;
}
h1{
margin-top: 1.5em;
}
.prop-label, .job-detail .prop-value{
color: #a8a8a8;
}
.job-detail{
float: left;
width: 20em;
}
.job-detail .name, .job-results .prop-value{
font-size: 2em;
}
.job-results{
float:left;
text-align: center;
}
.job-results > div {
margin-left: 1em;
}
.job-results .prop-label, .job-detail .time{
color: #a8a8a8;
}
.job-failed, .job-passed{
display:inline-block;
}
.job-failed .prop-value{
color: red;
}
.job-passed .prop-value{
color: green;
}
#heap-usage-detail{
list-style: none;
padding: 0;
display: block;
overflow: auto;
margin: 2em 10px 0 0;
}
#heap-usage-detail li {
margin-top: 2em;
float: left;
text-align: center;
}
#heap-usage-detail .prop-value{
font-size: 2em;
margin:1em;
padding: 0.5em;
}
#heap-usage-detail .prop-label{
margin-top: 2em;
color: #a8a8a8;
}
#heap-usage-detail{
clear:both;
}
.sub-h3{
margin-top: -1.5em;
margin-bottom: 1.5em;
}
.thread-name{
font-size: 1.5em;
text-overflow: ellipsis;
width: 200px;
white-space: nowrap;
overflow: hidden;
}
.thread-name .state{
font-size:0.5em;
}
.state.NEW{
background-color: #ddd
}
.state.RUNNABLE{
background-color:#468847;
}
.state.BLOCKED{
background-color:#000;
}
.state.WAITING{
}
.state.TIMED_WAITING{
}
.state.TERMINATED{
background-color: red;
}
</style>
<script id="tmpl-job" type="text/template">
<div class="job-detail">
<h3><%= name %></h3>
<div class="sub-h3">
<span class="prop-label">Up for</span>
<span class="prop-value"><%= jQuery.timeago(new Date(stats.since*1000)) %></span>
</div>
</div>
<div class="job-results">
<div class="job-failed">
<h3 class="prop-value"><%= stats.failed %></h3>
<div class="prop-label sub-h3">Failed</div>
</div>
<div class="job-passed">
<h3 class="prop-value"><%= stats.passed %></h3>
<div class="prop-label sub-h3">Passed</div>
</div>
</div>
</script>
<script id="tmpl-health" type="text/template">
<h1>Health</h1>
<h3>JVM</h3>
<div class="prop-label sub-h3">Up for <%= jQuery.timeago(new Date() - new Date(jvm_uptime_ms)) %></div>
<article id="heap-usage">
<ul id="heap-usage-detail">
<li>
<span class="prop-value label label-warning"><%= heap_usage_used_bytes %></span>
<div class="prop-label">Used<div>
</li>
<li>
<span class="prop-value label label-success"><%= heap_usage_committed_bytes %></span>
<div class="prop-label">Committed</div>
</li>
<li>
<span class="prop-value label label-inverse"><%= heap_usage_max_bytes %></span>
<div class="prop-label">Max<div>
</li>
</ul>
</article>
<article id="jvm-updtime">
</article>
<h3>Threads</h3>
<div class="prop-label sub-h3"><%= threads.length %> thread(s) running</div>
<article id="threads">
<% _.each(threads, function(thread) { %>
<div class="thread">
<div class="thread-name span4" title="<%= thread.name %>">
<%= thread.name %><br/>
<span class="label state <%=thread.state%>"><%= thread.state %></span>
</div>
<div class="thread-stack span8">
<% _.each(thread.stack_trace, function(fragment, i) { %>
<% fragment_el = ellipsis(fragment, 80); %>
<% if(i < 2) { %>
<div class="thread-stack-fragment" title="<%= fragment %>">
<%= fragment_el %>
</div>
<% } else if(i == 2) { %>
<div class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="<%= fragment %>"><%= fragment_el %> <b class="caret"></b></a>
<ul class="dropdown-menu">
<% } else if ( i < thread.stack_trace.length-1 ) { %>
<li><a href="#" title="<%= fragment %>"><%= fragment_el %></a></li>
<% } else { %>
</ul></div>
<% } %>
<% }); %>
</div>
</div>
<% }); %>
</article>
</script>
</head>
<link rel="" href="" title="" type="" />
<body data-spy="scroll" data-offset="40">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">FrenzyBunnies/<em>Web</em></a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="#jobs-s">Jobs</a></li>
<li><a href="#health-s">Health</a></li>
</ul>
</div>
</div>
</div>
</div>
<section id="jobs-s">
<div class="container">
<div class="row span12" id="jobs">
<h1>Jobs</h1>
<div id="job-list"></div>
</div>
</div>
</section>
<section id="health-s">
<div class="container">
<div class="row span12" id="health">
</div>
</div>
</section>
<footer>
<p>© Company 2012</p>
</footer>
</div> <!-- /container -->
<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery.filesize.js"></script>
<script type="text/javascript" src="js/jquery.timeago.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/underscore-min.js"></script>
<script type="text/javascript" src="js/backbone-min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>