Skip to content

Commit

Permalink
[ML] AIOps: Fix comment/prop type for lazy component for change point…
Browse files Browse the repository at this point in the history
… detection (#154893)

Fix comment and prop type for lazy component for change point detection.
  • Loading branch information
walterra authored Apr 17, 2023
1 parent e2f3688 commit 87760ee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/aiops/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export const PLUGIN_NAME = 'AIOps';
*/
export const AIOPS_ENABLED = true;

/**
* This is an internal hard coded feature flag so we can easily turn on/off the
* "Change Point Detection UI" during development until the first release.
*/
export const CHANGE_POINT_DETECTION_ENABLED = true;
5 changes: 5 additions & 0 deletions x-pack/plugins/aiops/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export function plugin() {
return new AiopsPlugin();
}

export type { AiopsAppDependencies } from './hooks/use_aiops_app_context';
export type { ExplainLogRateSpikesAppStateProps } from './components/explain_log_rate_spikes';
export type { LogCategorizationAppStateProps } from './components/log_categorization';
export type { ChangePointDetectionAppStateProps } from './components/change_point_detection';

export {
ExplainLogRateSpikes,
LogCategorization,
Expand Down
7 changes: 4 additions & 3 deletions x-pack/plugins/aiops/public/shared_lazy_components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, { FC, Suspense } from 'react';
import { EuiErrorBoundary, EuiLoadingContent } from '@elastic/eui';
import type { ExplainLogRateSpikesAppStateProps } from './components/explain_log_rate_spikes';
import type { LogCategorizationAppStateProps } from './components/log_categorization';
import type { ChangePointDetectionAppStateProps } from './components/change_point_detection';

const ExplainLogRateSpikesAppStateLazy = React.lazy(
() => import('./components/explain_log_rate_spikes')
Expand Down Expand Up @@ -45,10 +46,10 @@ export const LogCategorization: FC<LogCategorizationAppStateProps> = (props) =>

const ChangePointDetectionLazy = React.lazy(() => import('./components/change_point_detection'));
/**
* Lazy-wrapped LogCategorizationAppStateProps React component
* @param {LogCategorizationAppStateProps} props - properties specifying the data on which to run the analysis.
* Lazy-wrapped ChangePointDetectionAppStateProps React component
* @param {ChangePointDetectionAppStateProps} props - properties specifying the data on which to run the analysis.
*/
export const ChangePointDetection: FC<LogCategorizationAppStateProps> = (props) => (
export const ChangePointDetection: FC<ChangePointDetectionAppStateProps> = (props) => (
<LazyWrapper>
<ChangePointDetectionLazy {...props} />
</LazyWrapper>
Expand Down

0 comments on commit 87760ee

Please sign in to comment.