The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/packages_api/data/dataquery.md

1.9 KiB

+++

-----------------------------------------------------------------------

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

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.
hide boolean true if query is disabled (ie not executed / sent to TSDB)
key string Unique, guid like, string used in explore mode
maxLines number For limiting result lines.
metric any
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;

hide property

true if query is disabled (ie not executed / sent to TSDB)

Signature

hide?: boolean;

key property

Unique, guid like, string used in explore mode

Signature

key?: string;

maxLines property

For limiting result lines.

Signature

maxLines?: number;

metric property

Signature

metric?: any;

refId property

A - Z

Signature

refId: string;