Skip to content

Commit

Permalink
accept workflow argument in chained alert constructor (#435)
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep committed Jun 19, 2023
1 parent 030bc00 commit 7da61b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ data class Alert(
schemaVersion: Int = NO_SCHEMA_VERSION,
executionId: String,
chainedAlertTrigger: ChainedAlertTrigger,
user: User
workflow: Workflow
) : this(
monitorId = NO_ID, monitorName = "", monitorVersion = NO_VERSION, monitorUser = user,
monitorId = NO_ID, monitorName = "", monitorVersion = NO_VERSION, monitorUser = workflow.user,
triggerId = chainedAlertTrigger.id, triggerName = chainedAlertTrigger.name, state = state, startTime = startTime,
lastNotificationTime = lastNotificationTime, errorMessage = errorMessage, errorHistory = emptyList(),
severity = chainedAlertTrigger.severity, actionExecutionResults = emptyList(), schemaVersion = schemaVersion,
Expand Down

0 comments on commit 7da61b3

Please sign in to comment.