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 (opensearch-project#675) (opensearch-project#676)

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

Signed-off-by: Surya Sashank Nistala <[email protected]>
(cherry picked from commit 817d9ef6c2b439c0b943df2d699380a9a3d54975)

Co-authored-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and eirsep authored Dec 21, 2022
1 parent 13df8ce commit 4d3500b
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 4d3500b

Please sign in to comment.