-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Expand file tree
/
Copy pathindex.ts
More file actions
39 lines (35 loc) · 1.47 KB
/
index.ts
File metadata and controls
39 lines (35 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* 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 { ContainerModule } from 'inversify';
import type { PluginConfigDescriptor } from '@kbn/core/server';
import type { PluginConfig } from './config';
import { configSchema } from './config';
import { bindContract } from './setup/bind_contract';
import { bindOnSetup } from './setup/bind_on_setup';
import { bindOnStart } from './setup/bind_on_start';
import { bindRoutes } from './setup/bind_routes';
import { bindServices } from './setup/bind_services';
import { bindEvents } from './setup/bind_events';
import { bindRuleExecutionServices } from './setup/bind_rule_executor';
import { bindDispatcherExecutionServices } from './setup/bind_dispatcher_executor';
import { bindTasks } from './setup/bind_tasks';
export const config: PluginConfigDescriptor<PluginConfig> = {
schema: configSchema,
};
export const module = new ContainerModule((options) => {
bindOnSetup(options);
bindOnStart(options);
bindContract(options);
bindRoutes(options);
bindServices(options);
bindEvents(options);
bindRuleExecutionServices(options);
bindDispatcherExecutionServices(options);
bindTasks(options);
});
export type { PluginConfig as AlertingV2Config } from './config';
export type { AlertingServerStart, RulesClientApi } from './types';