mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
* loki: implement schema for loki query * removed forgotten code * better types * adjust cue-maturity-level Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * sync docs to schema change * removed forgotten go code * updated schema docs Co-authored-by: J Stickler <julie.stickler@grafana.com> * updated schema docs Co-authored-by: J Stickler <julie.stickler@grafana.com> * update schema docs Co-authored-by: J Stickler <julie.stickler@grafana.com> * update schema docs Co-authored-by: J Stickler <julie.stickler@grafana.com> * updated schema docs Co-authored-by: J Stickler <julie.stickler@grafana.com> * updated schema docs * add documentation to the resolution field * move direction-field to schema * loki: cue: moved deprecated fields to the bottom --------- Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> Co-authored-by: J Stickler <julie.stickler@grafana.com>
64 lines
1.2 KiB
TypeScript
64 lines
1.2 KiB
TypeScript
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// public/app/plugins/gen.go
|
|
// Using jennies:
|
|
// TSTypesJenny
|
|
// PluginTSTypesJenny
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
import * as common from '@grafana/schema';
|
|
|
|
export const DataQueryModelVersion = Object.freeze([0, 0]);
|
|
|
|
export enum QueryEditorMode {
|
|
Builder = 'builder',
|
|
Code = 'code',
|
|
}
|
|
|
|
export enum LokiQueryType {
|
|
Instant = 'instant',
|
|
Range = 'range',
|
|
Stream = 'stream',
|
|
}
|
|
|
|
export enum SupportingQueryType {
|
|
DataSample = 'dataSample',
|
|
LogsSample = 'logsSample',
|
|
LogsVolume = 'logsVolume',
|
|
}
|
|
|
|
export enum LokiQueryDirection {
|
|
Backward = 'backward',
|
|
Forward = 'forward',
|
|
}
|
|
|
|
export interface Loki extends common.DataQuery {
|
|
editorMode?: QueryEditorMode;
|
|
/**
|
|
* The LogQL query.
|
|
*/
|
|
expr: string;
|
|
/**
|
|
* @deprecated, now use queryType.
|
|
*/
|
|
instant?: boolean;
|
|
/**
|
|
* Used to override the name of the series.
|
|
*/
|
|
legendFormat?: string;
|
|
/**
|
|
* Used to limit the number of log rows returned.
|
|
*/
|
|
maxLines?: number;
|
|
/**
|
|
* @deprecated, now use queryType.
|
|
*/
|
|
range?: boolean;
|
|
/**
|
|
* Used to scale the interval value.
|
|
*/
|
|
resolution?: number;
|
|
}
|