refactor: move history calls to zabbix module

This commit is contained in:
Alexander Zobnin
2018-06-08 14:55:53 +03:00
parent 763b3a5f6e
commit 95bbede3da
5 changed files with 87 additions and 72 deletions

View File

@@ -95,7 +95,7 @@ export class ZabbixDBConnector {
}
getTrends(items, timeFrom, timeTill, options) {
let {intervalMs, consolidateBy} = options;
let { intervalMs, consolidateBy } = options;
let intervalSec = Math.ceil(intervalMs / 1000);
consolidateBy = consolidateBy || 'avg';

View File

@@ -8,8 +8,6 @@ import { ZabbixAPICore } from './zabbixAPICore';
* Wraps API calls and provides high-level methods.
*/
export class ZabbixAPIConnector {
/** @ngInject */
constructor(api_url, username, password, basicAuth, withCredentials, backendSrv) {
this.url = api_url;
this.username = username;