Files
grafana-zabbix/plugins/datasource-zabbix/module.js
Alexander Zobnin ca5d68a1c8 Working on #142 - fixed plugin.json and
datasource constructor (module.js).
2016-01-16 13:42:12 +03:00

31 lines
807 B
JavaScript

define([
'./datasource',
],
function (ZabbixAPIDatasource) {
'use strict';
function metricsQueryEditor() {
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'};
}
function metricsQueryOptions() {
return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'};
}
function annotationsQueryEditor() {
return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'};
}
function configView() {
return {templateUrl: 'public/plugins/zabbix/partials/config.html'};
}
return {
Datasource: ZabbixAPIDatasource,
configView: configView,
annotationsQueryEditor: annotationsQueryEditor,
metricsQueryEditor: metricsQueryEditor,
metricsQueryOptions: metricsQueryOptions,
};
});