Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Mapper Service
Commits
892b1bd6
Commit
892b1bd6
authored
Oct 21, 2020
by
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
helm-charts/helm-values/i
mport-process-defaults
.yaml
→
helm-charts/helm-values/i
p-mapper-service
.yaml
View file @
892b1bd6
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
...
...
src/main/kotlin/Report.kt
View file @
892b1bd6
...
...
@@ -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
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment