Sfoglia il codice sorgente

docs: Change type of 'tags' in annotationQuery result example to list

A datasource plugin must return a list of tags in the 'tags' field of
the annotationQuery result. A string 'test' would otherwise result in
4 tags in Grafana: 't','e','s','t'.
Christian Fetzer 6 anni fa
parent
commit
0cd59fdbcc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/sources/plugins/developing/datasources.md

+ 1 - 1
docs/sources/plugins/developing/datasources.md

@@ -163,7 +163,7 @@ Expected result from datasource.annotationQuery:
     "title": "Cluster outage",
     "title": "Cluster outage",
     "time": 1457075272576,
     "time": 1457075272576,
     "text": "Joe causes brain split",
     "text": "Joe causes brain split",
-    "tags": "joe, cluster, failure"
+    "tags": ["joe", "cluster", "failure"]
   }
   }
 ]
 ]
 ```
 ```