mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
## Summary disables features under Application for serverless-essentials. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
56 lines
1.6 KiB
TypeScript
56 lines
1.6 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 type { PluginInitializerContext, Plugin, CoreSetup } from '@kbn/core/server';
|
|
|
|
import {
|
|
OBSERVABILITY_PROJECT_SETTINGS,
|
|
OBSERVABILITY_AI_ASSISTANT_PROJECT_SETTINGS,
|
|
} from '@kbn/serverless-observability-settings';
|
|
import type {
|
|
ServerlessObservabilityPluginSetup,
|
|
ServerlessObservabilityPluginStart,
|
|
SetupDependencies,
|
|
StartDependencies,
|
|
} from './types';
|
|
|
|
export class ServerlessObservabilityPlugin
|
|
implements
|
|
Plugin<
|
|
ServerlessObservabilityPluginSetup,
|
|
ServerlessObservabilityPluginStart,
|
|
SetupDependencies,
|
|
StartDependencies
|
|
>
|
|
{
|
|
constructor(_initializerContext: PluginInitializerContext) {}
|
|
|
|
public setup(
|
|
_coreSetup: CoreSetup<StartDependencies, ServerlessObservabilityPluginStart>,
|
|
pluginsSetup: SetupDependencies
|
|
) {
|
|
pluginsSetup.serverless.setupProjectSettings([
|
|
...OBSERVABILITY_PROJECT_SETTINGS,
|
|
...(pluginsSetup.observabilityAIAssistant ? OBSERVABILITY_AI_ASSISTANT_PROJECT_SETTINGS : []),
|
|
]);
|
|
_coreSetup.pricing.registerProductFeatures([
|
|
{
|
|
id: 'observability:complete_overview',
|
|
products: [{ name: 'observability', tier: 'complete' }],
|
|
description:
|
|
'Observability Overview Complete - Enables overview of the Observability solution.',
|
|
},
|
|
]);
|
|
return {};
|
|
}
|
|
|
|
public start() {
|
|
return {};
|
|
}
|
|
|
|
public stop() {}
|
|
}
|