Docs: enable packages reference docs for 7-beta (#23953)

* added packages reference menu item.

* removed the draft flag.

* Updated docs by running script.
This commit is contained in:
Marcus Andersson
2020-04-28 09:53:58 +02:00
committed by GitHub
parent 5442b0ab4f
commit cc3fc18076
719 changed files with 1069 additions and 1030 deletions
@@ -5,7 +5,6 @@
title = "DataSourceApi"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++
## DataSourceApi class
@@ -59,6 +58,7 @@ import { DataSourceApi } from '@grafana/data';
| [metricFindQuery(query, options)](#metricfindquery-method) | | Variable query action. |
| [modifyQuery(query, action)](#modifyquery-method) | | Used in explore |
| [query(request)](#query-method) | | Query for data, and optionally stream results |
| [showContextToggle(row)](#showcontexttoggle-method) | | |
| [targetContainsTemplate(query)](#targetcontainstemplate-method) | | Used by alerting to check if query contains template variables |
| [testDatasource()](#testdatasource-method) | | Test & verify datasource settings & connection details |
@@ -387,6 +387,23 @@ abstract query(request: DataQueryRequest<TQuery>): Promise<DataQueryResponse> |
`Promise<DataQueryResponse> | Observable<DataQueryResponse>`
### showContextToggle method
<b>Signature</b>
```typescript
showContextToggle?(row?: LogRowModel): boolean;
```
<b>Parameters</b>
| Parameter | Type | Description |
| --- | --- | --- |
| row | <code>LogRowModel</code> | |
<b>Returns:</b>
`boolean`
### targetContainsTemplate method
Used by alerting to check if query contains template variables