summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-05-15 17:27:04 +0200
committerPaul-Christian Volkmer2024-05-31 12:52:22 +0200
commit041bf459efce5663bd769ce460dcb329ea85d994 (patch)
tree3090586d9b1f3a1a2a4b6b8f466061d57407b868 /src/main
parentc922e27758186d410a3c5e2148d3a1b6018cfa29 (diff)
fix: add missing 'fatal' severity
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/monitoring/ReportService.kt1
-rw-r--r--src/main/resources/templates/report.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/dev/dnpm/etl/processor/monitoring/ReportService.kt b/src/main/kotlin/dev/dnpm/etl/processor/monitoring/ReportService.kt
index ccbbe1c..97ecd05 100644
--- a/src/main/kotlin/dev/dnpm/etl/processor/monitoring/ReportService.kt
+++ b/src/main/kotlin/dev/dnpm/etl/processor/monitoring/ReportService.kt
@@ -57,6 +57,7 @@ class ReportService(
data class Issue(val severity: Severity, val message: String)
enum class Severity(@JsonValue val value: String) {
+ FATAL("fatal"),
ERROR("error"),
WARNING("warning"),
INFO("info")
diff --git a/src/main/resources/templates/report.html b/src/main/resources/templates/report.html
index 6f89345..07f987c 100644
--- a/src/main/resources/templates/report.html
+++ b/src/main/resources/templates/report.html
@@ -55,6 +55,7 @@
<td th:if="${issue.severity.value == 'info'}" class="bg-blue"><small>[[ ${issue.severity} ]]</small></td>
<td th:if="${issue.severity.value == 'warning'}" class="bg-yellow"><small>[[ ${issue.severity} ]]</small></td>
<td th:if="${issue.severity.value == 'error'}" class="bg-red"><small>[[ ${issue.severity} ]]</small></td>
+ <td th:if="${issue.severity.value == 'fatal'}" class="bg-red"><small>[[ ${issue.severity} ]]</small></td>
<td>[[ ${issue.message} ]]</td>
</tr>
</tbody>