Files
grafana-zabbix/plugins/datasource-zabbix/module.js
2016-02-06 18:06:36 +03:00

31 lines
811 B
JavaScript

define([
'./datasource'
],
function (ZabbixAPIDatasource) {
'use strict';
function ZabbixQueryCtrl() {
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'};
}
function ZabbixQueryOptionsCtrl() {
return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'};
}
function ZabbixAnnotationsQueryCtrl() {
return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'};
}
function ZabbixConfigCtrl() {
return {templateUrl: 'public/plugins/zabbix/partials/config.html'};
}
return {
Datasource: ZabbixAPIDatasource,
ConfigCtrl: ZabbixConfigCtrl,
QueryCtrl: ZabbixQueryCtrl,
QueryOptionsCtrl: ZabbixQueryOptionsCtrl,
AnnotationsQueryCtrl: ZabbixAnnotationsQueryCtrl
};
});