This commit is contained in:
Alec Sears
2019-10-18 16:05:35 -05:00
parent e153473421
commit 2ef9a01a67

View File

@@ -14,10 +14,10 @@ import {
DataSourceInstanceSettings, DataSourceInstanceSettings,
} from '@grafana/ui'; } from '@grafana/ui';
import { BackendSrv, DataSourceSrv } from '@grafana/runtime'; import { BackendSrv, DataSourceSrv } from '@grafana/runtime';
import { ZabbixAlertingService } from './zabbixAlerting.service' import { ZabbixAlertingService } from './zabbixAlerting.service';
import { ZabbixConnectionTestQuery, ZabbixConnectionInfo, TemplateSrv, TSDBResponse } from './types' import { ZabbixConnectionTestQuery, ZabbixConnectionInfo, TemplateSrv, TSDBResponse } from './types';
const DEFAULT_ZABBIX_VERSION = 3 const DEFAULT_ZABBIX_VERSION = 3;
export class ZabbixDatasource extends DataSourceApi { export class ZabbixDatasource extends DataSourceApi {
@@ -30,8 +30,8 @@ export class ZabbixDatasource extends DataSourceApi {
* @param {ZabbixAlertingService} zabbixAlertingSrv * @param {ZabbixAlertingService} zabbixAlertingSrv
*/ */
constructor(instanceSettings, templateSrv, backendSrv, datasourceSrv, zabbixAlertingSrv) { constructor(instanceSettings, templateSrv, backendSrv, datasourceSrv, zabbixAlertingSrv) {
super(instanceSettings) super(instanceSettings);
this.type = 'zabbix' this.type = 'zabbix';
this.templateSrv = templateSrv; this.templateSrv = templateSrv;
this.backendSrv = backendSrv; this.backendSrv = backendSrv;
this.zabbixAlertingSrv = zabbixAlertingSrv; this.zabbixAlertingSrv = zabbixAlertingSrv;