Skip to content

Commit abd6471

Browse files
fix types
1 parent 231d96d commit abd6471

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/bulk_create_ml_signals.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ import { SearchResponse } from 'elasticsearch';
99

1010
import { Logger } from '../../../../../../../../src/core/server';
1111
import { AlertServices } from '../../../../../../../plugins/alerting/server';
12+
import { AlertAction } from '../../../../../../../plugins/alerting/common';
1213
import { RuleTypeParams } from '../types';
1314
import { singleBulkCreate } from './single_bulk_create';
1415
import { AnomalyResults, Anomaly } from '../../machine_learning';
1516

1617
interface BulkCreateMlSignalsParams {
18+
actions: AlertAction[];
1719
someResult: AnomalyResults;
1820
ruleParams: RuleTypeParams;
1921
services: AlertServices;
@@ -28,6 +30,7 @@ interface BulkCreateMlSignalsParams {
2830
interval: string;
2931
enabled: boolean;
3032
tags: string[];
33+
throttle: string | null;
3134
}
3235

3336
interface EcsAnomaly extends Anomaly {

x-pack/legacy/plugins/siem/server/lib/detection_engine/signals/signal_rule_alert_type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ export const signalRulesAlertType = ({
120120
}
121121

122122
creationSucceeded = await bulkCreateMlSignals({
123+
actions,
124+
throttle,
123125
someResult: anomalyResults,
124126
ruleParams: params,
125127
services,

0 commit comments

Comments
 (0)