refactor: move history calls to zabbix module
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user