RED-6072 - As Operation I want to see why files are in an ERROR state #5
@ -1,6 +1,7 @@
|
||||
package com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.dossier.file;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
@ -17,4 +18,11 @@ public class FileErrorInfo {
|
||||
private String queue;
|
||||
private String service;
|
||||
private OffsetDateTime timestamp;
|
||||
|
||||
public FileErrorInfo(String cause, String queue, String service) {
|
||||
this.cause = cause;
|
||||
this.queue = queue;
|
||||
this.service = service;
|
||||
this.timestamp = OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user