Implement API server client in Scopes (#85266)

This commit is contained in:
Bogdan Matei
2024-04-15 13:43:42 +03:00
committed by GitHub
parent fc6cad797d
commit d379e319d6
12 changed files with 150 additions and 129 deletions

View File

@ -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;
}

View File

@ -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) {