* Updating everything except the license headers themselves * Applying ESLint rules * Manually replacing the stragglers
45 lines
1.5 KiB
TypeScript
45 lines
1.5 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; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { i18n } from '@kbn/i18n';
|
|
import {
|
|
HomePublicPluginSetup,
|
|
FeatureCatalogueCategory,
|
|
} from '../../../../src/plugins/home/public';
|
|
|
|
export const registerFeatures = (homePlugin: HomePublicPluginSetup) => {
|
|
homePlugin.featureCatalogue.register({
|
|
id: 'metrics',
|
|
title: i18n.translate('xpack.infra.registerFeatures.infraOpsTitle', {
|
|
defaultMessage: 'Metrics',
|
|
}),
|
|
description: i18n.translate('xpack.infra.registerFeatures.infraOpsDescription', {
|
|
defaultMessage:
|
|
'Explore infrastructure metrics and logs for common servers, containers, and services.',
|
|
}),
|
|
icon: 'metricsApp',
|
|
path: `/app/metrics`,
|
|
showOnHomePage: false,
|
|
category: FeatureCatalogueCategory.DATA,
|
|
});
|
|
|
|
homePlugin.featureCatalogue.register({
|
|
id: 'logs',
|
|
title: i18n.translate('xpack.infra.registerFeatures.logsTitle', {
|
|
defaultMessage: 'Logs',
|
|
}),
|
|
description: i18n.translate('xpack.infra.registerFeatures.logsDescription', {
|
|
defaultMessage:
|
|
'Stream logs in real time or scroll through historical views in a console-like experience.',
|
|
}),
|
|
icon: 'logsApp',
|
|
path: `/app/logs`,
|
|
showOnHomePage: false,
|
|
category: FeatureCatalogueCategory.DATA,
|
|
});
|
|
};
|