@grafana/viz-contract 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +201 -0
  3. package/README.md +140 -0
  4. package/fixtures/epoch-range/args.json +14 -0
  5. package/fixtures/epoch-range/meta.json +4 -0
  6. package/fixtures/epoch-range/request.json +17 -0
  7. package/fixtures/epoch-range/response.json +114 -0
  8. package/fixtures/epoch-range/result.json +252 -0
  9. package/fixtures/epoch-range/spec.json +141 -0
  10. package/fixtures/epoch-range/state.json +4 -0
  11. package/fixtures/error-all-queries-failed/spec.json +45 -0
  12. package/fixtures/error-all-queries-failed/state.json +8 -0
  13. package/fixtures/error-invalid-spec/spec.json +25 -0
  14. package/fixtures/error-invalid-spec/state.json +8 -0
  15. package/fixtures/error-unsupported-panel-type/spec.json +1372 -0
  16. package/fixtures/error-unsupported-panel-type/state.json +8 -0
  17. package/fixtures/error-unsupported-spec-version/spec.json +1372 -0
  18. package/fixtures/error-unsupported-spec-version/state.json +8 -0
  19. package/fixtures/hostile-label/args.json +14 -0
  20. package/fixtures/hostile-label/meta.json +4 -0
  21. package/fixtures/hostile-label/request.json +17 -0
  22. package/fixtures/hostile-label/response.json +420 -0
  23. package/fixtures/hostile-label/result.json +558 -0
  24. package/fixtures/hostile-label/spec.json +447 -0
  25. package/fixtures/hostile-label/state.json +4 -0
  26. package/fixtures/no-data/args.json +14 -0
  27. package/fixtures/no-data/meta.json +4 -0
  28. package/fixtures/no-data/request.json +17 -0
  29. package/fixtures/no-data/response.json +40 -0
  30. package/fixtures/no-data/result.json +178 -0
  31. package/fixtures/no-data/spec.json +67 -0
  32. package/fixtures/no-data/state.json +4 -0
  33. package/fixtures/partial-error/args.json +20 -0
  34. package/fixtures/partial-error/meta.json +4 -0
  35. package/fixtures/partial-error/request.json +28 -0
  36. package/fixtures/partial-error/response.json +220 -0
  37. package/fixtures/partial-error/result.json +358 -0
  38. package/fixtures/partial-error/spec.json +253 -0
  39. package/fixtures/partial-error/state.json +9 -0
  40. package/fixtures/pick-annotations-only/args.json +10 -0
  41. package/fixtures/pick-annotations-only/meta.json +4 -0
  42. package/fixtures/pick-annotations-only/response.json +41 -0
  43. package/fixtures/pick-annotations-only/result.json +53 -0
  44. package/fixtures/pick-categories/args.json +10 -0
  45. package/fixtures/pick-categories/meta.json +4 -0
  46. package/fixtures/pick-categories/response.json +58 -0
  47. package/fixtures/pick-categories/result.json +116 -0
  48. package/fixtures/pick-empty-result/args.json +10 -0
  49. package/fixtures/pick-empty-result/meta.json +4 -0
  50. package/fixtures/pick-empty-result/response.json +11 -0
  51. package/fixtures/pick-empty-result/result.json +23 -0
  52. package/fixtures/pick-failed-query-with-frames/args.json +10 -0
  53. package/fixtures/pick-failed-query-with-frames/meta.json +4 -0
  54. package/fixtures/pick-failed-query-with-frames/response.json +43 -0
  55. package/fixtures/pick-failed-query-with-frames/result.json +131 -0
  56. package/fixtures/pick-few-parts/args.json +10 -0
  57. package/fixtures/pick-few-parts/meta.json +4 -0
  58. package/fixtures/pick-few-parts/response.json +40 -0
  59. package/fixtures/pick-few-parts/result.json +98 -0
  60. package/fixtures/pick-heatmap-cells/args.json +10 -0
  61. package/fixtures/pick-heatmap-cells/meta.json +4 -0
  62. package/fixtures/pick-heatmap-cells/response.json +55 -0
  63. package/fixtures/pick-heatmap-cells/result.json +143 -0
  64. package/fixtures/pick-log-lines/args.json +10 -0
  65. package/fixtures/pick-log-lines/meta.json +4 -0
  66. package/fixtures/pick-log-lines/response.json +49 -0
  67. package/fixtures/pick-log-lines/result.json +76 -0
  68. package/fixtures/pick-no-rows/args.json +10 -0
  69. package/fixtures/pick-no-rows/meta.json +4 -0
  70. package/fixtures/pick-no-rows/response.json +32 -0
  71. package/fixtures/pick-no-rows/result.json +120 -0
  72. package/fixtures/pick-node-graph/args.json +10 -0
  73. package/fixtures/pick-node-graph/meta.json +4 -0
  74. package/fixtures/pick-node-graph/response.json +77 -0
  75. package/fixtures/pick-node-graph/result.json +89 -0
  76. package/fixtures/pick-numeric-only/args.json +10 -0
  77. package/fixtures/pick-numeric-only/meta.json +4 -0
  78. package/fixtures/pick-numeric-only/response.json +40 -0
  79. package/fixtures/pick-numeric-only/result.json +89 -0
  80. package/fixtures/pick-single-stat/args.json +10 -0
  81. package/fixtures/pick-single-stat/meta.json +4 -0
  82. package/fixtures/pick-single-stat/response.json +29 -0
  83. package/fixtures/pick-single-stat/result.json +69 -0
  84. package/fixtures/pick-time-series-instant/args.json +10 -0
  85. package/fixtures/pick-time-series-instant/meta.json +4 -0
  86. package/fixtures/pick-time-series-instant/response.json +40 -0
  87. package/fixtures/pick-time-series-instant/result.json +128 -0
  88. package/fixtures/pick-time-series-long/args.json +10 -0
  89. package/fixtures/pick-time-series-long/meta.json +4 -0
  90. package/fixtures/pick-time-series-long/response.json +61 -0
  91. package/fixtures/pick-time-series-long/result.json +167 -0
  92. package/fixtures/pick-time-series-multi-frame/args.json +10 -0
  93. package/fixtures/pick-time-series-multi-frame/meta.json +4 -0
  94. package/fixtures/pick-time-series-multi-frame/response.json +74 -0
  95. package/fixtures/pick-time-series-multi-frame/result.json +162 -0
  96. package/fixtures/pick-time-series-null-time/args.json +10 -0
  97. package/fixtures/pick-time-series-null-time/meta.json +4 -0
  98. package/fixtures/pick-time-series-null-time/response.json +40 -0
  99. package/fixtures/pick-time-series-null-time/result.json +128 -0
  100. package/fixtures/pick-time-series-single/args.json +10 -0
  101. package/fixtures/pick-time-series-single/meta.json +4 -0
  102. package/fixtures/pick-time-series-single/response.json +40 -0
  103. package/fixtures/pick-time-series-single/result.json +128 -0
  104. package/fixtures/pick-time-series-wide/args.json +10 -0
  105. package/fixtures/pick-time-series-wide/meta.json +4 -0
  106. package/fixtures/pick-time-series-wide/response.json +61 -0
  107. package/fixtures/pick-time-series-wide/result.json +149 -0
  108. package/fixtures/prometheus-line/args.json +14 -0
  109. package/fixtures/prometheus-line/meta.json +4 -0
  110. package/fixtures/prometheus-line/request.json +17 -0
  111. package/fixtures/prometheus-line/response.json +1344 -0
  112. package/fixtures/prometheus-line/result.json +1483 -0
  113. package/fixtures/prometheus-line/spec.json +1372 -0
  114. package/fixtures/prometheus-line/state.json +4 -0
  115. package/fixtures/smoke-barchart/spec.json +64 -0
  116. package/fixtures/smoke-barchart/state.json +4 -0
  117. package/fixtures/smoke-boxplot/spec.json +96 -0
  118. package/fixtures/smoke-boxplot/state.json +4 -0
  119. package/fixtures/smoke-bubble/spec.json +229 -0
  120. package/fixtures/smoke-bubble/state.json +4 -0
  121. package/fixtures/smoke-candlestick/spec.json +97 -0
  122. package/fixtures/smoke-candlestick/state.json +4 -0
  123. package/fixtures/smoke-chord/spec.json +72 -0
  124. package/fixtures/smoke-chord/state.json +4 -0
  125. package/fixtures/smoke-funnel/spec.json +62 -0
  126. package/fixtures/smoke-funnel/state.json +4 -0
  127. package/fixtures/smoke-geomap/spec.json +76 -0
  128. package/fixtures/smoke-geomap/state.json +4 -0
  129. package/fixtures/smoke-heatmap/spec.json +103 -0
  130. package/fixtures/smoke-heatmap/state.json +4 -0
  131. package/fixtures/smoke-histogram/spec.json +63 -0
  132. package/fixtures/smoke-histogram/state.json +4 -0
  133. package/fixtures/smoke-nodeGraph/spec.json +101 -0
  134. package/fixtures/smoke-nodeGraph/state.json +4 -0
  135. package/fixtures/smoke-parallel/spec.json +78 -0
  136. package/fixtures/smoke-parallel/state.json +4 -0
  137. package/fixtures/smoke-piechart/spec.json +62 -0
  138. package/fixtures/smoke-piechart/state.json +4 -0
  139. package/fixtures/smoke-radar/spec.json +82 -0
  140. package/fixtures/smoke-radar/state.json +4 -0
  141. package/fixtures/smoke-sankey/spec.json +72 -0
  142. package/fixtures/smoke-sankey/state.json +4 -0
  143. package/fixtures/smoke-state-timeline/spec.json +64 -0
  144. package/fixtures/smoke-state-timeline/state.json +4 -0
  145. package/fixtures/smoke-status-history/spec.json +64 -0
  146. package/fixtures/smoke-status-history/state.json +4 -0
  147. package/fixtures/smoke-streamgraph/spec.json +229 -0
  148. package/fixtures/smoke-streamgraph/state.json +4 -0
  149. package/fixtures/smoke-sunburst/spec.json +72 -0
  150. package/fixtures/smoke-sunburst/state.json +4 -0
  151. package/fixtures/smoke-timeseries/spec.json +163 -0
  152. package/fixtures/smoke-timeseries/state.json +4 -0
  153. package/fixtures/smoke-treemap/spec.json +72 -0
  154. package/fixtures/smoke-treemap/state.json +4 -0
  155. package/fixtures/too-large/args.json +14 -0
  156. package/fixtures/too-large/meta.json +4 -0
  157. package/fixtures/type-mismatch/args.json +15 -0
  158. package/fixtures/type-mismatch/meta.json +4 -0
  159. package/fixtures/type-mismatch/request.json +17 -0
  160. package/fixtures/type-mismatch/response.json +1344 -0
  161. package/fixtures/type-mismatch/result.json +9 -0
  162. package/package.json +32 -0
  163. package/registry/chart-types.json +170 -0
  164. package/registry/constants.json +14 -0
  165. package/registry/notices.json +40 -0
  166. package/registry/panel-types.json +14 -0
  167. package/registry/pick.json +46 -0
  168. package/registry/states.json +85 -0
  169. package/renderer-api.d.ts +70 -0
  170. package/schemas/bundled/query-datasource-args.schema.json +86 -0
  171. package/schemas/bundled/registry.schema.json +375 -0
  172. package/schemas/bundled/tool-result.schema.json +245 -0
  173. package/schemas/bundled/viz-spec.schema.json +261 -0
