forked from sentinl/sentinl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
34 lines (30 loc) · 1.04 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import _ from 'lodash';
export default function (kibana) {
return new kibana.Plugin({
require: ['kibana', 'elasticsearch'],
uiExports: {
spyModes: ['plugins/kaae/button/alarm_button'],
// chromeNavControls: ['plugins/kaae/button/alarm_button'],
app: {
title: 'KaaE',
description: 'Kibana Alert App for Elasticsearch',
main: 'plugins/kaae/app',
icon: 'plugins/kaae/kaae.svg',
injectVars: function (server, options) {
var config = server.config();
return {
kbnIndex: config.get('kibana.index'),
esShardTimeout: config.get('elasticsearch.shardTimeout'),
esApiVersion: config.get('elasticsearch.apiVersion')
};
}
}
},
config: function (Joi) {
return Joi.object({
enabled: Joi.boolean().default(true),
}).default();
},
init: require('./init.js'),
});
};