Skip to content

Commit

Permalink
[Beats Management] Initial scaffolding for plugin (#18977)
Browse files Browse the repository at this point in the history
* Initial scaffolding for Beats plugin

* Removing bits not (yet) necessary in initial scaffolding
  • Loading branch information
ycombinator authored and mattapperson committed Aug 7, 2018
1 parent 8ccafd0 commit 410a174
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { watcher } from './plugins/watcher';
import { grokdebugger } from './plugins/grokdebugger';
import { dashboardMode } from './plugins/dashboard_mode';
import { logstash } from './plugins/logstash';
import { beats } from './plugins/beats';
import { apm } from './plugins/apm';
import { licenseManagement } from './plugins/license_management';
import { cloud } from './plugins/cloud';
Expand All @@ -38,6 +39,7 @@ module.exports = function (kibana) {
grokdebugger(kibana),
dashboardMode(kibana),
logstash(kibana),
beats(kibana),
apm(kibana),
licenseManagement(kibana),
cloud(kibana),
Expand Down
7 changes: 7 additions & 0 deletions x-pack/plugins/beats/common/constants/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export { PLUGIN } from './plugin';
9 changes: 9 additions & 0 deletions x-pack/plugins/beats/common/constants/plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export const PLUGIN = {
ID: 'beats'
};
16 changes: 16 additions & 0 deletions x-pack/plugins/beats/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { PLUGIN } from './common/constants';

export function beats(kibana) {
return new kibana.Plugin({
id: PLUGIN.ID,
require: ['kibana', 'elasticsearch', 'xpack_main'],
init: function () {
}
});
}

0 comments on commit 410a174

Please sign in to comment.