mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PluginExtensions: Adding full targets to the panel menu context (#65861)
* Making sure we add the whole query to the dashboard panel context. * Adding some more tests. * Synced with main.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { DataQuery } from '@grafana/schema';
|
||||
|
||||
import { RawTimeRange, TimeZone } from './time';
|
||||
|
||||
// Plugin Extensions types
|
||||
@@ -73,7 +75,7 @@ export type PluginExtensionPanelContext = {
|
||||
timeRange: RawTimeRange;
|
||||
timeZone: TimeZone;
|
||||
dashboard: Dashboard;
|
||||
targets: Target[];
|
||||
targets: DataQuery[];
|
||||
};
|
||||
|
||||
type Dashboard = {
|
||||
@@ -81,8 +83,3 @@ type Dashboard = {
|
||||
title: string;
|
||||
tags: string[];
|
||||
};
|
||||
|
||||
type Target = {
|
||||
pluginId: string;
|
||||
refId: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user