Просмотр исходного кода

docs(plugins): add json formating

bergquist 9 лет назад
Родитель
Сommit
d318c84434
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      docs/sources/plugins/datasources.md

+ 7 - 7
docs/sources/plugins/datasources.md

@@ -42,13 +42,13 @@ metricFindQuery(options) // used by query editor to get metric suggestions.
 Request object passed to datasource.query function
 ```json
 {
-  range: { from: '2015-12-22T03:06:13.851Z',to: '2015-12-22T06:48:24.137Z' },
-  interval: '5s',
-  targets:
-   [ { refId: 'B', target: 'upper_75' },
-     { refId: 'A', target: 'upper_90' } ],
-  format: 'json',
-  maxDataPoints: 2495 //decided by the panel
+  "range": { "from": "2015-12-22T03:06:13.851Z", "to": "2015-12-22T06:48:24.137Z" },
+  "interval": '5s',
+  "targets":
+   [ { refId: "B", target: "upper_75" },
+     { refId: "A", target: "upper_90" } ],
+  "format": "json",
+  "maxDataPoints": 2495 //decided by the panel
 }
 ```