From 2f0d0e198f979a667603c2bddf15dcb8ad2ee4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Mon, 17 Jan 2022 13:31:00 +0100 Subject: [PATCH] Fix passing metadata --- .../main/kotlin/theodolite/evaluation/SloCheckerFactory.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/theodolite/src/main/kotlin/theodolite/evaluation/SloCheckerFactory.kt b/theodolite/src/main/kotlin/theodolite/evaluation/SloCheckerFactory.kt index c25144699..f57cebfcb 100644 --- a/theodolite/src/main/kotlin/theodolite/evaluation/SloCheckerFactory.kt +++ b/theodolite/src/main/kotlin/theodolite/evaluation/SloCheckerFactory.kt @@ -50,12 +50,11 @@ class SloCheckerFactory { // TODO validate property contents metadata = mapOf( "warmup" to (properties["warmup"]?.toInt() ?: throw IllegalArgumentException("warmup expected")), - "queryAggregation" to (properties["warmup"]?.toInt() + "queryAggregation" to (properties["queryAggregation"] ?: throw IllegalArgumentException("queryAggregation expected")), - "repetitionAggregation" to (properties["warmup"]?.toInt() + "repetitionAggregation" to (properties["repetitionAggregation"] ?: throw IllegalArgumentException("repetitionAggregation expected")), - "operator" to (properties["warmup"]?.toInt() - ?: throw IllegalArgumentException("operator expected")), + "operator" to (properties["operator"] ?: throw IllegalArgumentException("operator expected")), "threshold" to (properties["threshold"]?.toInt() ?: throw IllegalArgumentException("threshold expected")) ) -- GitLab