mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
44 lines
1.5 KiB
TypeScript
44 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 { CoreSetup, CoreStart, Plugin } from '@kbn/core/public';
|
|
import { appIds } from '@kbn/management-cards-navigation';
|
|
import { getObservabilitySideNavComponent } from './components/side_navigation';
|
|
import {
|
|
ServerlessObservabilityPluginSetup,
|
|
ServerlessObservabilityPluginStart,
|
|
ServerlessObservabilityPluginSetupDependencies,
|
|
ServerlessObservabilityPluginStartDependencies,
|
|
} from './types';
|
|
|
|
export class ServerlessObservabilityPlugin
|
|
implements Plugin<ServerlessObservabilityPluginSetup, ServerlessObservabilityPluginStart>
|
|
{
|
|
public setup(
|
|
_core: CoreSetup,
|
|
_setupDeps: ServerlessObservabilityPluginSetupDependencies
|
|
): ServerlessObservabilityPluginSetup {
|
|
return {};
|
|
}
|
|
|
|
public start(
|
|
core: CoreStart,
|
|
setupDeps: ServerlessObservabilityPluginStartDependencies
|
|
): ServerlessObservabilityPluginStart {
|
|
const { observabilityShared, serverless, management } = setupDeps;
|
|
observabilityShared.setIsSidebarEnabled(false);
|
|
serverless.setProjectHome('/app/observability/landing');
|
|
serverless.setSideNavComponent(getObservabilitySideNavComponent(core, { serverless }));
|
|
management.setupCardsNavigation({
|
|
enabled: true,
|
|
hideLinksTo: [appIds.RULES],
|
|
});
|
|
return {};
|
|
}
|
|
|
|
public stop() {}
|
|
}
|