Commit 892b1bd6 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add prefix to deployment name

Rename auto deploy file
Update report structure
parent e1f7f66a
Pipeline #15911 failed with stages
in 5 minutes and 56 seconds
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/mapper-service"
tag: "latest"
kafkaConfigs: prod-kafka-bootstrap-servers
deploymentName: mapper-service
deploymentName: ip-mapper-service
applicationId: mapper-service-app
inputTopicName: import-process-mapper
outputTopicName: import-process-media-linker
......
......@@ -19,13 +19,38 @@
package org.memobase
import com.beust.klaxon.Klaxon
import java.time.LocalDateTime
data class Report(
val id: String,
val status: String,
val message: String
val message: String,
val step: String = "mapper-service",
val timestamp: String = LocalDateTime.now().toString()
) {
fun toJson(): String {
return Klaxon().toJsonString(this)
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as Report
if (id != other.id) return false
if (status != other.status) return false
if (message != other.message) return false
if (step != other.step) return false
return true
}
override fun hashCode(): Int {
var result = id.hashCode()
result = 31 * result + status.hashCode()
result = 31 * result + message.hashCode()
result = 31 * result + step.hashCode()
return result
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment