import { i18n } from '@kbn/i18n' ; import { FeatureCatalogueCategory , HomePublicPluginSetup , } from '../../../../src/plugins/home/public' ; import { PLUGIN_ID } from '../common/constants/app' ; export const registerFeature = ( home ) => { home . featureCatalogue . register ( { id : PLUGIN_ID , title : i18n . translate ( 'xpack.ml.machineLearningTitle' , { defaultMessage : 'Machine Learning' , } ) , subtitle : i18n . translate ( 'xpack.ml.machineLearningSubtitle' , { defaultMessage : 'Model, predict, and detect.' , } ) , 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 : false , category : FeatureCatalogueCategory . DATA , solutionId : 'kibana' , order : 500 , } ) ; } ;