mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Datasources: Use getDefaultQuery in annotations editors (#61870)
+ Add Cloudwatch default annotation
This commit is contained in:
@@ -113,4 +113,9 @@ export interface AnnotationSupport<TQuery extends DataQuery = DataQuery, TAnno =
|
||||
* Specify a custom QueryEditor for the annotation page. If not specified, the standard one will be used
|
||||
*/
|
||||
QueryEditor?: ComponentType<AnnotationQueryEditorProps<TQuery>>;
|
||||
|
||||
/**
|
||||
* Define this method if you want to pre-populate the editor with a default query
|
||||
*/
|
||||
getDefaultQuery?(): Partial<TQuery>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user