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
alignmentPeriodstring
customRecord<string, any>DatasSource Specific Values
gmdMetaany[]Legacy data source specific, should be moved to custom
jsonboolean
limitnumber
noticesQueryResultMetaNotice[]Meta Notices
preferredVisualisationTypePreferredVisualisationTypeCurrently used to show results in Explore only in preferred visualisation option
querystring
rawQuerystring
searchWordsstring[]
statsQueryResultMetaStat[]Stats
transformationsstring[]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>;

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;

query property

Signature

typescript
query?: string;

rawQuery property

Signature

typescript
rawQuery?: string;

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