wazuh-kibana-app/index.js

40 lines
1.2 KiB
JavaScript
Raw Normal View History

/*
* Wazuh app - Kibana plugin definition module
* Copyright (C) 2018 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Find more information about this on the LICENSE file.
*/
2017-10-27 10:21:56 +00:00
module.exports = (kibana) => new kibana.Plugin({
id: 'wazuh',
name: 'wazuh',
2017-10-27 10:21:56 +00:00
require: ['kibana', 'elasticsearch'],
uiExports: {
app: {
id: 'wazuh',
title: 'Wazuh',
description: 'Wazuh app for Kibana',
icon: 'plugins/wazuh/img/icon.png',
main: 'plugins/wazuh/app',
uses: [
'visTypes',
'visResponseHandlers',
'visRequestHandlers',
'visEditorTypes',
'savedObjectTypes',
'spyModes',
'fieldFormats',
],
injectVars: server => {
return server.plugins.kibana.injectVars(server);
}
2017-10-27 10:21:56 +00:00
}
},
init: require('./init.js')
});