From c0407b100d07d4695d704e05e4d332229fcf7a82 Mon Sep 17 00:00:00 2001 From: jpdjere Date: Mon, 5 Dec 2022 20:20:05 +0100 Subject: [PATCH] Make PublicRuleMonitoringService; not optional --- x-pack/plugins/alerting/server/types.ts | 2 +- .../rule_types/create_security_rule_type_wrapper.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/alerting/server/types.ts b/x-pack/plugins/alerting/server/types.ts index 4b2ccee0b8db965..3f659a8f4a96c32 100644 --- a/x-pack/plugins/alerting/server/types.ts +++ b/x-pack/plugins/alerting/server/types.ts @@ -84,7 +84,7 @@ export interface RuleExecutorServices< alertFactory: PublicAlertFactory; shouldWriteAlerts: () => boolean; shouldStopExecution: () => boolean; - ruleMonitoringService?: PublicRuleMonitoringService; + ruleMonitoringService: PublicRuleMonitoringService; } export interface RuleExecutorOptions< diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_wrapper.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_wrapper.ts index d361c7fec77847d..5f6fcb63a084bcd 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_wrapper.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/create_security_rule_type_wrapper.ts @@ -343,6 +343,7 @@ export const createSecurityRuleTypeWrapper: CreateSecurityRuleTypeWrapper = secondaryTimestamp, ruleExecutionLogger, aggregatableTimestampField, + alertTimestampOverride, }, });