aboutsummaryrefslogtreecommitdiffstats
path: root/test/monitoring/monitor.html
blob: 83807bcd8552c618d0e5e612380b2d579e3f6c77 (plain)
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
<html>
<head>
<!--
 * Copyright (C) 2017, 2018 "IoT.bzh"
 * Author: José Bollo <jose.bollo@iot.bzh>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->
    <title>Monitoring</title>
    <link href="monitor-base.css" rel="stylesheet">
    <link href="monitor-demo.css" rel="stylesheet" title="demo">
    <link href="monitor-pastel.css" rel="alternate stylesheet" title="pastel">
    <script type="text/javascript" src="underscore-min.js"></script>
    <script type="text/javascript" src="AFB.js"></script>
    <script type="text/javascript" src="monitor.js"></script>

<body id="root" class="-flex-v on" onload="init();">
  <div id="head" class="clearfix">
    <div id="logo"></div>
    <div id="connected">Not Connected</div>
    <div id="title">Monitoring</div>
  </div>
  <div id="work" class="-flex-fill -flex-h">
    <div id="controls" class="-box-out">
      <div class="-box-in">
        <div id="all" class="api opened" data-api="*">
          <div class="opclo"></div>
          <div class="name">{ALL}</div>
          <div class="desc">Settings for all</div>
          <hr>
          <div class="verbosity">placeholder</div>
          <hr class="closedoff">
          <div class="closedon">traces...</div>
          <div class="trace closedoff"></div>
        </div>
        <div id="common" class="api" data-api="">
          <div class="name">{COMMON}</div>
          <div class="desc">Settings without apis</div>
          <hr>
          <div class="verbosity">placeholder</div>
        </div>
        <div id="apis">
        </div>
      </div>
    </div>
    <div id="middle" class="-flex-v">
      <div id="params" class="clearfix">
        <div>host: <input type="text" id="param-host" size="50" value="localhost"></input></div>
        <div>port: <input type="text" id="param-port" size="10" value="1234"></input></div>
        <div>token: <input type="text" id="param-token" size="33" value="HELLO"></input></div>
      </div>
      <div class="-flex-fill -box-out">
        <div id="trace-events" class="-box-in">
        </div>
      </div>
    </div>

      <div id="menu" class="-flex-v">
        <div id="connect" class="x-button">Connect</div>
        <div id="disconnect" class="x-button">Disconnect</div>
        <div id="style" class="x-button">style</div>
        <div id="autoscroll" class="x-button">Stop scroll</div>
        <div id="addsep" class="x-button">Add separator</div>
        <div id="droptracevts" class="x-button">Clear traces</div>
        <div id="experts" class="x-button closed">
          <div class="opclo"></div>
          {EXPERTS}
        </div>
        <div id="expert-pane" class="-flex-fill -flex-v">
          <div id="stopmsgs" class="x-button">Stop logs</div>
          <div id="dropmsgs" class="x-button">Clear logs</div>
          <div class="-flex-fill -box-out">
              <div id="logmsgs" class="-box-in"></div>
          </div>
        </div>
      </div>
  </div>

<!-- template for APIS -->
  <template id="t-api">
    <div class="api closed" data-api="">
      <div class="opclo"></div>
      <div class="name"></div>
      <div class="desc"></div>
      <div class="closedoff">
        <hr>
        <div class="verbosity">placeholder</div>
        <hr>
        <div class="closed">
          <div class="opclo"></div>
          <div class="closedon">verbs...</div>
          <div class="verbs closedoff"></div>
        </div>
        <div class="closed">
          <div class="opclo"></div>
          <div class="closedon">traces...</div>
          <div class="trace closedoff"></div>
        </div>
      </div>
    </div>
  </template>

<!-- template for VERBS of APIS -->
  <template id="t-verb">
    <div class="verb" data-verb="">
      <div class="vdsc">
        <span class="name"></span>
        <span class="colon">:</span>
        <span class="desc"></span>
      </div>
      <div class="perm"></div>
    </div>
  </template>

<!-- template for ERRORS -->
  <template id="t-logmsg">
    <div class="logmsg">
      <div class="close"></div>
      <div class="tag"></div>
      <div class="content"></div>
    </div>
  </template>

<!-- template for VERBOSITY -->
  <template id="t-verbosity">
    <div class="verbosity">
      <span>Verbosity:</span>
      <select class="select">
        <option value="error">error</option>
        <option value="warning">warning</option>
        <option value="notice">notice</option>
        <option value="info">info</option>
        <option value="debug">debug</option>
      </select>
    </div>
  </template>

<!-- template for TRACE -->
  <template id="t-trace">
    <div class="trace closedoff">
      <div class="trace-box request" data-trace="request">
        <div class="trace-title">trace requests: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbreq">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="common">common</input></div>
        <div class="trace-item"><input type="radio" value="extra">extra</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
      <div class="trace-box service" data-trace="service">
        <div class="trace-title">trace service call: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbservice">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
      <div class="trace-box daemon" data-trace="daemon">
        <div class="trace-title">trace daemon: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbdaemon">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="common">common</input></div>
        <div class="trace-item"><input type="radio" value="extra">extra</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
      <div class="trace-box event" data-trace="event">
        <div class="trace-title">trace events: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbevent">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="common">common</input></div>
        <div class="trace-item"><input type="radio" value="extra">extra</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
      <div class="trace-box global" data-trace="global">
        <div class="trace-title">trace globals:</div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
    </div>
  </template>

<!-- template for EVENTS -->
  <template id="t-traceevent">
    <div class="traceevent closed">
      <div class="close"></div>
      <div class="time"></div>
      <div class="tag"></div>
      <div class="content"></div>
    </div>
  </template>

<!-- template for SEPARATOR -->
  <template id="t-separator">
    <div class="separator"></div>
  </template>