Skip to content
Snippets Groups Projects
Commit 2f0d0e19 authored by Sören Henning's avatar Sören Henning
Browse files

Fix passing metadata

parent 26f71c27
No related branches found
No related tags found
No related merge requests found
Pipeline #6021 passed
......@@ -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"))
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment