X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Fcontrollers%2Fproducer%2FProducerJobInfo.java;h=bc3dba2ee5b076c96aeb88de867df9be61e804d2;hb=2dbde318f013212c81c4a1f477d7638ec3367aa5;hp=c02c280e49d25b6060801c393e20e5c10ec1bb4e;hpb=b83e54c2bdab21d7f6ff5c9a4c340e801c93e1c2;p=nonrtric.git diff --git a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java index c02c280e..bc3dba2e 100644 --- a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java +++ b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java @@ -60,16 +60,23 @@ public class ProducerJobInfo { @JsonProperty("owner") public String owner; - public ProducerJobInfo(Object jobData, String id, String typeId, String targetUri, String owner) { + @ApiModelProperty(value = "The time when the job was last updated or created (ISO-8601)") + @SerializedName("last_updated") + @JsonProperty("last_updated") + public String lastUpdated; + + public ProducerJobInfo(Object jobData, String id, String typeId, String targetUri, String owner, + String lastUpdated) { this.id = id; this.jobData = jobData; this.typeId = typeId; this.targetUri = targetUri; this.owner = owner; + this.lastUpdated = lastUpdated; } public ProducerJobInfo(EiJob job) { - this(job.getJobData(), job.getId(), job.getTypeId(), job.getTargetUrl(), job.getOwner()); + this(job.getJobData(), job.getId(), job.getTypeId(), job.getTargetUrl(), job.getOwner(), job.getLastUpdated()); } public ProducerJobInfo() {