Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "request": {
- "url": "api/ds/query",
- "method": "POST",
- "data": {
- "queries": [
- {
- "refId": "A",
- "datasourceId": 2,
- "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",
- "format": "table",
- "intervalMs": 60000,
- "maxDataPoints": 1332
- }
- ],
- "range": {
- "from": "2021-07-06T12:40:00.000Z",
- "to": "2021-07-06T12:50:00.000Z",
- "raw": {
- "from": "2021-07-06T12:40:00.000Z",
- "to": "2021-07-06T12:50:00.000Z"
- }
- },
- "from": "1625575200000",
- "to": "1625575800000"
- },
- "hideFromInspector": false
- },
- "response": {
- "results": {
- "A": {
- "frames": [
- {
- "schema": {
- "name": "results",
- "meta": {
- "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"
- },
- "fields": [
- {
- "name": "time",
- "type": "time",
- "typeInfo": {
- "frame": "time.Time",
- "nullable": true
- }
- },
- {
- "name": "metric",
- "type": "string",
- "typeInfo": {
- "frame": "string",
- "nullable": true
- }
- },
- {
- "name": "status",
- "type": "string",
- "typeInfo": {
- "frame": "string",
- "nullable": true
- }
- }
- ]
- },
- "data": {
- "values": [
- [
- 1625575300000,
- 1625575305000,
- 1625575310000,
- 1625575315000,
- 1625575320000,
- 1625575325000,
- 1625575330000,
- 1625575335000,
- 1625575340000,
- 1625575345000,
- 1625575350000,
- 1625575355000,
- 1625575360000,
- 1625575365000,
- 1625575370000,
- 1625575375000,
- 1625575380000,
- 1625575385000,
- 1625575390000,
- 1625575395000,
- 1625575400000,
- 1625575405000,
- 1625575410000,
- 1625575415000,
- 1625575420000,
- 1625575425000,
- 1625575430000,
- 1625575435000,
- 1625575440000,
- 1625575445000,
- 1625575450000,
- 1625575455000,
- 1625575460000,
- 1625575465000,
- 1625575470000,
- 1625575475000,
- 1625575480000,
- 1625575485000,
- 1625575490000,
- 1625575495000,
- 1625575500000,
- 1625575505000,
- 1625575510000,
- 1625575515000,
- 1625575520000,
- 1625575525000,
- 1625575530000,
- 1625575535000,
- 1625575540000,
- 1625575545000,
- 1625575550000,
- 1625575555000,
- 1625575560000,
- 1625575565000,
- 1625575570000,
- 1625575575000,
- 1625575580000,
- 1625575585000,
- 1625575590000,
- 1625575595000,
- 1625575600000,
- 1625575605000,
- 1625575610000,
- 1625575615000,
- 1625575620000,
- 1625575625000,
- 1625575630000,
- 1625575635000,
- 1625575640000,
- 1625575645000,
- 1625575650000,
- 1625575655000,
- 1625575660000,
- 1625575665000,
- 1625575670000,
- 1625575675000,
- 1625575680000,
- 1625575685000,
- 1625575690000,
- 1625575695000,
- 1625575700000,
- 1625575705000,
- 1625575710000,
- 1625575715000,
- 1625575720000,
- 1625575725000,
- 1625575730000,
- 1625575735000,
- 1625575740000,
- 1625575745000,
- 1625575750000,
- 1625575755000,
- 1625575760000,
- 1625575765000,
- 1625575770000,
- 1625575775000,
- 1625575780000,
- 1625575785000,
- 1625575790000,
- 1625575795000,
- 1625575800000
- ],
- [
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1",
- "device1"
- ],
- [
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "NOT RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING",
- "RUNNING"
- ]
- ]
- }
- }
- ],
- "refId": "A"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment