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

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

View File

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