diff --git a/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts b/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts index 7cb02428322a65..144c0dafa3786e 100644 --- a/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts +++ b/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts @@ -14,7 +14,6 @@ import { RULE_UUID, TAGS, } from '../../common/technical_rule_data_field_names'; -import { AlertTypeExecutor, AlertTypeWithExecutor } from '../types'; export interface RuleExecutorData { [RULE_CATEGORY]: string; @@ -25,20 +24,6 @@ export interface RuleExecutorData { [TAGS]: string[]; } -export function getRuleExecutorData( - type: AlertTypeWithExecutor, - options: Parameters[0] -) { - return { - [RULE_ID]: type.id, - [RULE_UUID]: options.alertId, - [RULE_CATEGORY]: type.name, - [RULE_NAME]: options.name, - [TAGS]: options.tags, - [PRODUCER]: type.producer, - }; -} - export function getRuleData(options: AlertExecutorOptions) { return { [RULE_ID]: options.rule.ruleTypeId,