diff --git a/x-pack/plugins/observability_solution/apm/server/assistant_functions/index.ts b/x-pack/plugins/observability_solution/apm/server/assistant_functions/index.ts index 6a65e6126ff22..a3993db4b8a75 100644 --- a/x-pack/plugins/observability_solution/apm/server/assistant_functions/index.ts +++ b/x-pack/plugins/observability_solution/apm/server/assistant_functions/index.ts @@ -11,7 +11,6 @@ import type { RegistrationCallback, RegisterFunction, } from '@kbn/observability-ai-assistant-plugin/server/service/types'; -import type { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import type { APMConfig } from '..'; import type { ApmFeatureFlags } from '../../common/apm_feature_flags'; import { APMEventClient } from '../lib/helpers/create_es_client/create_apm_event_client'; @@ -38,7 +37,6 @@ export function registerAssistantFunctions({ featureFlags, logger, kibanaVersion, - ruleDataClient, plugins, }: { coreSetup: CoreSetup; @@ -46,7 +44,6 @@ export function registerAssistantFunctions({ featureFlags: ApmFeatureFlags; logger: Logger; kibanaVersion: string; - ruleDataClient: IRuleDataClient; plugins: APMRouteHandlerResources['plugins']; }): RegistrationCallback { return async ({ resources, functions: { registerFunction }, scopes }) => { @@ -69,7 +66,6 @@ export function registerAssistantFunctions({ featureFlags, logger, kibanaVersion, - ruleDataClient, plugins, getApmIndices: async () => { const coreContext = await resources.context.core; diff --git a/x-pack/plugins/observability_solution/apm/server/plugin.ts b/x-pack/plugins/observability_solution/apm/server/plugin.ts index 7e93a5f3c3324..b26c99b57375f 100644 --- a/x-pack/plugins/observability_solution/apm/server/plugin.ts +++ b/x-pack/plugins/observability_solution/apm/server/plugin.ts @@ -7,16 +7,10 @@ import { CoreSetup, CoreStart, Logger, Plugin, PluginInitializerContext } from '@kbn/core/server'; import { isEmpty, mapValues } from 'lodash'; -import { Dataset } from '@kbn/rule-registry-plugin/server'; -import { mappingFromFieldMap } from '@kbn/alerting-plugin/common'; import { alertsLocatorID } from '@kbn/observability-plugin/common'; import { APMConfig, APM_SERVER_FEATURE_ID } from '.'; import { APM_FEATURE, registerFeaturesUsage } from './feature'; -import { - registerApmRuleTypes, - apmRuleTypeAlertFieldMap, - APM_RULE_TYPE_ALERT_CONTEXT, -} from './routes/alerts/register_apm_rule_types'; +import { registerApmRuleTypes } from './routes/alerts/register_apm_rule_types'; import { registerFleetPolicyCallbacks } from './routes/fleet/register_fleet_policy_callbacks'; import { createApmTelemetry } from './lib/apm_telemetry'; import { getInternalSavedObjectsClient } from './lib/helpers/get_internal_saved_objects_client'; @@ -89,20 +83,6 @@ export class APMPlugin const getPluginStart = () => core.getStartServices().then(([coreStart, pluginStart]) => pluginStart); - const { ruleDataService } = plugins.ruleRegistry; - const ruleDataClient = ruleDataService.initializeIndex({ - feature: APM_SERVER_FEATURE_ID, - registrationContext: APM_RULE_TYPE_ALERT_CONTEXT, - dataset: Dataset.alerts, - componentTemplateRefs: [], - componentTemplates: [ - { - name: 'mappings', - mappings: mappingFromFieldMap(apmRuleTypeAlertFieldMap, 'strict'), - }, - ], - }); - const resourcePlugins = mapValues(plugins, (value, key) => { return { setup: value, @@ -156,7 +136,6 @@ export class APMPlugin config: currentConfig, featureFlags: currentConfig.featureFlags, repository: getGlobalApmServerRouteRepository(), - ruleDataClient, plugins: resourcePlugins, telemetryUsageCounter, kibanaVersion, @@ -173,7 +152,6 @@ export class APMPlugin logger: this.logger!.get('rule'), ml: plugins.ml, observability: plugins.observability, - ruleDataClient, alertsLocator: plugins.share.url.locators.get(alertsLocatorID), }); } @@ -218,7 +196,6 @@ export class APMPlugin kibanaVersion, logger: this.logger.get('assistant'), plugins: resourcePlugins, - ruleDataClient, }) ); diff --git a/x-pack/plugins/observability_solution/apm/server/routes/alerts/register_apm_rule_types.ts b/x-pack/plugins/observability_solution/apm/server/routes/alerts/register_apm_rule_types.ts index 4c57ef4a10e1d..19550c4028742 100644 --- a/x-pack/plugins/observability_solution/apm/server/routes/alerts/register_apm_rule_types.ts +++ b/x-pack/plugins/observability_solution/apm/server/routes/alerts/register_apm_rule_types.ts @@ -13,7 +13,6 @@ import { type IRuleTypeAlerts, } from '@kbn/alerting-plugin/server'; import { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import { MlPluginSetup } from '@kbn/ml-plugin/server'; import { legacyExperimentalFieldMap, ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; @@ -107,7 +106,6 @@ export interface RegisterRuleDependencies { logger: Logger; ml?: MlPluginSetup; observability: ObservabilityPluginSetup; - ruleDataClient: IRuleDataClient; alertsLocator?: LocatorPublic; } diff --git a/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts b/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts index 531b5c9558a56..862e4f759b94c 100644 --- a/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts +++ b/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts @@ -84,7 +84,6 @@ export function registerAnomalyRuleType({ basePath, logger, ml, - ruleDataClient, }: RegisterRuleDependencies) { if (!alerting) { throw new Error('Cannot register anomaly rule type. The alerting plugin needs to be enabled.'); diff --git a/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts b/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts index 8fb4000645a2e..ab98c88f0e4a6 100644 --- a/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts +++ b/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts @@ -91,7 +91,6 @@ export function registerErrorCountRuleType({ basePath, getApmIndices, logger, - ruleDataClient, }: RegisterRuleDependencies) { if (!alerting) { throw new Error( diff --git a/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts b/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts index 1090a1c91d54b..6c94668d39e96 100644 --- a/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts +++ b/x-pack/plugins/observability_solution/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts @@ -100,7 +100,6 @@ export function registerTransactionErrorRateRuleType({ basePath, getApmIndices, logger, - ruleDataClient, }: RegisterRuleDependencies) { if (!alerting) { throw new Error( diff --git a/x-pack/plugins/observability_solution/apm/server/routes/alerts/test_utils/index.ts b/x-pack/plugins/observability_solution/apm/server/routes/alerts/test_utils/index.ts index ce3e67baea1d6..ebf09e3b1ec64 100644 --- a/x-pack/plugins/observability_solution/apm/server/routes/alerts/test_utils/index.ts +++ b/x-pack/plugins/observability_solution/apm/server/routes/alerts/test_utils/index.ts @@ -7,8 +7,6 @@ import { IBasePath, Logger } from '@kbn/core/server'; import { elasticsearchServiceMock } from '@kbn/core/server/mocks'; -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; -import { ruleRegistryMocks } from '@kbn/rule-registry-plugin/server/mocks'; import { PluginSetupContract as AlertingPluginSetupContract } from '@kbn/alerting-plugin/server'; import { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; import { DEFAULT_FLAPPING_SETTINGS } from '@kbn/alerting-plugin/common'; @@ -75,9 +73,6 @@ export const createRuleTypeMocks = () => { getAlertDetailsConfig: jest.fn().mockReturnValue({ apm: true }), } as unknown as ObservabilityPluginSetup, logger: loggerMock, - ruleDataClient: ruleRegistryMocks.createRuleDataClient( - '.alerts-observability.apm.alerts' - ) as IRuleDataClient, } as unknown as RegisterRuleDependencies; return { diff --git a/x-pack/plugins/observability_solution/apm/server/routes/apm_routes/register_apm_server_routes.ts b/x-pack/plugins/observability_solution/apm/server/routes/apm_routes/register_apm_server_routes.ts index 5a2af3e7dc066..854d05d50e291 100644 --- a/x-pack/plugins/observability_solution/apm/server/routes/apm_routes/register_apm_server_routes.ts +++ b/x-pack/plugins/observability_solution/apm/server/routes/apm_routes/register_apm_server_routes.ts @@ -25,7 +25,6 @@ import { jsonRt, mergeRt } from '@kbn/io-ts-utils'; import { InspectResponse } from '@kbn/observability-plugin/typings/common'; import apm from 'elastic-apm-node'; import { VersionedRouteRegistrar } from '@kbn/core-http-server'; -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { ApmFeatureFlags } from '../../../common/apm_feature_flags'; import type { @@ -59,7 +58,6 @@ export function registerRoutes({ plugins, logger, config, - ruleDataClient, telemetryUsageCounter, kibanaVersion, }: { @@ -69,7 +67,6 @@ export function registerRoutes({ logger: APMRouteHandlerResources['logger']; repository: ServerRouteRepository; config: APMRouteHandlerResources['config']; - ruleDataClient: APMRouteHandlerResources['ruleDataClient']; telemetryUsageCounter?: TelemetryUsageCounter; kibanaVersion: string; }) { @@ -135,7 +132,6 @@ export function registerRoutes({ }, validatedParams ), - ruleDataClient, kibanaVersion, }).then((value: Record | undefined | null) => { return { @@ -268,7 +264,6 @@ export interface APMRouteHandlerResources { logger: Logger; core: APMCore; plugins: Plugins; - ruleDataClient: IRuleDataClient; telemetryUsageCounter?: TelemetryUsageCounter; kibanaVersion: string; getApmIndices: () => Promise; diff --git a/x-pack/plugins/observability_solution/infra/server/lib/infra_types.ts b/x-pack/plugins/observability_solution/infra/server/lib/infra_types.ts index 10f80fbe86c76..8c97ecf48bc3d 100644 --- a/x-pack/plugins/observability_solution/infra/server/lib/infra_types.ts +++ b/x-pack/plugins/observability_solution/infra/server/lib/infra_types.ts @@ -42,8 +42,6 @@ export interface InfraBackendLibs extends InfraDomainLibs { basePath: IBasePath; configuration: InfraConfig; framework: KibanaFramework; - logsRules: RulesServiceSetup; - metricsRules: RulesServiceSetup; sources: InfraSources; sourceStatus: InfraSourceStatus; getAlertDetailsConfig: () => ObservabilityConfig['unsafe']['alertDetails']; diff --git a/x-pack/plugins/observability_solution/infra/server/plugin.ts b/x-pack/plugins/observability_solution/infra/server/plugin.ts index b8becb916a4e3..d0d0ef3821b7d 100644 --- a/x-pack/plugins/observability_solution/infra/server/plugin.ts +++ b/x-pack/plugins/observability_solution/infra/server/plugin.ts @@ -25,7 +25,6 @@ import { } from '@kbn/observability-shared-plugin/common'; import { type AlertsLocatorParams, alertsLocatorID } from '@kbn/observability-plugin/common'; import { mapValues } from 'lodash'; -import { LOGS_FEATURE_ID, METRICS_FEATURE_ID } from '../common/constants'; import { publicConfigKeys } from '../common/plugin_config_types'; import { LOGS_FEATURE, METRICS_FEATURE } from './features'; import { registerRoutes } from './infra_server'; @@ -34,10 +33,6 @@ import { KibanaFramework } from './lib/adapters/framework/kibana_framework_adapt import { KibanaMetricsAdapter } from './lib/adapters/metrics/kibana_metrics_adapter'; import { InfraElasticsearchSourceStatusAdapter } from './lib/adapters/source_status'; import { registerRuleTypes } from './lib/alerting'; -import { - LOGS_RULES_ALERT_CONTEXT, - METRICS_RULES_ALERT_CONTEXT, -} from './lib/alerting/register_rule_types'; import { InfraMetricsDomain } from './lib/domains/metrics_domain'; import { InfraBackendLibs, InfraDomainLibs } from './lib/infra_types'; import { infraSourceConfigurationSavedObjectType, InfraSources } from './lib/sources'; @@ -49,7 +44,6 @@ import { } from './saved_objects'; import { InventoryViewsService } from './services/inventory_views'; import { MetricsExplorerViewsService } from './services/metrics_explorer_views'; -import { RulesService } from './services/rules'; import { InfraConfig, InfraPluginCoreSetup, @@ -153,8 +147,6 @@ export class InfraServerPlugin public libs!: InfraBackendLibs; public logger: Logger; - private logsRules: RulesService; - private metricsRules: RulesService; private inventoryViews: InventoryViewsService; private metricsExplorerViews?: MetricsExplorerViewsService; @@ -162,17 +154,6 @@ export class InfraServerPlugin this.config = context.config.get(); this.logger = context.logger.get(); - this.logsRules = new RulesService( - LOGS_FEATURE_ID, - LOGS_RULES_ALERT_CONTEXT, - this.logger.get('logsRules') - ); - this.metricsRules = new RulesService( - METRICS_FEATURE_ID, - METRICS_RULES_ALERT_CONTEXT, - this.logger.get('metricsRules') - ); - this.inventoryViews = new InventoryViewsService(this.logger.get('inventoryViews')); this.metricsExplorerViews = this.config.featureFlags.metricsExplorerEnabled ? new MetricsExplorerViewsService(this.logger.get('metricsExplorerViews')) @@ -251,8 +232,6 @@ export class InfraServerPlugin sourceStatus, ...domainLibs, handleEsError, - logsRules: this.logsRules.setup(core, plugins), - metricsRules: this.metricsRules.setup(core, plugins), getStartServices: () => core.getStartServices(), getAlertDetailsConfig: () => plugins.observability.getAlertDetailsConfig(), logger: this.logger, diff --git a/x-pack/plugins/observability_solution/infra/server/services/rules/types.ts b/x-pack/plugins/observability_solution/infra/server/services/rules/types.ts index 68ae0bd95b410..e1898988ff0c8 100644 --- a/x-pack/plugins/observability_solution/infra/server/services/rules/types.ts +++ b/x-pack/plugins/observability_solution/infra/server/services/rules/types.ts @@ -6,7 +6,7 @@ */ import { PluginSetupContract as AlertingPluginSetup } from '@kbn/alerting-plugin/server'; -import { IRuleDataClient, RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server'; +import { RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server'; export interface RulesServiceSetupDeps { alerting: AlertingPluginSetup; ruleRegistry: RuleRegistryPluginSetupContract; @@ -15,9 +15,7 @@ export interface RulesServiceSetupDeps { // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface RulesServiceStartDeps {} -export interface RulesServiceSetup { - ruleDataClient: IRuleDataClient; -} +export interface RulesServiceSetup {} // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface RulesServiceStart {} diff --git a/x-pack/plugins/observability_solution/synthetics/server/plugin.ts b/x-pack/plugins/observability_solution/synthetics/server/plugin.ts index d327c36b3fe90..d263f3780975b 100644 --- a/x-pack/plugins/observability_solution/synthetics/server/plugin.ts +++ b/x-pack/plugins/observability_solution/synthetics/server/plugin.ts @@ -13,8 +13,6 @@ import { SavedObjectsClient, SavedObjectsClientContract, } from '@kbn/core/server'; -import { mappingFromFieldMap } from '@kbn/alerting-plugin/common'; -import { Dataset } from '@kbn/rule-registry-plugin/server'; import { SyntheticsPluginsSetupDependencies, SyntheticsPluginsStartDependencies, @@ -28,8 +26,6 @@ import { registerSyntheticsSavedObjects } from './saved_objects/saved_objects'; import { UptimeConfig } from './config'; import { SyntheticsService } from './synthetics_service/synthetics_service'; import { syntheticsServiceApiKey } from './saved_objects/service_api_key'; -import { SYNTHETICS_RULE_TYPES_ALERT_CONTEXT } from '../common/constants/synthetics_alerts'; -import { syntheticsRuleTypeFieldMap } from './alert_rules/common'; export class Plugin implements PluginType { private savedObjectsClient?: SavedObjectsClientContract; @@ -47,21 +43,6 @@ export class Plugin implements PluginType { public setup(core: CoreSetup, plugins: SyntheticsPluginsSetupDependencies) { const config = this.initContext.config.get(); - const { ruleDataService } = plugins.ruleRegistry; - - const ruleDataClient = ruleDataService.initializeIndex({ - feature: 'uptime', - registrationContext: SYNTHETICS_RULE_TYPES_ALERT_CONTEXT, - dataset: Dataset.alerts, - componentTemplateRefs: [], - componentTemplates: [ - { - name: 'mappings', - mappings: mappingFromFieldMap(syntheticsRuleTypeFieldMap, 'strict'), - }, - ], - }); - this.server = { config, router: core.http.createRouter(), @@ -85,7 +66,7 @@ export class Plugin implements PluginType { plugins.features.registerKibanaFeature(syntheticsFeature); - initSyntheticsServer(this.server, this.syntheticsMonitorClient, plugins, ruleDataClient); + initSyntheticsServer(this.server, this.syntheticsMonitorClient, plugins); registerSyntheticsSavedObjects(core.savedObjects, plugins.encryptedSavedObjects); diff --git a/x-pack/plugins/observability_solution/synthetics/server/server.ts b/x-pack/plugins/observability_solution/synthetics/server/server.ts index 77937c57590e7..6ae6d29993962 100644 --- a/x-pack/plugins/observability_solution/synthetics/server/server.ts +++ b/x-pack/plugins/observability_solution/synthetics/server/server.ts @@ -4,7 +4,6 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import { registerSyntheticsTLSCheckRule } from './alert_rules/tls_rule/tls_rule'; import { registerSyntheticsStatusCheckRule } from './alert_rules/status_rule/monitor_status_rule'; import { SyntheticsPluginsSetupDependencies, SyntheticsServerSetup } from './types'; @@ -16,8 +15,7 @@ import { syntheticsAppPublicRestApiRoutes, syntheticsAppRestApiRoutes } from './ export const initSyntheticsServer = ( server: SyntheticsServerSetup, syntheticsMonitorClient: SyntheticsMonitorClient, - plugins: SyntheticsPluginsSetupDependencies, - ruleDataClient: IRuleDataClient + plugins: SyntheticsPluginsSetupDependencies ) => { const { router } = server; syntheticsAppRestApiRoutes.forEach((route) => { diff --git a/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/lib/alerts/test_utils/index.ts b/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/lib/alerts/test_utils/index.ts index f687584a95811..c167a8c4ca652 100644 --- a/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/lib/alerts/test_utils/index.ts +++ b/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/lib/alerts/test_utils/index.ts @@ -6,8 +6,6 @@ */ import { IBasePath, Logger } from '@kbn/core/server'; -import type { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; -import { ruleRegistryMocks } from '@kbn/rule-registry-plugin/server/mocks'; import { alertsMock } from '@kbn/alerting-plugin/server/mocks'; import type { AlertsLocatorParams } from '@kbn/observability-plugin/common'; import { LocatorPublic } from '@kbn/share-plugin/common'; @@ -91,9 +89,6 @@ export const createRuleTypeMocks = (recoveredAlerts: Array> return { dependencies: { logger: loggerMock, - ruleDataClient: ruleRegistryMocks.createRuleDataClient( - '.alerts-observability.uptime.alerts' - ) as IRuleDataClient, }, services, scheduleActions, diff --git a/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/uptime_server.ts b/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/uptime_server.ts index b8a9b56c2a909..67e68d06bb44f 100644 --- a/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/uptime_server.ts +++ b/x-pack/plugins/observability_solution/uptime/server/legacy_uptime/uptime_server.ts @@ -6,7 +6,6 @@ */ import { Logger } from '@kbn/core/server'; -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import { getRequestValidation } from '@kbn/core-http-server'; import { INITIAL_REST_VERSION } from '../../common/constants'; import { DynamicSettingsSchema } from './routes/dynamic_settings'; @@ -36,7 +35,6 @@ export type UMServerLibs = typeof libs; export const initUptimeServer = ( server: UptimeServerSetup, plugins: UptimeCorePluginsSetup, - ruleDataClient: IRuleDataClient, logger: Logger, router: UptimeRouter ) => { diff --git a/x-pack/plugins/observability_solution/uptime/server/plugin.ts b/x-pack/plugins/observability_solution/uptime/server/plugin.ts index b26453692f7f2..93a948e184632 100644 --- a/x-pack/plugins/observability_solution/uptime/server/plugin.ts +++ b/x-pack/plugins/observability_solution/uptime/server/plugin.ts @@ -11,8 +11,6 @@ import { Plugin as PluginType, Logger, } from '@kbn/core/server'; -import { mappingFromFieldMap } from '@kbn/alerting-plugin/common'; -import { Dataset } from '@kbn/rule-registry-plugin/server'; import { initUptimeServer } from './legacy_uptime/uptime_server'; import { UptimeCorePluginsSetup, @@ -24,8 +22,6 @@ import { savedObjectsAdapter, } from './legacy_uptime/lib/saved_objects/saved_objects'; import { UptimeConfig } from '../common/config'; -import { SYNTHETICS_RULE_TYPES_ALERT_CONTEXT } from '../common/constants/synthetics_alerts'; -import { uptimeRuleTypeFieldMap } from './legacy_uptime/lib/alerts/common'; export class Plugin implements PluginType { private initContext: PluginInitializerContext; @@ -43,20 +39,6 @@ export class Plugin implements PluginType { savedObjectsAdapter.config = config; this.logger = this.initContext.logger.get(); - const { ruleDataService } = plugins.ruleRegistry; - - const ruleDataClient = ruleDataService.initializeIndex({ - feature: 'uptime', - registrationContext: SYNTHETICS_RULE_TYPES_ALERT_CONTEXT, - dataset: Dataset.alerts, - componentTemplateRefs: [], - componentTemplates: [ - { - name: 'mappings', - mappings: mappingFromFieldMap(uptimeRuleTypeFieldMap, 'strict'), - }, - ], - }); this.server = { config, @@ -65,13 +47,11 @@ export class Plugin implements PluginType { share: plugins.share, }; - initUptimeServer(this.server, plugins, ruleDataClient, this.logger, core.http.createRouter()); + initUptimeServer(this.server, plugins, this.logger, core.http.createRouter()); registerUptimeSavedObjects(core.savedObjects); - return { - ruleRegistry: ruleDataClient, - }; + return {}; } public start(coreStart: CoreStart, pluginsStart: UptimeCorePluginsStart) {}