Skip to content

Commit

Permalink
set lastnotification time as created time for new bucket level monito…
Browse files Browse the repository at this point in the history
…r alert (#675)

Signed-off-by: Surya Sashank Nistala <[email protected]>

Signed-off-by: Surya Sashank Nistala <[email protected]>
(cherry picked from commit 817d9ef)
  • Loading branch information
eirsep authored and github-actions[bot] committed Nov 11, 2022
1 parent a4a5856 commit 8ed59a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class AlertService(
// New Alert
val newAlert = Alert(
monitor = monitor, trigger = trigger, startTime = currentTime,
lastNotificationTime = null, state = Alert.State.ACTIVE, errorMessage = null,
lastNotificationTime = currentTime, state = Alert.State.ACTIVE, errorMessage = null,
errorHistory = mutableListOf(), actionExecutionResults = mutableListOf(),
schemaVersion = IndexUtils.alertIndexSchemaVersion, aggregationResultBucket = aggAlertBucket,
findingIds = findings
Expand Down

0 comments on commit 8ed59a4

Please sign in to comment.