This repository was archived by the owner on Oct 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Your backend needs to implement 4 urls:
16
16
17
17
### Query API
18
18
19
- Example request
19
+ Example ` timeserie ` request
20
20
``` javascript
21
21
{
22
22
" panelId" : 1 ,
@@ -35,15 +35,15 @@ Example request
35
35
" interval" : " 30s" ,
36
36
" intervalMs" : 30000 ,
37
37
" targets" : [
38
- { " target" : " upper_50" , refId: " A" },
39
- { " target" : " upper_75" , refId: " B" }
38
+ { " target" : " upper_50" , refId: " A" , " type " : " timeserie " },
39
+ { " target" : " upper_75" , refId: " B" , " type " : " timeserie " }
40
40
],
41
41
" format" : " json" ,
42
42
" maxDataPoints" : 550
43
43
}
44
44
```
45
45
46
- Example response
46
+ Example ` timeserie ` response
47
47
``` javascript
48
48
[
49
49
{
@@ -63,6 +63,25 @@ Example response
63
63
]
64
64
```
65
65
66
+ If the metric selected is ` "type": "table" ` , an example ` table ` response:
67
+ ``` json
68
+ [
69
+ {
70
+ "columns" :[
71
+ {"text" :" Time" ,"type" :" time" },
72
+ {"text" :" Country" ,"type" :" string" },
73
+ {"text" :" Number" ,"type" :" number" }
74
+ ],
75
+ "rows" :[
76
+ [1234567 ," SE" ,123 ],
77
+ [1234567 ," DE" ,231 ],
78
+ [1234567 ," US" ,321 ]
79
+ ],
80
+ "type" :" table"
81
+ }
82
+ ]
83
+ ```
84
+
66
85
### Annotation API
67
86
68
87
The annotation request from the Simple JSON Datasource is a POST request to
You can’t perform that action at this time.
0 commit comments