kibana/x-pack/plugins/metrics_data_access/server/index.ts
Alejandro Fernández Haro fd09c26d15
async-import plugins in the server side (#170856)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-15 00:55:56 -07:00

25 lines
821 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { PluginInitializerContext } from '@kbn/core/server';
export type {
MetricsDataPluginSetup,
GetMetricIndicesOptions,
UpdateMetricIndicesOptions,
DefaultMetricIndicesHandler,
} from './types';
export { metricsDataSourceSavedObjectName } from './saved_objects/metrics_data_source';
export { MetricsDataClient } from './client';
export { MetricsDataClientMock } from './client_mock';
export async function plugin(context: PluginInitializerContext) {
const { MetricsDataPlugin } = await import('./plugin');
return new MetricsDataPlugin(context);
}