Skip to content

Commit

Permalink
Register servicenow connector
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Feb 27, 2020
1 parent 786697a commit 8ef5f4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x-pack/legacy/plugins/siem/public/lib/connectors/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export { getActionType as serviceNowActionType } from './servicenow';
3 changes: 3 additions & 0 deletions x-pack/legacy/plugins/siem/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { UsageCollectionSetup } from '../../../../../src/plugins/usage_collectio
import { initTelemetry } from './lib/telemetry';
import { KibanaServices } from './lib/kibana';

import { serviceNowActionType } from './lib/connectors';

import {
TriggersAndActionsUIPublicPluginSetup,
Expand Down Expand Up @@ -67,6 +68,8 @@ export class Plugin implements IPlugin<Setup, Start> {
const [coreStart, startPlugins] = await core.getStartServices();
const { renderApp } = await import('./app');

plugins.triggers_actions_ui.actionTypeRegistry.register(serviceNowActionType());

return renderApp(coreStart, startPlugins as StartPlugins, params);
},
});
Expand Down

0 comments on commit 8ef5f4e

Please sign in to comment.