Skip to content

Commit

Permalink
annotationsQuery -> annotationQuery (#7321)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
chrisbenti authored and torkelo committed Jan 21, 2017
1 parent 57099f0 commit 9151b40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sources/plugins/datasources.md
Expand Up @@ -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.
```

Expand Down Expand Up @@ -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" },
Expand Down Expand Up @@ -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.

0 comments on commit 9151b40

Please sign in to comment.