mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
Implement API server client in Scopes (#85266)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Scope } from '@grafana/data';
|
||||
import { ScopeSpec } from '@grafana/data';
|
||||
import * as common from '@grafana/schema';
|
||||
|
||||
export enum QueryEditorMode {
|
||||
@ -45,5 +45,5 @@ export interface Prometheus extends common.DataQuery {
|
||||
/**
|
||||
* A scope object that will be used by Prometheus
|
||||
*/
|
||||
scope?: Scope;
|
||||
scope?: ScopeSpec;
|
||||
}
|
||||
|
@ -369,7 +369,7 @@ export class PrometheusDatasource
|
||||
};
|
||||
|
||||
if (config.featureToggles.promQLScope) {
|
||||
processedTarget.scope = request.scope;
|
||||
processedTarget.scope = request.scope?.spec;
|
||||
}
|
||||
|
||||
if (target.instant && target.range) {
|
||||
|
Reference in New Issue
Block a user