diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/ExternalSloChecker.kt b/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/ExternalSloChecker.kt index b967d2d92ea3b4e1437a7995905274181f009e94..2de8e2dc9c03ec5449c9f04585622d6730644aa2 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/ExternalSloChecker.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/ExternalSloChecker.kt @@ -16,7 +16,7 @@ class ExternalSloChecker( ) : SloChecker { - private val RETRYS = 2 + private val RETRIES = 2 private val TIMEOUT = 60.0 override fun evaluate(start: Instant, end: Instant): Boolean { @@ -26,7 +26,7 @@ class ExternalSloChecker( val data = Gson().toJson(mapOf("total_lag" to fetchedData.data?.result, "threshold" to threshold, "warmup" to warmup)) - while (counter < RETRYS) { + while (counter < RETRIES) { val result = post(externalSlopeURL, data = data, timeout = TIMEOUT) if (result.statusCode != 200) { counter++ diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/MetricFetcher.kt b/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/MetricFetcher.kt index b828b021333bef46076c47385fc919c4889ac0ec..7dbaf568c3452e7ae565002ae00e5314502f8930 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/MetricFetcher.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/evaluation/MetricFetcher.kt @@ -12,7 +12,7 @@ import java.time.Instant private val logger = KotlinLogging.logger {} class MetricFetcher(private val prometheusURL: String, private val offset: Duration) { - private val RETRYS = 2 + private val RETRIES = 2 private val TIMEOUT = 60.0 fun fetchMetric(start: Instant, end: Instant, query: String): PrometheusResponse { @@ -28,7 +28,7 @@ class MetricFetcher(private val prometheusURL: String, private val offset: Durat "step" to "5s" ) - while (counter < RETRYS) { + while (counter < RETRIES) { val response = get("$prometheusURL/api/v1/query_range", params = parameter, timeout = TIMEOUT) if (response.statusCode != 200) { val message = response.jsonObject.toString()