2020-01-28 02:10:34 +01:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* 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.
|
2020-01-28 02:10:34 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
import { PluginInitializerContext, PluginInitializer } from 'kibana/public';
|
2021-06-15 20:53:42 +02:00
|
|
|
import { lazy } from 'react';
|
2021-03-26 14:48:08 +01:00
|
|
|
import {
|
|
|
|
Plugin,
|
|
|
|
ObservabilityPublicPluginsStart,
|
|
|
|
ObservabilityPublicPluginsSetup,
|
|
|
|
ObservabilityPublicStart,
|
|
|
|
ObservabilityPublicSetup,
|
|
|
|
} from './plugin';
|
|
|
|
export type {
|
|
|
|
ObservabilityPublicSetup,
|
|
|
|
ObservabilityPublicStart,
|
|
|
|
ObservabilityPublicPluginsSetup,
|
|
|
|
ObservabilityPublicPluginsStart,
|
|
|
|
};
|
2021-03-29 07:50:27 +02:00
|
|
|
export { enableInspectEsQueries } from '../common/ui_settings_keys';
|
2020-06-30 19:56:35 +02:00
|
|
|
|
2021-04-20 05:09:51 +02:00
|
|
|
export interface ConfigSchema {
|
2021-05-27 16:43:12 +02:00
|
|
|
unsafe: { alertingExperience: { enabled: boolean }; cases: { enabled: boolean } };
|
2021-04-20 05:09:51 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 14:48:08 +01:00
|
|
|
export const plugin: PluginInitializer<
|
|
|
|
ObservabilityPublicSetup,
|
|
|
|
ObservabilityPublicStart,
|
|
|
|
ObservabilityPublicPluginsSetup,
|
|
|
|
ObservabilityPublicPluginsStart
|
2021-04-20 05:09:51 +02:00
|
|
|
> = (context: PluginInitializerContext<ConfigSchema>) => {
|
2020-01-28 02:10:34 +01:00
|
|
|
return new Plugin(context);
|
|
|
|
};
|
|
|
|
|
2020-07-08 21:52:16 +02:00
|
|
|
export * from './components/shared/action_menu/';
|
2020-02-18 20:22:27 +01:00
|
|
|
|
2021-01-25 17:08:31 +01:00
|
|
|
export type { UXMetrics } from './components/shared/core_web_vitals/';
|
2021-03-23 09:25:00 +01:00
|
|
|
export {
|
|
|
|
getCoreVitalsComponent,
|
|
|
|
HeaderMenuPortal,
|
|
|
|
FieldValueSuggestions,
|
|
|
|
} from './components/shared/';
|
2020-10-05 19:15:13 +02:00
|
|
|
|
2021-06-14 20:28:08 +02:00
|
|
|
export type { LazyObservabilityPageTemplateProps } from './components/shared';
|
|
|
|
|
2020-02-18 20:22:27 +01:00
|
|
|
export {
|
|
|
|
useTrackPageview,
|
|
|
|
useUiTracker,
|
2021-02-08 21:26:57 +01:00
|
|
|
useTrackMetric,
|
2020-02-18 20:22:27 +01:00
|
|
|
UiTracker,
|
|
|
|
TrackMetricOptions,
|
|
|
|
METRIC_TYPE,
|
|
|
|
} from './hooks/use_track_metric';
|
|
|
|
|
2021-06-15 20:53:42 +02:00
|
|
|
export const LazyAlertsFlyout = lazy(() => import('./pages/alerts/alerts_flyout'));
|
2021-01-13 10:48:37 +01:00
|
|
|
export { useFetcher, FETCH_STATUS } from './hooks/use_fetcher';
|
2020-12-07 14:35:19 +01:00
|
|
|
|
2020-02-18 20:22:27 +01:00
|
|
|
export * from './typings';
|
2020-09-14 16:10:04 +02:00
|
|
|
|
|
|
|
export { useChartTheme } from './hooks/use_chart_theme';
|
2021-06-04 18:04:40 +02:00
|
|
|
export { useBreadcrumbs } from './hooks/use_breadcrumbs';
|
2020-09-14 16:10:04 +02:00
|
|
|
export { useTheme } from './hooks/use_theme';
|
2021-02-01 21:09:33 +01:00
|
|
|
export { getApmTraceUrl } from './utils/get_apm_trace_url';
|
2021-04-05 15:26:48 +02:00
|
|
|
export { createExploratoryViewUrl } from './components/shared/exploratory_view/configurations/utils';
|
2021-07-16 21:26:33 +02:00
|
|
|
export { ALL_VALUES_SELECTED } from './components/shared/field_value_suggestions/field_value_combobox';
|
2021-06-17 19:19:16 +02:00
|
|
|
export { FilterValueLabel } from './components/shared/filter_value_label/filter_value_label';
|
2021-04-30 19:08:45 +02:00
|
|
|
export type { SeriesUrl } from './components/shared/exploratory_view/types';
|
2021-04-15 18:25:50 +02:00
|
|
|
|
2021-07-13 11:59:11 +02:00
|
|
|
export type {
|
|
|
|
ObservabilityRuleTypeFormatter,
|
|
|
|
ObservabilityRuleTypeModel,
|
|
|
|
ObservabilityRuleTypeRegistry,
|
|
|
|
} from './rules/create_observability_rule_type_registry';
|
2021-05-13 17:12:47 +02:00
|
|
|
export { createObservabilityRuleTypeRegistryMock } from './rules/observability_rule_type_registry_mock';
|