Advertisement
G0nz0uk

query inpsector

Apr 6th, 2024 (edited)
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 64.80 KB | None | 0 0
  1.   {
  2.     "request": {
  3.       "url": "api/ds/query?ds_type=influxdb&requestId=Q120",
  4.       "method": "POST",
  5.       "data": {
  6.         "queries": [
  7.           {
  8.             "alias": "D:\\inetpub\\mailroot\\Queue",
  9.             "datasource": {
  10.               "type": "influxdb",
  11.               "uid": "b8561312-4d78-4c4d-a5cf-25d0b7466fd0"
  12.             },
  13.             "groupBy": [
  14.               {
  15.                 "params": [
  16.                   "$__interval"
  17.                 ],
  18.                 "type": "time"
  19.               },
  20.               {
  21.                 "params": [
  22.                   "null"
  23.                 ],
  24.                 "type": "fill"
  25.               }
  26.             ],
  27.             "measurement": "filecount",
  28.             "orderByTime": "ASC",
  29.             "policy": "autogen",
  30.             "refId": "A",
  31.             "resultFormat": "time_series",
  32.             "select": [
  33.               [
  34.                 {
  35.                   "params": [
  36.                     "count"
  37.                   ],
  38.                   "type": "field"
  39.                 },
  40.                 {
  41.                   "params": [],
  42.                   "type": "last"
  43.                 }
  44.               ]
  45.             ],
  46.             "tags": [
  47.               {
  48.                 "key": "host::tag",
  49.                 "operator": "=",
  50.                 "value": "SMTP1"
  51.               }
  52.             ],
  53.             "adhocFilters": [],
  54.             "query": "",
  55.             "rawSql": "",
  56.             "limit": "",
  57.             "slimit": "",
  58.             "tz": "",
  59.             "datasourceId": 121,
  60.             "intervalMs": 20000,
  61.             "maxDataPoints": 1080
  62.           }
  63.         ],
  64.         "from": "1712305294969",
  65.         "to": "1712325912464"
  66.       },
  67.       "hideFromInspector": false
  68.     },
  69.     "response": {
  70.       "results": {
  71.         "A": {
  72.           "status": 200,
  73.           "frames": [
  74.             {
  75.               "schema": {
  76.                 "name": "D:\\inetpub\\mailroot\\Queue",
  77.                 "refId": "A",
  78.                 "meta": {
  79.                   "typeVersion": [
  80.                     0,
  81.                     0
  82.                   ],
  83.                   "preferredVisualisationType": "graph",
  84.                   "executedQueryString": "SELECT last(\"count\") FROM \"autogen\".\"filecount\" WHERE \"host\"::tag = 'SMTP1' AND time >= 1712305294969ms and time <= 1712325912464ms GROUP BY time(20s) fill(null) ORDER BY time ASC"
  85.                 },
  86.                 "fields": [
  87.                   {
  88.                     "name": "Time",
  89.                     "type": "time",
  90.                     "typeInfo": {
  91.                       "frame": "time.Time"
  92.                     }
  93.                   },
  94.                   {
  95.                     "name": "Value",
  96.                     "type": "number",
  97.                     "typeInfo": {
  98.                       "frame": "float64",
  99.                       "nullable": true
  100.                     },
  101.                     "config": {
  102.                       "displayNameFromDS": "D:\\inetpub\\mailroot\\Queue"
  103.                     }
  104.                   }
  105.                 ]
  106.               },
  107.               "data": {
  108.                 "values"
  109.           "refId": "A"
  110.         }
  111.       }
  112.     }
  113.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement