From 223150f3bab282d26cb0573d9820eafb0468aacb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de>
Date: Fri, 9 Dec 2022 10:21:19 +0100
Subject: [PATCH] Deprecate old SLOs

---
 .../main/kotlin/rocks/theodolite/kubernetes/slo/SloTypes.kt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/theodolite/src/main/kotlin/rocks/theodolite/kubernetes/slo/SloTypes.kt b/theodolite/src/main/kotlin/rocks/theodolite/kubernetes/slo/SloTypes.kt
index 07cbcd634..496600f2b 100644
--- a/theodolite/src/main/kotlin/rocks/theodolite/kubernetes/slo/SloTypes.kt
+++ b/theodolite/src/main/kotlin/rocks/theodolite/kubernetes/slo/SloTypes.kt
@@ -3,9 +3,9 @@ package rocks.theodolite.kubernetes.slo
 enum class SloTypes(val value: String) {
     GENERIC("generic"),
     LAG_TREND("lag trend"),
-    LAG_TREND_RATIO("lag trend ratio"),
-    DROPPED_RECORDS("dropped records"),
-    DROPPED_RECORDS_RATIO("dropped records ratio");
+    @Deprecated("Use LAG_TREND with relative threshold instead.") LAG_TREND_RATIO("lag trend ratio"),
+    @Deprecated("Use GENERIC instead.") DROPPED_RECORDS("dropped records"),
+    @Deprecated("Use GENERIC with relative threshold instead.") DROPPED_RECORDS_RATIO("dropped records ratio");
 
     companion object {
         fun from(type: String): SloTypes =
-- 
GitLab