Browse Source

Update REST.md

pull/1/head
rozetko 7 years ago
parent
commit
c0fb0eedfb
  1. 28
      REST.md

28
REST.md

@ -52,23 +52,23 @@ Data format:
{ {
"name": "cpu_utilization_supervised", "name": "cpu_utilization_supervised",
"metric": { "metric": {
"datasource": "influx accelerometer", "datasource": "influx accelerometer",
"targets": [ "targets": [
<targets> <targets>
] ]
}, },
"panelUrl": "http://grafana.example.com/d/oNZ35bWiz/new-dashboard-copy?panelId=2&fullscreen", "panelUrl": "http://grafana.example.com/d/oNZ35bWiz/new-dashboard-copy?panelId=2&fullscreen",
"datasource": { "datasource": {
"data": null, "data": null,
"type": "influxdb", "type": "influxdb",
"method": "GET", "method": "GET",
"params": { "params": {
"db": "collectd", "db": "collectd",
"q": "SELECT mean("value") FROM "cpu_value" WHERE ("type…ms and time <= 1526986266633ms GROUP BY time(10s)", "q": "SELECT mean("value") FROM "cpu_value" WHERE ("type_instance" = 'user') AND time >= 1525603866633ms and time <= 1526986266633ms GROUP BY time(10s)",
"epoch": "ms" "epoch": "ms"
} }
"url": "api/datasources/proxy/8/query" "url": "api/datasources/proxy/8/query"
} }
} }
``` ```

Loading…
Cancel
Save