-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Register ML and Transforms for the kibana home page (#62499)
* [ML] Register ML for the kibana home page * adds transforms * tiny refactor * updating comments Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
e732196
commit 4386d5f
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* 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 { i18n } from '@kbn/i18n'; | ||
import { | ||
HomePublicPluginSetup, | ||
FeatureCatalogueCategory, | ||
} from '../../../../src/plugins/home/public'; | ||
import { PLUGIN_ID } from '../common/constants/app'; | ||
|
||
export const registerFeature = (home: HomePublicPluginSetup) => { | ||
// register ML for the kibana home screen. | ||
// so the file data visualizer appears to allow people to import data | ||
home.environment.update({ ml: true }); | ||
|
||
// register ML so it appears on the Kibana home page | ||
home.featureCatalogue.register({ | ||
id: PLUGIN_ID, | ||
title: i18n.translate('xpack.ml.machineLearningTitle', { | ||
defaultMessage: 'Machine Learning', | ||
}), | ||
description: i18n.translate('xpack.ml.machineLearningDescription', { | ||
defaultMessage: | ||
'Automatically model the normal behavior of your time series data to detect anomalies.', | ||
}), | ||
icon: 'machineLearningApp', | ||
path: '/app/ml', | ||
showOnHomePage: true, | ||
category: FeatureCatalogueCategory.DATA, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* 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 { i18n } from '@kbn/i18n'; | ||
import { | ||
HomePublicPluginSetup, | ||
FeatureCatalogueCategory, | ||
} from '../../../../src/plugins/home/public'; | ||
|
||
export const registerFeature = (home: HomePublicPluginSetup) => { | ||
// register Transforms so it appears on the Kibana home page | ||
home.featureCatalogue.register({ | ||
id: 'transform', | ||
title: i18n.translate('xpack.transform.transformsTitle', { | ||
defaultMessage: 'Transforms', | ||
}), | ||
description: i18n.translate('xpack.transform.transformsDescription', { | ||
defaultMessage: | ||
'Use transforms to pivot existing Elasticsearch indices into summarized or entity-centric indices.', | ||
}), | ||
icon: 'managementApp', // there is currently no Transforms icon, so using the general management app icon | ||
path: '/app/kibana#/management/elasticsearch/transform', | ||
showOnHomePage: true, | ||
category: FeatureCatalogueCategory.ADMIN, | ||
}); | ||
}; |