Browse Source

rm datasource request

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

14
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
@ -174,19 +173,6 @@ class GraphCtrl extends MetricsPanelCtrl {
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