From 94738b90520631a9375d3dfdb31d677065f72520 Mon Sep 17 00:00:00 2001 From: "a.usenko" Date: Wed, 27 Dec 2023 17:12:10 +0200 Subject: [PATCH] @Suppress("MagicNumber") for default percents in PercentilesAgg --- .../src/commonMain/kotlin/dev/evo/elasticmagic/aggs/Metric.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/elasticmagic/src/commonMain/kotlin/dev/evo/elasticmagic/aggs/Metric.kt b/elasticmagic/src/commonMain/kotlin/dev/evo/elasticmagic/aggs/Metric.kt index 9a54b8a285..709afb9de5 100644 --- a/elasticmagic/src/commonMain/kotlin/dev/evo/elasticmagic/aggs/Metric.kt +++ b/elasticmagic/src/commonMain/kotlin/dev/evo/elasticmagic/aggs/Metric.kt @@ -130,6 +130,7 @@ data class PercentileAggResult(val values: Map) : AggregationRes } } +@Suppress("MagicNumber") data class PercentilesAgg( val field: FieldOperations<*>, val percents: List = listOf(1.0, 5.0, 25.0, 50.0, 75.0, 95.0, 99.0),