Datasources: Add support for getDetDefaultQuery in variable editor (#62026)

+Cloudwatch implementation
This commit is contained in:
Ida Štambuk authored and GitHub committed 2023-01-30 10:58:43 +01:00
1 parent ae8c61c0b2
commit a9d44aa795
5 files changed
+72 -3

No files matched your search

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