|
22 | 22 | "links": [],
|
23 | 23 | "liveNow": false,
|
24 | 24 | "panels": [
|
| 25 | + { |
| 26 | + "datasource": { |
| 27 | + "default": true, |
| 28 | + "type": "timeplus-proton-datasource", |
| 29 | + "uid": "proton-ds" |
| 30 | + }, |
| 31 | + "fieldConfig": { |
| 32 | + "defaults": { |
| 33 | + "color": { |
| 34 | + "mode": "thresholds" |
| 35 | + }, |
| 36 | + "mappings": [], |
| 37 | + "thresholds": { |
| 38 | + "mode": "absolute", |
| 39 | + "steps": [ |
| 40 | + { |
| 41 | + "color": "green", |
| 42 | + "value": null |
| 43 | + }, |
| 44 | + { |
| 45 | + "color": "red", |
| 46 | + "value": 80 |
| 47 | + } |
| 48 | + ] |
| 49 | + } |
| 50 | + }, |
| 51 | + "overrides": [] |
| 52 | + }, |
| 53 | + "gridPos": { |
| 54 | + "h": 8, |
| 55 | + "w": 24, |
| 56 | + "x": 0, |
| 57 | + "y": 0 |
| 58 | + }, |
| 59 | + "id": 5, |
| 60 | + "options": { |
| 61 | + "colorMode": "value", |
| 62 | + "graphMode": "area", |
| 63 | + "justifyMode": "auto", |
| 64 | + "orientation": "auto", |
| 65 | + "percentChangeColorMode": "standard", |
| 66 | + "reduceOptions": { |
| 67 | + "calcs": ["lastNotNull"], |
| 68 | + "fields": "", |
| 69 | + "values": false |
| 70 | + }, |
| 71 | + "showPercentChange": false, |
| 72 | + "textMode": "auto", |
| 73 | + "wideLayout": true |
| 74 | + }, |
| 75 | + "pluginVersion": "11.2.2", |
| 76 | + "targets": [ |
| 77 | + { |
| 78 | + "datasource": { |
| 79 | + "type": "timeplus-proton-datasource", |
| 80 | + "uid": "proton-ds" |
| 81 | + }, |
| 82 | + "refId": "A", |
| 83 | + "sql": "select count(*) from table(bookings) where _tp_time < to_datetime($__to/1000) and _tp_time > to_datetime($__from/1000) and cid='$cid'" |
| 84 | + } |
| 85 | + ], |
| 86 | + "title": "Total bookings for car $cid between $__from and $__to", |
| 87 | + "type": "stat" |
| 88 | + }, |
25 | 89 | {
|
26 | 90 | "datasource": {
|
27 | 91 | "type": "timeplus-proton-datasource",
|
|
57 | 121 | "h": 6,
|
58 | 122 | "w": 3,
|
59 | 123 | "x": 0,
|
60 |
| - "y": 0 |
| 124 | + "y": 8 |
61 | 125 | },
|
62 | 126 | "id": 1,
|
63 | 127 | "options": {
|
|
70 | 134 | },
|
71 | 135 | "showHeader": true
|
72 | 136 | },
|
73 |
| - "pluginVersion": "10.2.3", |
| 137 | + "pluginVersion": "11.2.2", |
74 | 138 | "targets": [
|
75 | 139 | {
|
76 | 140 | "addNow": false,
|
77 | 141 | "datasource": {
|
78 | 142 | "type": "timeplus-proton-datasource",
|
79 | 143 | "uid": "proton-ds"
|
80 | 144 | },
|
81 |
| - "sql": "select now()", |
82 |
| - "refId": "A" |
| 145 | + "refId": "A", |
| 146 | + "sql": "select now()" |
83 | 147 | }
|
84 | 148 | ],
|
85 | 149 | "title": "select now()",
|
|
112 | 176 | "h": 6,
|
113 | 177 | "w": 7,
|
114 | 178 | "x": 3,
|
115 |
| - "y": 0 |
| 179 | + "y": 8 |
116 | 180 | },
|
117 | 181 | "id": 2,
|
118 | 182 | "options": {
|
119 | 183 | "colorMode": "value",
|
120 | 184 | "graphMode": "area",
|
121 | 185 | "justifyMode": "auto",
|
122 | 186 | "orientation": "auto",
|
| 187 | + "percentChangeColorMode": "standard", |
123 | 188 | "reduceOptions": {
|
124 | 189 | "calcs": ["lastNotNull"],
|
125 | 190 | "fields": "",
|
126 | 191 | "values": false
|
127 | 192 | },
|
| 193 | + "showPercentChange": false, |
128 | 194 | "textMode": "auto",
|
129 | 195 | "wideLayout": true
|
130 | 196 | },
|
131 |
| - "pluginVersion": "10.2.3", |
| 197 | + "pluginVersion": "11.2.2", |
132 | 198 | "targets": [
|
133 | 199 | {
|
134 | 200 | "addNow": false,
|
135 | 201 | "datasource": {
|
136 | 202 | "type": "timeplus-proton-datasource",
|
137 | 203 | "uid": "proton-ds"
|
138 | 204 | },
|
139 |
| - "sql": "select count() from car_live_data", |
140 |
| - "refId": "A" |
| 205 | + "refId": "A", |
| 206 | + "sql": "select count() from car_live_data" |
141 | 207 | }
|
142 | 208 | ],
|
143 | 209 | "title": "select count() from car_live_data",
|
|
170 | 236 | "h": 6,
|
171 | 237 | "w": 14,
|
172 | 238 | "x": 10,
|
173 |
| - "y": 0 |
| 239 | + "y": 8 |
174 | 240 | },
|
175 | 241 | "id": 3,
|
176 | 242 | "options": {
|
177 | 243 | "colorMode": "value",
|
178 | 244 | "graphMode": "area",
|
179 | 245 | "justifyMode": "auto",
|
180 | 246 | "orientation": "auto",
|
| 247 | + "percentChangeColorMode": "standard", |
181 | 248 | "reduceOptions": {
|
182 | 249 | "calcs": ["lastNotNull"],
|
183 | 250 | "fields": "",
|
184 | 251 | "values": false
|
185 | 252 | },
|
| 253 | + "showPercentChange": false, |
186 | 254 | "textMode": "auto",
|
187 | 255 | "wideLayout": true
|
188 | 256 | },
|
189 |
| - "pluginVersion": "10.2.3", |
| 257 | + "pluginVersion": "11.2.2", |
190 | 258 | "targets": [
|
191 | 259 | {
|
192 | 260 | "addNow": false,
|
193 | 261 | "datasource": {
|
194 | 262 | "type": "timeplus-proton-datasource",
|
195 | 263 | "uid": "proton-ds"
|
196 | 264 | },
|
197 |
| - "sql": "select count() from car_live_data where _tp_time>earliest_ts()", |
198 |
| - "refId": "A" |
| 265 | + "refId": "A", |
| 266 | + "sql": "select count() from car_live_data where _tp_time>earliest_ts()" |
199 | 267 | }
|
200 | 268 | ],
|
201 | 269 | "title": "select count() from car_live_data where _tp_time>earliest_ts()",
|
|
239 | 307 | "h": 9,
|
240 | 308 | "w": 24,
|
241 | 309 | "x": 0,
|
242 |
| - "y": 6 |
| 310 | + "y": 14 |
243 | 311 | },
|
244 | 312 | "id": 4,
|
245 | 313 | "options": {
|
|
307 | 375 | "zoom": 12
|
308 | 376 | }
|
309 | 377 | },
|
310 |
| - "pluginVersion": "10.2.3", |
| 378 | + "pluginVersion": "11.2.2", |
311 | 379 | "targets": [
|
312 | 380 | {
|
313 | 381 | "addNow": false,
|
314 | 382 | "datasource": {
|
315 | 383 | "type": "timeplus-proton-datasource",
|
316 | 384 | "uid": "proton-ds"
|
317 | 385 | },
|
318 |
| - "sql": "select longitude, latitude,speed_kmh,cid from car_live_data where cid like '%1'", |
319 |
| - "refId": "A" |
| 386 | + "refId": "A", |
| 387 | + "sql": "select longitude, latitude,speed_kmh,cid from car_live_data where cid like '%1'" |
320 | 388 | }
|
321 | 389 | ],
|
322 | 390 | "title": "Panel Title",
|
|
327 | 395 | "schemaVersion": 39,
|
328 | 396 | "tags": [],
|
329 | 397 | "templating": {
|
330 |
| - "list": [] |
| 398 | + "list": [ |
| 399 | + { |
| 400 | + "current": { |
| 401 | + "selected": true, |
| 402 | + "text": "c00000", |
| 403 | + "value": "c00000" |
| 404 | + }, |
| 405 | + "datasource": { |
| 406 | + "type": "timeplus-proton-datasource", |
| 407 | + "uid": "proton-ds" |
| 408 | + }, |
| 409 | + "definition": "select cid from table(car_live_data) where _tp_time < to_datetime($__to/1000) and _tp_time > to_datetime($__from/1000)", |
| 410 | + "hide": 0, |
| 411 | + "includeAll": false, |
| 412 | + "label": "Car ID", |
| 413 | + "multi": false, |
| 414 | + "name": "cid", |
| 415 | + "options": [], |
| 416 | + "query": { |
| 417 | + "query": "select cid from table(car_live_data) where _tp_time < to_datetime($__to/1000) and _tp_time > to_datetime($__from/1000)" |
| 418 | + }, |
| 419 | + "refresh": 2, |
| 420 | + "regex": "", |
| 421 | + "skipUrlSync": false, |
| 422 | + "sort": 0, |
| 423 | + "type": "query" |
| 424 | + } |
| 425 | + ] |
331 | 426 | },
|
332 | 427 | "time": {
|
333 |
| - "from": "now-6h", |
| 428 | + "from": "now-1h", |
334 | 429 | "to": "now"
|
335 | 430 | },
|
336 | 431 | "timepicker": {},
|
337 | 432 | "timezone": "",
|
338 | 433 | "title": "Carsharing Demo Dashboard",
|
339 | 434 | "uid": "dd9e271d-7225-47d4-9e57-62133db0df62",
|
340 |
| - "version": 4, |
| 435 | + "version": 1, |
341 | 436 | "weekStart": ""
|
342 | 437 | }
|
0 commit comments