AzureMonitor: Show error message when subscriptions request fails in ConfigEditor (#37837)

* Fix jsdoc description for datasourceRequest

* Align default subscription width with other fields

* AzureMonitor: Show error message when requesting default subscriptions in ConfigEditor

* update snapshots:
This commit is contained in:
Josh Hunt
2021-08-17 16:46:15 +01:00
committed by GitHub
parent 11c848f00d
commit 1e221b6452
4 changed files with 41 additions and 10 deletions

View File

@@ -152,11 +152,12 @@ export interface BackendSrv {
request(options: BackendSrvRequest): Promise<any>;
/**
* @deprecated Use the fetch function instead
* Special function used to communicate with datasources that will emit core
* events that the Grafana QueryInspector and QueryEditor is listening for to be able
* to display datasource query information. Can be skipped by adding `option.silent`
* when initializing the request.
*
* @deprecated Use the fetch function instead
*/
datasourceRequest<T = any>(options: BackendSrvRequest): Promise<FetchResponse<T>>;