Guest User

Untitled

a guest
Jul 16th, 2021
612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.67 KB | None | 0 0
  1.  
  2. {
  3. "request": {
  4. "url": "api/ds/query",
  5. "method": "POST",
  6. "data": {
  7. "queries": [
  8. {
  9. "refId": "A",
  10. "datasourceId": 2,
  11. "rawSql": "select bucket as time, 'device'||device_id::text as metric, current1_status as status\nfrom device_statuses\nWHERE\n device_id in (1) AND \n $__timeFilter(bucket)\nORDER BY 1",
  12. "format": "table",
  13. "intervalMs": 60000,
  14. "maxDataPoints": 1332
  15. }
  16. ],
  17. "range": {
  18. "from": "2021-07-06T12:40:00.000Z",
  19. "to": "2021-07-06T12:50:00.000Z",
  20. "raw": {
  21. "from": "2021-07-06T12:40:00.000Z",
  22. "to": "2021-07-06T12:50:00.000Z"
  23. }
  24. },
  25. "from": "1625575200000",
  26. "to": "1625575800000"
  27. },
  28. "hideFromInspector": false
  29. },
  30. "response": {
  31. "results": {
  32. "A": {
  33. "frames": [
  34. {
  35. "schema": {
  36. "name": "results",
  37. "meta": {
  38. "executedQueryString": "select bucket as time, 'device'||device_id::text as metric, current1_status as status\nfrom device_statuses\nWHERE\n device_id in (1) AND \n bucket BETWEEN '2021-07-06T12:40:00Z' AND '2021-07-06T12:50:00Z'\nORDER BY 1"
  39. },
  40. "fields": [
  41. {
  42. "name": "time",
  43. "type": "time",
  44. "typeInfo": {
  45. "frame": "time.Time",
  46. "nullable": true
  47. }
  48. },
  49. {
  50. "name": "metric",
  51. "type": "string",
  52. "typeInfo": {
  53. "frame": "string",
  54. "nullable": true
  55. }
  56. },
  57. {
  58. "name": "status",
  59. "type": "string",
  60. "typeInfo": {
  61. "frame": "string",
  62. "nullable": true
  63. }
  64. }
  65. ]
  66. },
  67. "data": {
  68. "values": [
  69. [
  70. 1625575300000,
  71. 1625575305000,
  72. 1625575310000,
  73. 1625575315000,
  74. 1625575320000,
  75. 1625575325000,
  76. 1625575330000,
  77. 1625575335000,
  78. 1625575340000,
  79. 1625575345000,
  80. 1625575350000,
  81. 1625575355000,
  82. 1625575360000,
  83. 1625575365000,
  84. 1625575370000,
  85. 1625575375000,
  86. 1625575380000,
  87. 1625575385000,
  88. 1625575390000,
  89. 1625575395000,
  90. 1625575400000,
  91. 1625575405000,
  92. 1625575410000,
  93. 1625575415000,
  94. 1625575420000,
  95. 1625575425000,
  96. 1625575430000,
  97. 1625575435000,
  98. 1625575440000,
  99. 1625575445000,
  100. 1625575450000,
  101. 1625575455000,
  102. 1625575460000,
  103. 1625575465000,
  104. 1625575470000,
  105. 1625575475000,
  106. 1625575480000,
  107. 1625575485000,
  108. 1625575490000,
  109. 1625575495000,
  110. 1625575500000,
  111. 1625575505000,
  112. 1625575510000,
  113. 1625575515000,
  114. 1625575520000,
  115. 1625575525000,
  116. 1625575530000,
  117. 1625575535000,
  118. 1625575540000,
  119. 1625575545000,
  120. 1625575550000,
  121. 1625575555000,
  122. 1625575560000,
  123. 1625575565000,
  124. 1625575570000,
  125. 1625575575000,
  126. 1625575580000,
  127. 1625575585000,
  128. 1625575590000,
  129. 1625575595000,
  130. 1625575600000,
  131. 1625575605000,
  132. 1625575610000,
  133. 1625575615000,
  134. 1625575620000,
  135. 1625575625000,
  136. 1625575630000,
  137. 1625575635000,
  138. 1625575640000,
  139. 1625575645000,
  140. 1625575650000,
  141. 1625575655000,
  142. 1625575660000,
  143. 1625575665000,
  144. 1625575670000,
  145. 1625575675000,
  146. 1625575680000,
  147. 1625575685000,
  148. 1625575690000,
  149. 1625575695000,
  150. 1625575700000,
  151. 1625575705000,
  152. 1625575710000,
  153. 1625575715000,
  154. 1625575720000,
  155. 1625575725000,
  156. 1625575730000,
  157. 1625575735000,
  158. 1625575740000,
  159. 1625575745000,
  160. 1625575750000,
  161. 1625575755000,
  162. 1625575760000,
  163. 1625575765000,
  164. 1625575770000,
  165. 1625575775000,
  166. 1625575780000,
  167. 1625575785000,
  168. 1625575790000,
  169. 1625575795000,
  170. 1625575800000
  171. ],
  172. [
  173. "device1",
  174. "device1",
  175. "device1",
  176. "device1",
  177. "device1",
  178. "device1",
  179. "device1",
  180. "device1",
  181. "device1",
  182. "device1",
  183. "device1",
  184. "device1",
  185. "device1",
  186. "device1",
  187. "device1",
  188. "device1",
  189. "device1",
  190. "device1",
  191. "device1",
  192. "device1",
  193. "device1",
  194. "device1",
  195. "device1",
  196. "device1",
  197. "device1",
  198. "device1",
  199. "device1",
  200. "device1",
  201. "device1",
  202. "device1",
  203. "device1",
  204. "device1",
  205. "device1",
  206. "device1",
  207. "device1",
  208. "device1",
  209. "device1",
  210. "device1",
  211. "device1",
  212. "device1",
  213. "device1",
  214. "device1",
  215. "device1",
  216. "device1",
  217. "device1",
  218. "device1",
  219. "device1",
  220. "device1",
  221. "device1",
  222. "device1",
  223. "device1",
  224. "device1",
  225. "device1",
  226. "device1",
  227. "device1",
  228. "device1",
  229. "device1",
  230. "device1",
  231. "device1",
  232. "device1",
  233. "device1",
  234. "device1",
  235. "device1",
  236. "device1",
  237. "device1",
  238. "device1",
  239. "device1",
  240. "device1",
  241. "device1",
  242. "device1",
  243. "device1",
  244. "device1",
  245. "device1",
  246. "device1",
  247. "device1",
  248. "device1",
  249. "device1",
  250. "device1",
  251. "device1",
  252. "device1",
  253. "device1",
  254. "device1",
  255. "device1",
  256. "device1",
  257. "device1",
  258. "device1",
  259. "device1",
  260. "device1",
  261. "device1",
  262. "device1",
  263. "device1",
  264. "device1",
  265. "device1",
  266. "device1",
  267. "device1",
  268. "device1",
  269. "device1",
  270. "device1",
  271. "device1",
  272. "device1",
  273. "device1"
  274. ],
  275. [
  276. "RUNNING",
  277. "RUNNING",
  278. "RUNNING",
  279. "RUNNING",
  280. "RUNNING",
  281. "RUNNING",
  282. "RUNNING",
  283. "RUNNING",
  284. "RUNNING",
  285. "NOT RUNNING",
  286. "RUNNING",
  287. "NOT RUNNING",
  288. "NOT RUNNING",
  289. "RUNNING",
  290. "RUNNING",
  291. "RUNNING",
  292. "RUNNING",
  293. "RUNNING",
  294. "RUNNING",
  295. "RUNNING",
  296. "RUNNING",
  297. "RUNNING",
  298. "RUNNING",
  299. "NOT RUNNING",
  300. "NOT RUNNING",
  301. "RUNNING",
  302. "RUNNING",
  303. "RUNNING",
  304. "RUNNING",
  305. "RUNNING",
  306. "RUNNING",
  307. "NOT RUNNING",
  308. "RUNNING",
  309. "RUNNING",
  310. "RUNNING",
  311. "RUNNING",
  312. "RUNNING",
  313. "NOT RUNNING",
  314. "RUNNING",
  315. "RUNNING",
  316. "NOT RUNNING",
  317. "RUNNING",
  318. "RUNNING",
  319. "RUNNING",
  320. "NOT RUNNING",
  321. "RUNNING",
  322. "RUNNING",
  323. "NOT RUNNING",
  324. "RUNNING",
  325. "RUNNING",
  326. "RUNNING",
  327. "RUNNING",
  328. "RUNNING",
  329. "RUNNING",
  330. "NOT RUNNING",
  331. "RUNNING",
  332. "NOT RUNNING",
  333. "RUNNING",
  334. "RUNNING",
  335. "RUNNING",
  336. "NOT RUNNING",
  337. "NOT RUNNING",
  338. "RUNNING",
  339. "NOT RUNNING",
  340. "RUNNING",
  341. "RUNNING",
  342. "NOT RUNNING",
  343. "RUNNING",
  344. "RUNNING",
  345. "NOT RUNNING",
  346. "NOT RUNNING",
  347. "RUNNING",
  348. "NOT RUNNING",
  349. "RUNNING",
  350. "RUNNING",
  351. "NOT RUNNING",
  352. "NOT RUNNING",
  353. "NOT RUNNING",
  354. "NOT RUNNING",
  355. "RUNNING",
  356. "NOT RUNNING",
  357. "RUNNING",
  358. "NOT RUNNING",
  359. "NOT RUNNING",
  360. "RUNNING",
  361. "RUNNING",
  362. "RUNNING",
  363. "NOT RUNNING",
  364. "NOT RUNNING",
  365. "RUNNING",
  366. "NOT RUNNING",
  367. "RUNNING",
  368. "RUNNING",
  369. "RUNNING",
  370. "RUNNING",
  371. "RUNNING",
  372. "RUNNING",
  373. "RUNNING",
  374. "RUNNING",
  375. "RUNNING",
  376. "RUNNING"
  377. ]
  378. ]
  379. }
  380. }
  381. ],
  382. "refId": "A"
  383. }
  384. }
  385. }
  386. }
  387.  
Advertisement
Add Comment
Please, Sign In to add comment