mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Security Solution][Detections][Threshold Rules] Add threshold_result
to alert notification context (#95354) (#96315)
* Don't remove threshold_result from _source prematurely * Fix type error Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # x-pack/plugins/security_solution/server/lib/detection_engine/signals/build_bulk_body.ts Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
1eacc79f7e
commit
ee2750a93e
1 changed files with 4 additions and 2 deletions
|
@ -73,10 +73,12 @@ export const buildBulkBody = ({
|
|||
...buildSignal([doc], rule),
|
||||
...additionalSignalFields(doc),
|
||||
};
|
||||
delete doc._source.threshold_result;
|
||||
const event = buildEventTypeSignal(doc);
|
||||
const { threshold_result: thresholdResult, ...filteredSource } = doc._source || {
|
||||
threshold_result: null,
|
||||
};
|
||||
const signalHit: SignalHit = {
|
||||
...doc._source,
|
||||
...filteredSource,
|
||||
'@timestamp': new Date().toISOString(),
|
||||
event,
|
||||
signal,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue