mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
135 lines
3.4 KiB
TypeScript
135 lines
3.4 KiB
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 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
import { i18n } from '@kbn/i18n';
|
|
import type { NodeDefinitionWithChildren } from '@kbn/core-chrome-browser';
|
|
import type { DeepLinkId } from '@kbn/deeplinks-ml';
|
|
|
|
export type NavigationID =
|
|
| 'rootNav:ml'
|
|
| 'root'
|
|
| 'anomaly_detection'
|
|
| 'data_frame_analytics'
|
|
| 'model_management'
|
|
| 'data_visualizer'
|
|
| 'aiops_labs';
|
|
|
|
export type MlNodeDefinition = NodeDefinitionWithChildren<DeepLinkId, NavigationID>;
|
|
|
|
export const defaultNavigation: MlNodeDefinition = {
|
|
id: 'rootNav:ml',
|
|
title: i18n.translate('defaultNavigation.ml.machineLearning', {
|
|
defaultMessage: 'Machine learning',
|
|
}),
|
|
icon: 'indexMapping',
|
|
children: [
|
|
{
|
|
title: '',
|
|
id: 'root',
|
|
children: [
|
|
{
|
|
link: 'ml:overview',
|
|
},
|
|
{
|
|
link: 'ml:notifications',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: i18n.translate('defaultNavigation.ml.anomalyDetection', {
|
|
defaultMessage: 'Anomaly Detection',
|
|
}),
|
|
id: 'anomaly_detection',
|
|
children: [
|
|
{
|
|
title: i18n.translate('defaultNavigation.ml.jobs', {
|
|
defaultMessage: 'Jobs',
|
|
}),
|
|
link: 'ml:anomalyDetection',
|
|
},
|
|
{
|
|
link: 'ml:anomalyExplorer',
|
|
},
|
|
{
|
|
link: 'ml:singleMetricViewer',
|
|
},
|
|
{
|
|
link: 'ml:settings',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 'data_frame_analytics',
|
|
title: i18n.translate('defaultNavigation.ml.dataFrameAnalytics', {
|
|
defaultMessage: 'Data frame analytics',
|
|
}),
|
|
children: [
|
|
{
|
|
title: 'Jobs',
|
|
link: 'ml:dataFrameAnalytics',
|
|
},
|
|
{
|
|
link: 'ml:resultExplorer',
|
|
},
|
|
{
|
|
link: 'ml:analyticsMap',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 'model_management',
|
|
title: i18n.translate('defaultNavigation.ml.modelManagement', {
|
|
defaultMessage: 'Model management',
|
|
}),
|
|
children: [
|
|
{
|
|
link: 'ml:nodesOverview',
|
|
},
|
|
{
|
|
link: 'ml:nodes',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 'data_visualizer',
|
|
title: i18n.translate('defaultNavigation.ml.dataVisualizer', {
|
|
defaultMessage: 'Data visualizer',
|
|
}),
|
|
children: [
|
|
{
|
|
title: i18n.translate('defaultNavigation.ml.file', {
|
|
defaultMessage: 'File',
|
|
}),
|
|
link: 'ml:fileUpload',
|
|
},
|
|
{
|
|
title: i18n.translate('defaultNavigation.ml.dataView', {
|
|
defaultMessage: 'Data view',
|
|
}),
|
|
link: 'ml:indexDataVisualizer',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 'aiops_labs',
|
|
title: i18n.translate('defaultNavigation.ml.aiopsLabs', {
|
|
defaultMessage: 'AIOps labs',
|
|
}),
|
|
children: [
|
|
{
|
|
title: i18n.translate('defaultNavigation.ml.explainLogRateSpikes', {
|
|
defaultMessage: 'Explain log rate spikes',
|
|
}),
|
|
link: 'ml:explainLogRateSpikes',
|
|
},
|
|
{
|
|
link: 'ml:logPatternAnalysis',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|