2573cbec08
* Add shard query splitting implementation * Shard query splitting: reuse function from query splitting * Shard query splitting: remove max line limit * Shard query splitting: update test * Shard query splitting: fix types and non-sharded queries * Merge responses: fix log merging * Merge responses: remove legacy code * Query splitting: add support to retry failed requests * Query splitting: unit test request retrying * Query splitting: add unsubscriptions * Shard query splitting: fix retrying * Shard query splitting: switch to dynamic grouping * Shard query splitting: update group size thresholds and fix -1 query * Shard query splitting: update initial group size + don't retry parse errors * Shard query splitting: update unit test * chore: update mock value * Shard query splitting: add support for multiple targets * chore: update description * Shard query splitting: use group targets * chore: filter hidden queries * Shard query splitting: issue initial log query without sharding * Splitting: fix retrying in both methods * Merge responses: keep execution time * Shard query splitting: remove no-shard attempt * Shard query splitting: adjust groups based on rate of change * chore: clean up experiments * Shard query splittng: remove log query restrictions * Shard query splitting: remove fallback to time splitting * Loki: add new query direction * Missing generated file * LokiOptionField: integrate new query direction * Shard query splitting: delegate non-scan queries to time splitting * Query splitting: do not retry queries with parse errors * Loki datasource: add placeholder for feature flag * Shard query splitting: add function with support criteria * Shard query splitting: refactor query modification and shard logs volume * Shard query splitting: update unit tests * chore: Update scan direction tooltip * chore: formatting * LogsVolumePanel: fix missing state in logs volume panel data * Merge responses: better handle missing nanoseconds * LokiQueryOptionFields: display query direction for log queries * loki: process scan direction as backward * Loki datasource: restrict sharding to Explore * Retrying: invert criteria and move to response utils * Formatting * Use log volume refId constant * Fix import order * Create feature flag * Use feature toggle * LogsVolumePanel: prevent flashing no data while streaming
68 lines
1.3 KiB
TypeScript
68 lines
1.3 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 enum QueryEditorMode {
|
|
Builder = 'builder',
|
|
Code = 'code',
|
|
}
|
|
|
|
export enum LokiQueryType {
|
|
Instant = 'instant',
|
|
Range = 'range',
|
|
Stream = 'stream',
|
|
}
|
|
|
|
export enum SupportingQueryType {
|
|
DataSample = 'dataSample',
|
|
InfiniteScroll = 'infiniteScroll',
|
|
LogsSample = 'logsSample',
|
|
LogsVolume = 'logsVolume',
|
|
}
|
|
|
|
export enum LokiQueryDirection {
|
|
Backward = 'backward',
|
|
Forward = 'forward',
|
|
Scan = 'scan',
|
|
}
|
|
|
|
export interface LokiDataQuery 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;
|
|
/**
|
|
* @deprecated, now use step.
|
|
*/
|
|
resolution?: number;
|
|
/**
|
|
* Used to set step value for range queries.
|
|
*/
|
|
step?: string;
|
|
}
|