2020-03-20 19:02:15 +01:00
|
|
|
/*
|
|
|
|
* 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 { TypeOf } from '@kbn/config-schema';
|
|
|
|
import { PluginInitializerContext, PluginConfigDescriptor } from '../../../../src/core/server';
|
|
|
|
import { Plugin } from './plugin';
|
|
|
|
import { configSchema } from './config';
|
|
|
|
import { deprecations } from './deprecations';
|
|
|
|
|
2020-04-30 21:59:35 +02:00
|
|
|
export { MonitoringConfig } from './config';
|
2020-03-20 19:02:15 +01:00
|
|
|
export const plugin = (initContext: PluginInitializerContext) => new Plugin(initContext);
|
|
|
|
export const config: PluginConfigDescriptor<TypeOf<typeof configSchema>> = {
|
|
|
|
schema: configSchema,
|
|
|
|
deprecations,
|
2020-04-30 21:59:35 +02:00
|
|
|
exposeToBrowser: {
|
|
|
|
enabled: true,
|
|
|
|
ui: true,
|
|
|
|
kibana: true,
|
|
|
|
},
|
2020-03-20 19:02:15 +01:00
|
|
|
};
|