fix error handling for history query
This commit is contained in:
3
dist/datasource-zabbix/datasource.js
vendored
3
dist/datasource-zabbix/datasource.js
vendored
@@ -417,9 +417,6 @@ System.register(['lodash', 'app/core/utils/datemath', './utils', './migrations',
|
|||||||
return _this3.applyDataProcessingFunctions(timeseries, target);
|
return _this3.applyDataProcessingFunctions(timeseries, target);
|
||||||
}).then(function (timeseries) {
|
}).then(function (timeseries) {
|
||||||
return downsampleSeries(timeseries, options);
|
return downsampleSeries(timeseries, options);
|
||||||
}).catch(function (error) {
|
|
||||||
console.log(error);
|
|
||||||
return [];
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
2
dist/datasource-zabbix/datasource.js.map
vendored
2
dist/datasource-zabbix/datasource.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -208,11 +208,7 @@ class ZabbixAPIDatasource {
|
|||||||
|
|
||||||
return getHistoryPromise
|
return getHistoryPromise
|
||||||
.then(timeseries => this.applyDataProcessingFunctions(timeseries, target))
|
.then(timeseries => this.applyDataProcessingFunctions(timeseries, target))
|
||||||
.then(timeseries => downsampleSeries(timeseries, options))
|
.then(timeseries => downsampleSeries(timeseries, options));
|
||||||
.catch(error => {
|
|
||||||
console.log(error);
|
|
||||||
return [];
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getTrendValueType(target) {
|
getTrendValueType(target) {
|
||||||
|
|||||||
Reference in New Issue
Block a user