|
|
@ -64,6 +64,7 @@ func (handler *DefaultResultHandler) Handle(ctx *EvalContext) { |
|
|
|
PrevState: string(oldState), |
|
|
|
PrevState: string(oldState), |
|
|
|
Timestamp: time.Now(), |
|
|
|
Timestamp: time.Now(), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
annotationRepo := annotations.GetRepository() |
|
|
|
annotationRepo := annotations.GetRepository() |
|
|
|
if err := annotationRepo.Save(&item); err != nil { |
|
|
|
if err := annotationRepo.Save(&item); err != nil { |
|
|
|
handler.log.Error("Failed to save annotation for new alert state", "error", err) |
|
|
|
handler.log.Error("Failed to save annotation for new alert state", "error", err) |
|
|
|