|
24 | 24 | "editable": true, |
25 | 25 | "fiscalYearStartMonth": 0, |
26 | 26 | "graphTooltip": 0, |
27 | | - "id": 14, |
28 | | - "iteration": 1678357333017, |
29 | 27 | "links": [], |
30 | 28 | "liveNow": false, |
31 | 29 | "panels": [ |
|
40 | 38 | "mode": "palette-classic" |
41 | 39 | }, |
42 | 40 | "custom": { |
| 41 | + "axisCenteredZero": false, |
| 42 | + "axisColorMode": "text", |
43 | 43 | "axisLabel": "", |
44 | 44 | "axisPlacement": "auto", |
45 | 45 | "barAlignment": 0, |
|
100 | 100 | "max" |
101 | 101 | ], |
102 | 102 | "displayMode": "table", |
103 | | - "placement": "right" |
| 103 | + "placement": "right", |
| 104 | + "showLegend": true |
104 | 105 | }, |
105 | 106 | "tooltip": { |
106 | 107 | "mode": "single", |
|
113 | 114 | "type": "postgres", |
114 | 115 | "uid": "P153BFFACB2904795" |
115 | 116 | }, |
| 117 | + "editorMode": "code", |
116 | 118 | "format": "time_series", |
117 | 119 | "group": [], |
118 | 120 | "metricColumn": "none", |
119 | 121 | "rawQuery": true, |
120 | | - "rawSql": "SELECT\n $__time(\"timestamp\"),\n station_id::text,\n avg(\"rssi\") as \"rssi\"\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\") AND baton_id IN ([[baton]])\nGROUP BY 1, 2\nORDER BY 1", |
| 122 | + "rawSql": "SELECT\n $__time(\"timestamp\" - interval '2 hour'),\n station_id::text,\n -- avg(\"rssi\") as \"rssi\"\n rssi\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\" - interval '2 hour') AND baton_id IN ([[baton]])\n-- GROUP BY 1, 2\nORDER BY 1", |
121 | 123 | "refId": "A", |
122 | 124 | "select": [ |
123 | 125 | [ |
|
135 | 137 | } |
136 | 138 | ] |
137 | 139 | ], |
| 140 | + "sql": { |
| 141 | + "columns": [ |
| 142 | + { |
| 143 | + "parameters": [], |
| 144 | + "type": "function" |
| 145 | + } |
| 146 | + ], |
| 147 | + "groupBy": [ |
| 148 | + { |
| 149 | + "property": { |
| 150 | + "type": "string" |
| 151 | + }, |
| 152 | + "type": "groupBy" |
| 153 | + } |
| 154 | + ], |
| 155 | + "limit": 50 |
| 156 | + }, |
138 | 157 | "table": "detection", |
139 | 158 | "timeColumn": "\"timestamp\"", |
140 | 159 | "timeColumnType": "timestamp", |
|
170 | 189 | "mode": "palette-classic" |
171 | 190 | }, |
172 | 191 | "custom": { |
| 192 | + "axisCenteredZero": false, |
| 193 | + "axisColorMode": "text", |
173 | 194 | "axisLabel": "", |
174 | 195 | "axisPlacement": "auto", |
175 | 196 | "barAlignment": 0, |
|
213 | 234 | }, |
214 | 235 | "unit": "dBm" |
215 | 236 | }, |
216 | | - "overrides": [ |
217 | | - { |
218 | | - "__systemRef": "hideSeriesFrom", |
219 | | - "matcher": { |
220 | | - "id": "byNames", |
221 | | - "options": { |
222 | | - "mode": "exclude", |
223 | | - "names": [ |
224 | | - "rssi 1" |
225 | | - ], |
226 | | - "prefix": "All except:", |
227 | | - "readOnly": true |
228 | | - } |
229 | | - }, |
230 | | - "properties": [ |
231 | | - { |
232 | | - "id": "custom.hideFrom", |
233 | | - "value": { |
234 | | - "legend": false, |
235 | | - "tooltip": false, |
236 | | - "viz": true |
237 | | - } |
238 | | - } |
239 | | - ] |
240 | | - } |
241 | | - ] |
| 237 | + "overrides": [] |
242 | 238 | }, |
243 | 239 | "gridPos": { |
244 | 240 | "h": 10, |
|
255 | 251 | "max" |
256 | 252 | ], |
257 | 253 | "displayMode": "table", |
258 | | - "placement": "right" |
| 254 | + "placement": "right", |
| 255 | + "showLegend": true |
259 | 256 | }, |
260 | 257 | "tooltip": { |
261 | 258 | "mode": "single", |
|
268 | 265 | "type": "postgres", |
269 | 266 | "uid": "P153BFFACB2904795" |
270 | 267 | }, |
| 268 | + "editorMode": "code", |
271 | 269 | "format": "time_series", |
272 | 270 | "group": [], |
273 | 271 | "metricColumn": "none", |
274 | 272 | "rawQuery": true, |
275 | | - "rawSql": "SELECT\n $__time(\"timestamp\"),\n baton_id::text,\n avg(\"rssi\") as \"rssi\"\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\")\nGROUP BY 1, 2\nORDER BY 1", |
| 273 | + "rawSql": "SELECT\n $__time(\"timestamp\" - interval '2 hour'),\n baton_id::text,\n avg(\"rssi\") as \"rssi\"\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\" - interval '2 hour')\nGROUP BY 1, 2\nORDER BY 1", |
276 | 274 | "refId": "A", |
277 | 275 | "select": [ |
278 | 276 | [ |
|
290 | 288 | } |
291 | 289 | ] |
292 | 290 | ], |
| 291 | + "sql": { |
| 292 | + "columns": [ |
| 293 | + { |
| 294 | + "parameters": [], |
| 295 | + "type": "function" |
| 296 | + } |
| 297 | + ], |
| 298 | + "groupBy": [ |
| 299 | + { |
| 300 | + "property": { |
| 301 | + "type": "string" |
| 302 | + }, |
| 303 | + "type": "groupBy" |
| 304 | + } |
| 305 | + ], |
| 306 | + "limit": 50 |
| 307 | + }, |
293 | 308 | "table": "detection", |
294 | 309 | "timeColumn": "\"timestamp\"", |
295 | 310 | "timeColumnType": "timestamp", |
|
315 | 330 | "type": "timeseries" |
316 | 331 | } |
317 | 332 | ], |
318 | | - "refresh": false, |
319 | | - "schemaVersion": 36, |
| 333 | + "refresh": "", |
| 334 | + "schemaVersion": 37, |
320 | 335 | "style": "dark", |
321 | 336 | "tags": [], |
322 | 337 | "templating": { |
323 | 338 | "list": [ |
324 | 339 | { |
325 | 340 | "current": { |
326 | | - "selected": true, |
| 341 | + "selected": false, |
327 | 342 | "text": [ |
328 | | - "1" |
| 343 | + "C (HILOK)", |
| 344 | + "B (VTK)", |
| 345 | + "K (VLK)", |
| 346 | + "D (VGK)", |
| 347 | + "F (VEK - Moeder Lies)", |
| 348 | + "G (Wetenschappen - VLAK - VETO)", |
| 349 | + "H (none)", |
| 350 | + "I (Hermes - GFK)", |
| 351 | + "J (Politeia)", |
| 352 | + "L (HK)", |
| 353 | + "M (VRG)", |
| 354 | + "N (VPPK)", |
| 355 | + "A (none)", |
| 356 | + "P (SK)", |
| 357 | + "T (Lombrosiana - VBK)", |
| 358 | + "Q (LILA)", |
| 359 | + "R (Antilopen)", |
| 360 | + "O (none)", |
| 361 | + "Y (HILOK Roze)", |
| 362 | + "U (Blandinia)", |
| 363 | + "V (none)", |
| 364 | + "W (none)", |
| 365 | + "X (none)" |
329 | 366 | ], |
330 | 367 | "value": [ |
331 | | - "1" |
| 368 | + "2", |
| 369 | + "3", |
| 370 | + "4", |
| 371 | + "5", |
| 372 | + "7", |
| 373 | + "8", |
| 374 | + "9", |
| 375 | + "10", |
| 376 | + "11", |
| 377 | + "12", |
| 378 | + "13", |
| 379 | + "14", |
| 380 | + "15", |
| 381 | + "16", |
| 382 | + "17", |
| 383 | + "18", |
| 384 | + "19", |
| 385 | + "20", |
| 386 | + "21", |
| 387 | + "22", |
| 388 | + "23", |
| 389 | + "24", |
| 390 | + "25" |
332 | 391 | ] |
333 | 392 | }, |
334 | 393 | "datasource": { |
335 | 394 | "type": "postgres", |
336 | 395 | "uid": "P153BFFACB2904795" |
337 | 396 | }, |
338 | | - "definition": "select id from baton", |
| 397 | + "definition": "select b.id as __value, b.name || ' (' || COALESCE(t.name, 'none') || ')' as __text from baton b\nleft join team t on b.id = t.baton_id", |
339 | 398 | "hide": 0, |
340 | 399 | "includeAll": false, |
341 | 400 | "multi": true, |
342 | 401 | "name": "baton", |
343 | 402 | "options": [], |
344 | | - "query": "select id from baton", |
| 403 | + "query": "select b.id as __value, b.name || ' (' || COALESCE(t.name, 'none') || ')' as __text from baton b\nleft join team t on b.id = t.baton_id", |
345 | 404 | "refresh": 1, |
346 | 405 | "regex": "", |
347 | 406 | "skipUrlSync": false, |
348 | | - "sort": 0, |
| 407 | + "sort": 1, |
349 | 408 | "type": "query" |
350 | 409 | } |
351 | 410 | ] |
352 | 411 | }, |
353 | 412 | "time": { |
354 | | - "from": "2022-03-31T18:10:56.000Z", |
355 | | - "to": "2022-03-31T18:12:31.000Z" |
| 413 | + "from": "now-40s", |
| 414 | + "to": "now" |
356 | 415 | }, |
357 | 416 | "timepicker": {}, |
358 | 417 | "timezone": "", |
|
0 commit comments