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 | string | null |
For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined. |
dataTopic | DataTopic |
The data topic results should be attached to |
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?: string | null;
dataTopic property
The data topic results should be attached to
Signature
dataTopic?: DataTopic;
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 video resources
Getting started with Grafana
Take a guided tour of Grafana and learn how to monitor a web service using Prometheus and Loki in this beginner-friendly webinar.
All about Grafana plugins: Visualizing disparate data sources in one place
Grafana Enterprise plugins are integrations with other commercial monitoring tools (such as Datadog, Splunk, New Relic, ServiceNow, Oracle, and Dynatrace) that are created, maintained, and supported by the Grafana Labs team.
Demo: 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.