mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
(cherry picked from commit 01a87e040b
)
Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
This commit is contained in:
parent
2c775e32a0
commit
75a523d66c
1 changed files with 4 additions and 1 deletions
|
@ -71,8 +71,9 @@ export const buildAlertGroupFromSequence = (
|
|||
// we can build the signal that links the building blocks together
|
||||
// and also insert the group id (which is also the "shell" signal _id) in each building block
|
||||
const doc = buildAlertRoot(wrappedBuildingBlocks, completeRule, spaceId, buildReasonMessage);
|
||||
const sequenceAlertId = generateAlertId(doc);
|
||||
const sequenceAlert = {
|
||||
_id: generateAlertId(doc),
|
||||
_id: sequenceAlertId,
|
||||
_index: '',
|
||||
_source: doc,
|
||||
};
|
||||
|
@ -82,6 +83,8 @@ export const buildAlertGroupFromSequence = (
|
|||
block._source[ALERT_GROUP_INDEX] = i;
|
||||
});
|
||||
|
||||
sequenceAlert._source[ALERT_UUID] = sequenceAlertId;
|
||||
|
||||
return [...wrappedBuildingBlocks, sequenceAlert];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue