From b8f63f8cd363667a68ab8f914842fa26d8f912fc Mon Sep 17 00:00:00 2001 From: rozetko Date: Mon, 21 May 2018 18:36:47 +0300 Subject: [PATCH] rm datasource request --- src/module.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/module.ts b/src/module.ts index 74f1992..b4b9c8f 100644 --- a/src/module.ts +++ b/src/module.ts @@ -38,7 +38,6 @@ class GraphCtrl extends MetricsPanelCtrl { subTabIndex: number; processor: DataProcessor; - datasourceRequest: Object; backendURL: string; analyticsTypes: Array = ['Anomaly detection', 'Pettern Detection (not implemented yet)']; anomalyTypes = []; // TODO: remove it later. Only for alert tab @@ -173,20 +172,7 @@ class GraphCtrl extends MetricsPanelCtrl { this.render(this.seriesList); this.$scope.$digest(); }); - - appEvents.on('ds-request-response', data => { - console.log(data) - let params = data.config.params; - this.datasourceRequest = { - url: params.url, - type: params.inspect.type, - method: params.method, - data: params.data, - ...params - }; - console.log(this.datasourceRequest) - }); - + this.anomalyController.fetchAnomalyTypesStatuses(); }