Commit 8da75aa8 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Refactor reporting step name.

parent 67c3e115
Pipeline #31350 passed with stages
in 5 minutes and 44 seconds
......@@ -10,3 +10,4 @@ data:
TOPIC_OUT_IMAGE: "{{ .Values.outputTopicImageName }}"
TOPIC_OUT_IGNORE: "{{ .Values.outputTopicIgnoreName }}"
TOPIC_PROCESS: "{{ .Values.reportingTopicName }}"
REPORTING_STEP_NAME: "{{.Values.reportingStepName}}"
......@@ -22,3 +22,5 @@ outputTopicAVName: placeholder
outputTopicIgnoreName: placeholder
outputTopicImageName: placeholder
reportingTopicName: placeholder
reportingStepName: 05-media-metadata-preprocessor
......@@ -62,5 +62,7 @@ object SettingsFromFile {
val reportTopic: String = sys.env("TOPIC_PROCESS")
val reportingStepName: String = sys.env("REPORTING_STEP_NAME")
val id: String = "media-metadata-preprocessor"
}
......@@ -19,9 +19,10 @@
package ch.memobase.models
import ch.memobase.SettingsFromFile.reportingStepName
import java.text.SimpleDateFormat
import java.util.Calendar
import ch.memobase.models.ReportingObject.{createTimestamp, escapeApostrophes}
sealed trait ProcessingStatus {
......@@ -49,7 +50,7 @@ case class ReportingObject(
val dateFormatter = new SimpleDateFormat("YYYY-MM-dd'T'HH:mm:ss.SSS")
override def toString: String =
s"""{"step": "media-metadata-preprocessor", "timestamp": "$createTimestamp", "id": "$id", "status": "${status match {
s"""{"step": "$reportingStepName", "timestamp": "$createTimestamp", "id": "$id", "status": "${status match {
case ProcessingSuccess => ProcessingSuccess.value
case ProcessingIgnore => ProcessingIgnore.value
case ProcessingWarning => ProcessingWarning.value
......
Supports Markdown
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