Skip to content

Commit

Permalink
remove ALERT_INTENDED_TIMESTAMP from alert doc for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhristinin committed Aug 30, 2024
1 parent 759e9d3 commit bc1cc54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { DetectionAlert } from '@kbn/security-solution-plugin/common/api/detection_engine';
import { ALERT_LAST_DETECTED, ALERT_START } from '@kbn/rule-data-utils';
import { ALERT_LAST_DETECTED, ALERT_START, ALERT_INTENDED_TIMESTAMP } from '@kbn/rule-data-utils';

export const removeRandomValuedPropertiesFromAlert = (alert: DetectionAlert | undefined) => {
if (!alert) {
Expand All @@ -24,6 +24,7 @@ export const removeRandomValuedPropertiesFromAlert = (alert: DetectionAlert | un
'kibana.alert.url': alertURL,
[ALERT_START]: alertStart,
[ALERT_LAST_DETECTED]: lastDetected,
[ALERT_INTENDED_TIMESTAMP]: intendedTimestamp,
...restOfAlert
} = alert;
return restOfAlert;
Expand Down

0 comments on commit bc1cc54

Please sign in to comment.