| 
									
										
										
										
											2023-02-03 00:18:30 +08:00
										 |  |  | // 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; | 
					
						
							| 
									
										
										
										
											2023-06-06 19:20:27 +08:00
										 |  |  |   /** | 
					
						
							|  |  |  |    * Used to set step value for range queries. | 
					
						
							|  |  |  |    */ | 
					
						
							|  |  |  |   step?: string; | 
					
						
							| 
									
										
										
										
											2023-02-03 00:18:30 +08:00
										 |  |  | } |