mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	Prometheus: Remove timeSeriesQuery query type (#60466)
This commit is contained in:
		@@ -60,7 +60,6 @@ import {
 | 
			
		||||
  PromOptions,
 | 
			
		||||
  PromQuery,
 | 
			
		||||
  PromQueryRequest,
 | 
			
		||||
  PromQueryType,
 | 
			
		||||
  PromScalarData,
 | 
			
		||||
  PromVectorData,
 | 
			
		||||
} from './types';
 | 
			
		||||
@@ -410,7 +409,6 @@ export class PrometheusDatasource
 | 
			
		||||
  processTargetV2(target: PromQuery, request: DataQueryRequest<PromQuery>) {
 | 
			
		||||
    const processedTarget = {
 | 
			
		||||
      ...target,
 | 
			
		||||
      queryType: PromQueryType.timeSeriesQuery,
 | 
			
		||||
      exemplar: this.shouldRunExemplarQuery(target, request),
 | 
			
		||||
      requestId: request.panelId + target.refId,
 | 
			
		||||
      // We need to pass utcOffsetSec to backend to calculate aligned range
 | 
			
		||||
@@ -763,7 +761,6 @@ export class PrometheusDatasource
 | 
			
		||||
      instant: false,
 | 
			
		||||
      exemplar: false,
 | 
			
		||||
      interval: step,
 | 
			
		||||
      queryType: PromQueryType.timeSeriesQuery,
 | 
			
		||||
      refId: 'X',
 | 
			
		||||
      datasource: this.getRef(),
 | 
			
		||||
    };
 | 
			
		||||
 
 | 
			
		||||
@@ -36,10 +36,6 @@ export interface PromOptions extends DataSourceJsonData {
 | 
			
		||||
  prometheusVersion?: string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export enum PromQueryType {
 | 
			
		||||
  timeSeriesQuery = 'timeSeriesQuery',
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type ExemplarTraceIdDestination = {
 | 
			
		||||
  name: string;
 | 
			
		||||
  url?: string;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user