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