+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "DataQuery" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" draft = true +++ ## DataQuery interface Signature ```typescript export interface DataQuery ``` Import ```typescript import { DataQuery } from '@grafana/data'; ``` Properties | Property | Type | Description | | --- | --- | --- | | [datasource](#datasource-property) | string | null | For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined. | | [hide](#hide-property) | boolean | true if query is disabled (ie not executed / sent to TSDB) | | [key](#key-property) | string | Unique, guid like, string used in explore mode | | [maxLines](#maxlines-property) | number | For limiting result lines. | | [metric](#metric-property) | any | | | [refId](#refid-property) | string | A - Z | ### datasource property For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined. Signature ```typescript datasource?: string | null; ``` ### hide property true if query is disabled (ie not executed / sent to TSDB) Signature ```typescript hide?: boolean; ``` ### key property Unique, guid like, string used in explore mode Signature ```typescript key?: string; ``` ### maxLines property For limiting result lines. Signature ```typescript maxLines?: number; ``` ### metric property Signature ```typescript metric?: any; ``` ### refId property A - Z Signature ```typescript refId: string; ```