Menu
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Enterprise
Open source
QueryResultMeta interface
Signature
typescript
export interface QueryResultMeta
Import
typescript
import { QueryResultMeta } from '@grafana/data';
Properties
Property | Type | Description |
---|---|---|
alignmentPeriod | string | |
custom | Record<string, any> | DatasSource Specific Values |
executedQueryString | string | This is the raw query sent to the underlying system. All macros and templating as been applied. When metadata contains this value, it will be shown in the query inspector |
gmdMeta | any[] | Legacy data source specific, should be moved to custom |
json | boolean | |
limit | number | |
notices | QueryResultMetaNotice[] | Meta Notices |
preferredVisualisationType | PreferredVisualisationType | Currently used to show results in Explore only in preferred visualisation option |
searchWords | string[] | |
stats | QueryResultMetaStat[] | Stats |
transformations | string[] | Used to track transformation ids that where part of the processing |
alignmentPeriod property
Signature
typescript
alignmentPeriod?: string;
custom property
DatasSource Specific Values
Signature
typescript
custom?: Record<string, any>;
executedQueryString property
This is the raw query sent to the underlying system. All macros and templating as been applied. When metadata contains this value, it will be shown in the query inspector
Signature
typescript
executedQueryString?: string;
gmdMeta property
Legacy data source specific, should be moved to custom
Signature
typescript
gmdMeta?: any[];
json property
Signature
typescript
json?: boolean;
limit property
Signature
typescript
limit?: number;
notices property
Meta Notices
Signature
typescript
notices?: QueryResultMetaNotice[];
preferredVisualisationType property
Currently used to show results in Explore only in preferred visualisation option
Signature
typescript
preferredVisualisationType?: PreferredVisualisationType;
searchWords property
Signature
typescript
searchWords?: string[];
stats property
Stats
Signature
typescript
stats?: QueryResultMetaStat[];
transformations property
Used to track transformation ids that where part of the processing
Signature
typescript
transformations?: string[];
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video
Getting started with Grafana dashboard design
In this webinar, you'll learn how to design stylish and easily accessible Grafana dashboards that tell a story.
Video
Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.