4 * Copyright (C) 2017 "IoT.bzh"
5 * Author: José Bollo <jose.bollo@iot.bzh>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 <title>Monitoring</title>
20 <link href="monitor-base.css" rel="stylesheet">
21 <link href="monitor-demo.css" rel="stylesheet" title="demo">
22 <link href="monitor-pastel.css" rel="alternate stylesheet" title="pastel">
23 <script type="text/javascript" src="underscore-min.js"></script>
24 <script type="text/javascript" src="AFB.js"></script>
25 <script type="text/javascript" src="monitor.js"></script>
27 <body id="root" class="-flex-v on" onload="init();">
28 <div id="head" class="clearfix">
30 <div id="connected">Not Connected</div>
31 <div id="title">Monitoring</div>
33 <div id="work" class="-flex-fill -flex-h">
34 <div id="controls" class="-box-out">
36 <div id="all" class="api opened" data-api="*">
37 <div class="opclo"></div>
38 <div class="name">{ALL}</div>
39 <div class="desc">Settings for all</div>
41 <div class="verbosity">placeholder</div>
42 <hr class="closedoff">
43 <div class="closedon">traces...</div>
44 <div class="trace closedoff"></div>
46 <div id="common" class="api" data-api="">
47 <div class="name">{COMMON}</div>
48 <div class="desc">Settings without apis</div>
50 <div class="verbosity">placeholder</div>
56 <div id="middle" class="-flex-v">
57 <div id="params" class="clearfix">
58 <div>host: <input type="text" id="param-host" size="50" value="localhost"></input></div>
59 <div>port: <input type="text" id="param-port" size="10" value="1234"></input></div>
60 <div>token: <input type="text" id="param-token" size="33" value="HELLO"></input></div>
62 <div class="-flex-fill -box-out">
63 <div id="trace-events" class="-box-in">
68 <div id="menu" class="-flex-v">
69 <div id="connect" class="x-button">Connect</div>
70 <div id="disconnect" class="x-button">Disconnect</div>
71 <div id="style" class="x-button">style</div>
72 <div id="autoscroll" class="x-button">Stop scroll</div>
73 <div id="addsep" class="x-button">Add separator</div>
74 <div id="droptracevts" class="x-button">Clear traces</div>
75 <div id="experts" class="x-button closed">
76 <div class="opclo"></div>
79 <div id="expert-pane" class="-flex-fill -flex-v">
80 <div id="stopmsgs" class="x-button">Stop logs</div>
81 <div id="dropmsgs" class="x-button">Clear logs</div>
82 <div class="-flex-fill -box-out">
83 <div id="logmsgs" class="-box-in"></div>
89 <!-- template for APIS -->
91 <div class="api closed" data-api="">
92 <div class="opclo"></div>
93 <div class="name"></div>
94 <div class="desc"></div>
95 <div class="closedoff">
97 <div class="verbosity">placeholder</div>
100 <div class="opclo"></div>
101 <div class="closedon">verbs...</div>
102 <div class="verbs closedoff"></div>
105 <div class="opclo"></div>
106 <div class="closedon">traces...</div>
107 <div class="trace closedoff"></div>
113 <!-- template for VERBS of APIS -->
114 <template id="t-verb">
115 <div class="verb" data-verb="">
117 <span class="name"></span>
118 <span class="colon">:</span>
119 <span class="desc"></span>
121 <div class="perm"></div>
125 <!-- template for ERRORS -->
126 <template id="t-logmsg">
128 <div class="close"></div>
129 <div class="tag"></div>
130 <div class="content"></div>
134 <!-- template for VERBOSITY -->
135 <template id="t-verbosity">
136 <div class="verbosity">
137 <span>Verbosity:</span>
138 <select class="select">
139 <option value="error">error</option>
140 <option value="warning">warning</option>
141 <option value="notice">notice</option>
142 <option value="info">info</option>
143 <option value="debug">debug</option>
148 <!-- template for TRACE -->
149 <template id="t-trace">
150 <div class="trace closedoff">
151 <div class="trace-box request" data-trace="request">
152 <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>
153 <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
154 <div class="trace-item"><input type="radio" value="common">common</input></div>
155 <div class="trace-item"><input type="radio" value="extra">extra</input></div>
156 <div class="trace-item"><input type="radio" value="all">all</input></div>
158 <div class="trace-box service" data-trace="service">
159 <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>
160 <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
161 <div class="trace-item"><input type="radio" value="all">all</input></div>
163 <div class="trace-box daemon" data-trace="daemon">
164 <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>
165 <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
166 <div class="trace-item"><input type="radio" value="common">common</input></div>
167 <div class="trace-item"><input type="radio" value="extra">extra</input></div>
168 <div class="trace-item"><input type="radio" value="all">all</input></div>
170 <div class="trace-box event" data-trace="event">
171 <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>
172 <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
173 <div class="trace-item"><input type="radio" value="common">common</input></div>
174 <div class="trace-item"><input type="radio" value="extra">extra</input></div>
175 <div class="trace-item"><input type="radio" value="all">all</input></div>
177 <div class="trace-box global" data-trace="global">
178 <div class="trace-title">trace globals:</div>
179 <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
180 <div class="trace-item"><input type="radio" value="all">all</input></div>
185 <!-- template for EVENTS -->
186 <template id="t-traceevent">
187 <div class="traceevent closed">
188 <div class="close"></div>
189 <div class="time"></div>
190 <div class="tag"></div>
191 <div class="content"></div>
195 <!-- template for SEPARATOR -->
196 <template id="t-separator">
197 <div class="separator"></div>