@@ -0,0 +1,253 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "line"
7
+ },
8
+ "fieldConfig": {
9
+ "defaults": {
10
+ "unit": "reqps"
11
+ }
12
+ },
13
+ "datasource": {
14
+ "uid": "lgtm-prometheus"
15
+ },
16
+ "targets": [
17
+ {
18
+ "refId": "A",
19
+ "expr": "sum by (handler) (rate(grafana_http_request_duration_seconds_count[5m]))",
20
+ "legendFormat": "{{handler}}",
21
+ "format": "time_series"
22
+ },
23
+ {
24
+ "refId": "B",
25
+ "expr": "sum by (handler) (rate(grafana_http_request_duration_seconds_count[5m]",
26
+ "legendFormat": "{{handler}}",
27
+ "format": "time_series"
28
+ }
29
+ ]
30
+ },
31
+ "data": {
32
+ "range": {
33
+ "from": 1790267077294,
34
+ "to": 1790353477294
35
+ },
36
+ "capturedAt": 1790353477806,
37
+ "results": {
38
+ "A": {
39
+ "status": 200,
40
+ "frames": [
41
+ {
42
+ "schema": {
43
+ "refId": "A",
44
+ "meta": {
45
+ "type": "timeseries-multi",
46
+ "typeVersion": [
47
+ 0,
48
+ 1
49
+ ]
50
+ },
51
+ "fields": [
52
+ {
53
+ "name": "Time",
54
+ "type": "time",
55
+ "typeInfo": {
56
+ "frame": "time.Time"
57
+ }
58
+ },
59
+ {
60
+ "name": "Value",
61
+ "type": "number",
62
+ "typeInfo": {
63
+ "frame": "float64"
64
+ },
65
+ "labels": {
66
+ "handler": "/api/ds/query"
67
+ },
68
+ "config": {
69
+ "displayNameFromDS": "/api/ds/query"
70
+ }
71
+ }
72
+ ]
73
+ },
74
+ "data": {
75
+ "values": [
76
+ [
77
+ 1790351737294,
78
+ 1790351797294,
79
+ 1790351857294,
80
+ 1790351917294,
81
+ 1790351977294,
82
+ 1790352037294,
83
+ 1790352097294,
84
+ 1790352157294,
85
+ 1790352217294,
86
+ 1790352277294,
87
+ 1790352337294,
88
+ 1790352397294,
89
+ 1790352457294,
90
+ 1790352517294,
91
+ 1790352577294,
92
+ 1790352637294,
93
+ 1790352697294,
94
+ 1790352757294,
95
+ 1790352817294,
96
+ 1790352877294,
97
+ 1790352937294,
98
+ 1790352997294,
99
+ 1790353057294,
100
+ 1790353117294,
101
+ 1790353177294,
102
+ 1790353237294,
103
+ 1790353297294,
104
+ 1790353357294,
105
+ 1790353417294,
106
+ 1790353477294
107
+ ],
108
+ [
109
+ 12,
110
+ 12.65,
111
+ 13.24,
112
+ 13.68,
113
+ 13.94,
114
+ 13.99,
115
+ 13.82,
116
+ 13.45,
117
+ 12.91,
118
+ 12.28,
119
+ 11.62,
120
+ 11,
121
+ 10.49,
122
+ 10.14,
123
+ 10,
124
+ 10.08,
125
+ 10.37,
126
+ 10.84,
127
+ 11.44,
128
+ 12.1,
129
+ 12.75,
130
+ 13.31,
131
+ 13.73,
132
+ 13.97,
133
+ 13.98,
134
+ 13.77,
135
+ 13.38,
136
+ 12.82,
137
+ 12.18,
138
+ 11.52
139
+ ]
140
+ ]
141
+ }
142
+ },
143
+ {
144
+ "schema": {
145
+ "refId": "A",
146
+ "meta": {
147
+ "type": "timeseries-multi",
148
+ "typeVersion": [
149
+ 0,
150
+ 1
151
+ ]
152
+ },
153
+ "fields": [
154
+ {
155
+ "name": "Time",
156
+ "type": "time",
157
+ "typeInfo": {
158
+ "frame": "time.Time"
159
+ }
160
+ },
161
+ {
162
+ "name": "Value",
163
+ "type": "number",
164
+ "typeInfo": {
165
+ "frame": "float64"
166
+ },
167
+ "labels": {
168
+ "handler": "/api/search"
169
+ },
170
+ "config": {
171
+ "displayNameFromDS": "/api/search"
172
+ }
173
+ }
174
+ ]
175
+ },
176
+ "data": {
177
+ "values": [
178
+ [
179
+ 1790351737294,
180
+ 1790351797294,
181
+ 1790351857294,
182
+ 1790351917294,
183
+ 1790351977294,
184
+ 1790352037294,
185
+ 1790352097294,
186
+ 1790352157294,
187
+ 1790352217294,
188
+ 1790352277294,
189
+ 1790352337294,
190
+ 1790352397294,
191
+ 1790352457294,
192
+ 1790352517294,
193
+ 1790352577294,
194
+ 1790352637294,
195
+ 1790352697294,
196
+ 1790352757294,
197
+ 1790352817294,
198
+ 1790352877294,
199
+ 1790352937294,
200
+ 1790352997294,
201
+ 1790353057294,
202
+ 1790353117294,
203
+ 1790353177294,
204
+ 1790353237294,
205
+ 1790353297294,
206
+ 1790353357294,
207
+ 1790353417294,
208
+ 1790353477294
209
+ ],
210
+ [
211
+ 5.84,
212
+ 5.97,
213
+ 6,
214
+ 5.91,
215
+ 5.72,
216
+ 5.46,
217
+ 5.14,
218
+ 4.81,
219
+ 4.5,
220
+ 4.24,
221
+ 4.07,
222
+ 4,
223
+ 4.04,
224
+ 4.19,
225
+ 4.42,
226
+ 4.72,
227
+ 5.05,
228
+ 5.37,
229
+ 5.66,
230
+ 5.87,
231
+ 5.98,
232
+ 5.99,
233
+ 5.89,
234
+ 5.69,
235
+ 5.41,
236
+ 5.09,
237
+ 4.76,
238
+ 4.46,
239
+ 4.21,
240
+ 4.05
241
+ ]
242
+ ]
243
+ }
244
+ }
245
+ ]
246
+ },
247
+ "B": {
248
+ "status": 400,
249
+ "error": "bad_data: invalid parameter \"query\": 1:69: parse error: unclosed left parenthesis"
250
+ }
251
+ }
252
+ }
253
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": [
4
+ {
5
+ "code": "query-failed",
6
+ "message": "Query B failed: bad_data: invalid parameter \"query\": 1:69: parse error: unclosed left parenthesis"
7
+ }
8
+ ]
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "datasourceUid": "testdata",
3
+ "queries": [
4
+ {
5
+ "refId": "A"
6
+ }
7
+ ],
8
+ "from": "now-1h",
9
+ "to": "now"
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "now": 1790353477294,
3
+ "capturedAt": 1790353477806
4
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "results": {
5
+ "A": {
6
+ "status": 200,
7
+ "frames": [
8
+ {
9
+ "schema": {
10
+ "fields": [
11
+ {
12
+ "name": "time",
13
+ "type": "time"
14
+ },
15
+ {
16
+ "name": "value",
17
+ "type": "number"
18
+ }
19
+ ],
20
+ "meta": {
21
+ "dataTopic": "annotations"
22
+ }
23
+ },
24
+ "data": {
25
+ "values": [
26
+ [
27
+ 1727740800000,
28
+ 1727740860000
29
+ ],
30
+ [
31
+ 1,
32
+ 2
33
+ ]
34
+ ]
35
+ }
36
+ }
37
+ ]
38
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "chart": "barchart",
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "bar"
7
+ }
8
+ },
9
+ "alternatives": [],
10
+ "data": {
11
+ "range": {
12
+ "from": 1790349877294,
13
+ "to": 1790353477294
14
+ },
15
+ "capturedAt": 1790353477806,
16
+ "results": {
17
+ "A": {
18
+ "status": 200,
19
+ "frames": [
20
+ {
21
+ "schema": {
22
+ "fields": [
23
+ {
24
+ "name": "time",
25
+ "type": "time"
26
+ },
27
+ {
28
+ "name": "value",
29
+ "type": "number"
30
+ }
31
+ ],
32
+ "meta": {
33
+ "dataTopic": "annotations"
34
+ }
35
+ },
36
+ "data": {
37
+ "values": [
38
+ [
39
+ 1727740800000,
40
+ 1727740860000
41
+ ],
42
+ [
43
+ 1,
44
+ 2
45
+ ]
46
+ ]
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "datasourceUid": "testdata",
3
+ "queries": [
4
+ {
5
+ "refId": "A"
6
+ }
7
+ ],
8
+ "from": "now-1h",
9
+ "to": "now"
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "now": 1790353477294,
3
+ "capturedAt": 1790353477806
4
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "results": {
5
+ "A": {
6
+ "status": 200,
7
+ "frames": [
8
+ {
9
+ "schema": {
10
+ "fields": [
11
+ {
12
+ "name": "host",
13
+ "type": "string"
14
+ },
15
+ {
16
+ "name": "cpu",
17
+ "type": "number"
18
+ }
19
+ ]
20
+ },
21
+ "data": {
22
+ "values": [
23
+ [
24
+ "host-0",
25
+ "host-1",
26
+ "host-2",
27
+ "host-3",
28
+ "host-4",
29
+ "host-5",
30
+ "host-6",
31
+ "host-7",
32
+ "host-8",
33
+ "host-9",
34
+ "host-10",
35
+ "host-11"
36
+ ],
37
+ [
38
+ 0,
39
+ 5,
40
+ 10,
41
+ 15,
42
+ 20,
43
+ 25,
44
+ 30,
45
+ 35,
46
+ 40,
47
+ 45,
48
+ 50,
49
+ 55
50
+ ]
51
+ ]
52
+ }
53
+ }
54
+ ]
55
+ }
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "chart": "barchart",
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "bar"
7
+ }
8
+ },
9
+ "alternatives": [
10
+ {
11
+ "chart": "histogram",
12
+ "panel": {
13
+ "type": "grafana-echartscartesian-panel",
14
+ "options": {
15
+ "histogram": true
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "chart": "piechart",
21
+ "panel": {
22
+ "type": "grafana-echartsparttowhole-panel",
23
+ "options": {
24
+ "seriesType": "pie"
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "chart": "funnel",
30
+ "panel": {
31
+ "type": "grafana-echartsparttowhole-panel",
32
+ "options": {
33
+ "seriesType": "funnel"
34
+ }
35
+ }
36
+ },
37
+ {
38
+ "chart": "treemap",
39
+ "panel": {
40
+ "type": "grafana-echartshierarchy-panel",
41
+ "options": {
42
+ "seriesType": "treemap"
43
+ }
44
+ }
45
+ },
46
+ {
47
+ "chart": "sunburst",
48
+ "panel": {
49
+ "type": "grafana-echartshierarchy-panel",
50
+ "options": {
51
+ "seriesType": "sunburst"
52
+ }
53
+ }
54
+ }
55
+ ],
56
+ "data": {
57
+ "range": {
58
+ "from": 1790349877294,
59
+ "to": 1790353477294
60
+ },
61
+ "capturedAt": 1790353477806,
62
+ "results": {
63
+ "A": {
64
+ "status": 200,
65
+ "frames": [
66
+ {
67
+ "schema": {
68
+ "fields": [
69
+ {
70
+ "name": "host",
71
+ "type": "string"
72
+ },
73
+ {
74
+ "name": "cpu",
75
+ "type": "number"
76
+ }
77
+ ]
78
+ },
79
+ "data": {
80
+ "values": [
81
+ [
82
+ "host-0",
83
+ "host-1",
84
+ "host-2",
85
+ "host-3",
86
+ "host-4",
87
+ "host-5",
88
+ "host-6",
89
+ "host-7",
90
+ "host-8",
91
+ "host-9",
92
+ "host-10",
93
+ "host-11"
94
+ ],
95
+ [
96
+ 0,
97
+ 5,
98
+ 10,
99
+ 15,
100
+ 20,
101
+ 25,
102
+ 30,
103
+ 35,
104
+ 40,
105
+ 45,
106
+ 50,
107
+ 55
108
+ ]
109
+ ]
110
+ }
111
+ }
112
+ ]
113
+ }
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "datasourceUid": "testdata",
3
+ "queries": [
4
+ {
5
+ "refId": "A"
6
+ }
7
+ ],
8
+ "from": "now-1h",
9
+ "to": "now"
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "now": 1790353477294,
3
+ "capturedAt": 1790353477806
4
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "results": {
5
+ "A": {
6
+ "status": 200,
7
+ "frames": []
8
+ }
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "chart": "barchart",
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "bar"
7
+ }
8
+ },
9
+ "alternatives": [],
10
+ "data": {
11
+ "range": {
12
+ "from": 1790349877294,
13
+ "to": 1790353477294
14
+ },
15
+ "capturedAt": 1790353477806,
16
+ "results": {
17
+ "A": {
18
+ "status": 200,
19
+ "frames": []
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "datasourceUid": "testdata",
3
+ "queries": [
4
+ {
5
+ "refId": "A"
6
+ }
7
+ ],
8
+ "from": "now-1h",
9
+ "to": "now"
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "now": 1790353477294,
3
+ "capturedAt": 1790353477806
4
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "results": {
5
+ "A": {
6
+ "status": 500,
7
+ "error": "partial failure",
8
+ "frames": [
9
+ {
10
+ "schema": {
11
+ "fields": [
12
+ {
13
+ "name": "time",
14
+ "type": "time"
15
+ },
16
+ {
17
+ "name": "value",
18
+ "type": "number"
19
+ }
20
+ ]
21
+ },
22
+ "data": {
23
+ "values": [
24
+ [
25
+ 1727740800000,
26
+ 1727740860000,
27
+ 1727740920000,
28
+ 1727740980000
29
+ ],
30
+ [
31
+ 1,
32
+ 2,
33
+ 3,
34
+ 4
35
+ ]
36
+ ]
37
+ }
38
+ }
39
+ ]
40
+ }
41
+ }
42
+ }
43
+ }