Browse Source

rm datasource request

master
rozetko 7 years ago
parent
commit
b8f63f8cd3
  1. 16
      src/module.ts

16
src/module.ts

@ -38,7 +38,6 @@ class GraphCtrl extends MetricsPanelCtrl {
subTabIndex: number; subTabIndex: number;
processor: DataProcessor; processor: DataProcessor;
datasourceRequest: Object;
backendURL: string; backendURL: string;
analyticsTypes: Array<String> = ['Anomaly detection', 'Pettern Detection (not implemented yet)']; analyticsTypes: Array<String> = ['Anomaly detection', 'Pettern Detection (not implemented yet)'];
anomalyTypes = []; // TODO: remove it later. Only for alert tab anomalyTypes = []; // TODO: remove it later. Only for alert tab
@ -173,20 +172,7 @@ class GraphCtrl extends MetricsPanelCtrl {
this.render(this.seriesList); this.render(this.seriesList);
this.$scope.$digest(); 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(); this.anomalyController.fetchAnomalyTypesStatuses();
} }

Loading…
Cancel
Save