-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
177 lines (169 loc) · 8.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Dashboard</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dashboard.css">
<link rel="icon" href="favicon.ico">
</head>
<body>
<main role="main" class="container">
<section class="jumbotron text-center">
<div class="container">
<h1 class="jumbotron-heading">CoCeSo Dashboard</h1>
<p class="lead text-muted">
This page shows the health state of the CoCeSo system.
</p>
</div>
</section>
<div class="row">
<div class="col-md-4">
<div class="card mb-4 shadow-sm">
<div class="card-body">
<h5 class="card-title">SMS Gateway</h5>
<p class="card-text">SMS Gateway for sending alarm texts to units.</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item" data-bind="css: smsGateway.serverStateString.state">
<div class="d-flex justify-content-between align-items-center">
<span>Server State</span>
<span class="badge badge-dark" data-bind="text: smsGateway.serverStateString"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Queue</span>
<span class="badge"
data-bind="text: smsGateway.queuedString, css: smsGateway.queuedString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Outbox</span>
<span class="badge"
data-bind="text: smsGateway.outboxString, css: smsGateway.outboxString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Sent</span>
<span class="badge"
data-bind="text: smsGateway.sentString, css: smsGateway.sentString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Error</span>
<span class="badge"
data-bind="text: smsGateway.errorString, css: smsGateway.errorString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Inbox</span>
<span class="badge"
data-bind="text: smsGateway.inboxString, css: smsGateway.inboxString.state"></span>
</div>
</li>
</ul>
</div>
</div>
<div class="col-md-4">
<div class="card mb-4 shadow-sm">
<div class="card-body">
<h5 class="card-title">TETRA Gateway</h5>
<p class="card-text">TETRA Gateway for sending alarm texts to units per SDS text message.</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item" data-bind="css: tetraGateway.serverStateString.state">
<div class="d-flex justify-content-between align-items-center">
<span>Server State</span>
<span class="badge badge-dark" data-bind="text: tetraGateway.serverStateString"></span>
</div>
</li>
<li class="list-group-item" data-bind="css: tetraGateway.tetraRadioStateString.state">
<div class="d-flex justify-content-between align-items-center">
<span>TETRA Radio State</span>
<span class="badge badge-dark" data-bind="text: tetraGateway.tetraRadioStateString"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Queue</span>
<span class="badge"
data-bind="text: tetraGateway.queuedString, css: tetraGateway.queuedString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Sending</span>
<span class="badge"
data-bind="text: tetraGateway.sendingString, css: tetraGateway.sendingString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Waiting for ACK</span>
<span class="badge"
data-bind="text: tetraGateway.waitingForAckString, css: tetraGateway.waitingForAckString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Sent</span>
<span class="badge"
data-bind="text: tetraGateway.sentString, css: tetraGateway.sentString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Failed</span>
<span class="badge"
data-bind="text: tetraGateway.failedString, css: tetraGateway.failedString.state"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Inbox</span>
<span class="badge"
data-bind="text: tetraGateway.inboxString, css: tetraGateway.inboxString.state"></span>
</div>
</li>
</ul>
</div>
</div>
<div class="col-md-4">
<div class="card mb-4 shadow-sm">
<div class="card-body">
<h5 class="card-title">CoCeSo Backend</h5>
<p class="card-text">The backend server of CoCeSo (Tomcat Application).</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item" data-bind="css: backendStatistics.serverStateString.state">
<div class="d-flex justify-content-between align-items-center">
<span>Server State</span>
<span class="badge badge-dark" data-bind="text: backendStatistics.serverStateString"></span>
</div>
</li>
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center">
<span>Latency (ms)</span>
<span class="badge"
data-bind="text: backendStatistics.latencyString, css: backendStatistics.latencyString.state"></span>
</div>
</li>
</ul>
</div>
</div>
</div>
</main>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/knockout-3.4.2.js"></script>
<script src="conf/endpoint.js"></script>
<script src="conf/dashboardConfiguration.js"></script>
<script src="js/dashboard.js"></script>
</body>
</html>