Alerting: Persist AlertInstance ResolvedAt & LastSentAt (#89135)
* Alerting: Persist AlertInstance ResolvedAt & LastSentAt * Fix test * Modify existing tests * Fix merge conflicts from nullable LastSentAt & ResolvedAt
This commit is contained in:
@@ -386,6 +386,8 @@ func generateTestAlertInstance(orgID int64, ruleID string) models.AlertInstance
|
||||
CurrentStateEnd: time.Now(),
|
||||
CurrentStateSince: time.Now(),
|
||||
LastEvalTime: time.Now(),
|
||||
LastSentAt: util.Pointer(time.Now()),
|
||||
ResolvedAt: util.Pointer(time.Now()),
|
||||
CurrentReason: "abc",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user