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

PropertyTypeDescription
alignmentPeriodnumber
customRecord<string, any>DatasSource Specific Values
dataTopicDataTopicOptionally identify which topic the frame should be assigned to. A value specified in the response will override what the request asked for.
executedQueryStringstringThis 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
gmdMetaany[]Legacy data source specific, should be moved to custom
instantboolean
jsonboolean
limitnumber
noticesQueryResultMetaNotice[]Meta Notices
preferredVisualisationTypePreferredVisualisationTypeCurrently used to show results in Explore only in preferred visualisation option
searchWordsstring[]
statsQueryResultMetaStat[]Stats
transformationsstring[]Used to track transformation ids that where part of the processing

alignmentPeriod property

Signature

typescript
alignmentPeriod?: number;

custom property

DatasSource Specific Values

Signature

typescript
custom?: Record<string, any>;

dataTopic property

Optionally identify which topic the frame should be assigned to. A value specified in the response will override what the request asked for.

Signature

typescript
dataTopic?: DataTopic;

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[];

instant property

Signature

typescript
instant?: boolean;

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[];