mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Datasources: Add support for getDetDefaultQuery in variable editor (#62026)
+Cloudwatch implementation
This commit is contained in:
@@ -35,6 +35,11 @@ export abstract class VariableSupportBase<
|
||||
TOptions extends DataSourceJsonData = DataSourceOptionsType<DSType>
|
||||
> {
|
||||
abstract getType(): VariableSupportType;
|
||||
|
||||
/**
|
||||
* Define this method in the config if you want to pre-populate the editor with a default query.
|
||||
*/
|
||||
getDefaultQuery?(): Partial<TQuery>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user