Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
0cd59fdbcc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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",
     "time": 1457075272576,
     "text": "Joe causes brain split",
-    "tags": "joe, cluster, failure"
+    "tags": ["joe", "cluster", "failure"]
   }
 ]
 ```