From 9151b4034aaa70586fbbe667c07368eac741ee0d Mon Sep 17 00:00:00 2001 From: Chris Bentivenga Date: Fri, 20 Jan 2017 23:29:21 -0800 Subject: [PATCH] annotationsQuery -> annotationQuery (#7321) Documentation calls for `annotationQuery` but the [example](https://github.com/grafana/simple-json-datasource/blob/205cf4cfbce95cd455da97c7972b64538cc80ab3/src/datasource.js#L41) uses the method name `annotationQuery` --- docs/sources/plugins/datasources.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/plugins/datasources.md b/docs/sources/plugins/datasources.md index 9f04d11cdfc..332629aa5d8 100644 --- a/docs/sources/plugins/datasources.md +++ b/docs/sources/plugins/datasources.md @@ -37,7 +37,7 @@ The Datasource should contain the following functions. ``` query(options) //used by panels to get data testDatasource() //used by datasource configuration page to make sure the connection is working -annotationsQuery(options) // used by dashboards to get annotations +annotationQuery(options) // used by dashboards to get annotations metricFindQuery(options) // used by query editor to get metric suggestions. ``` @@ -119,7 +119,7 @@ An array of ### Annotation Query -Request object passed to datasource.annotationsQuery function +Request object passed to datasource.annotationQuery function ```json { "range": { "from": "2016-03-04T04:07:55.144Z", "to": "2016-03-04T07:07:55.144Z" }, @@ -172,4 +172,4 @@ Requires a static template or templateUrl variable which will be rendered as the A javascript class that will be instantiated and treated as an Angular controller when the user choose this type of datasource in the templating menu in the dashboard. -Requires a static template or templateUrl variable which will be rendered as the view for this controller. The fields that are bound to this controller is then sent to the Database objects annotationsQuery function. +Requires a static template or templateUrl variable which will be rendered as the view for this controller. The fields that are bound to this controller is then sent to the Database objects annotationQuery function.