Graphite: Introduce new query types in annotation editor (#52341)

* Fix comment lines

* Introduce graphite variable editor

* Render results differently based on queryType

* Add comments and fallback values

* Unit tests for different type of graphite queries

* Use metrics/expand endpoint to retrieve metric names
This commit is contained in:
ismail simsek
2022-07-26 18:30:23 +02:00
committed by GitHub
parent 7d78d3f8b2
commit 0a664faeeb
8 changed files with 245 additions and 13 deletions
@@ -94,9 +94,9 @@ export class DataSourcePlugin<
return this.setQueryEditorHelp(ExploreStartPage);
}
/*
/**
* @deprecated -- prefer using {@link StandardVariableSupport} or {@link CustomVariableSupport} or {@link DataSourceVariableSupport} in data source instead
* */
*/
setVariableQueryEditor(VariableQueryEditor: any) {
this.components.VariableQueryEditor = VariableQueryEditor;
return this;