DataQuery interface
These are the common properties available to all queries in all datasources Specific implementations will *extend* this interface adding the required properties for the given context
Signature
export interface DataQuery
Import
import { DataQuery } from '@grafana/data';
Properties
Property | Type | Description |
---|---|---|
datasource | DataSourceRef | null |
For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined. |
hide | boolean |
true if query is disabled (ie should not be returned to the dashboard) |
key | string |
Unique, guid like, string used in explore mode |
queryType | string |
Specify the query flavor |
refId | 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
datasource?: DataSourceRef | null;
hide property
true if query is disabled (ie should not be returned to the dashboard)
Signature
hide?: boolean;
key property
Unique, guid like, string used in explore mode
Signature
key?: string;
queryType property
Specify the query flavor
Signature
queryType?: string;
refId property
A - Z
Signature
refId: string;
Related Grafana resources
Opening keynote: What's new in Grafana 9?
Raj Dutt, Myrle Krantz, and Torkel Ödegaard unveil what's new in Grafana 9. Watch the opening keynote presentation from GrafanaCONline 2022. On-demand.
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.