kibana/x-pack/solutions/observability/plugins/serverless_observability/server/plugin.ts
Bryce Buchanan d157214e1a
Logs Essentials for Observability (#223030)
## 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>
2025-06-25 00:08:51 +02:00

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() {}
}