We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2cd759 commit 852903dCopy full SHA for 852903d
src/commonMain/kotlin/spp.protocol/artifact/metrics/MetricType.kt
@@ -43,6 +43,18 @@ enum class MetricType {
43
|| this == ResponseTime_75Percentile
44
|| this == ResponseTime_50Percentile
45
46
+ val simpleName: String
47
+ get() = when (this) {
48
+ Throughput_Average -> "Throughput"
49
+ ResponseTime_Average -> "Response"
50
+ ServiceLevelAgreement_Average -> "SLA"
51
+ ResponseTime_99Percentile -> "Resp(99%)"
52
+ ResponseTime_95Percentile -> "Resp(95%)"
53
+ ResponseTime_90Percentile -> "Resp(90%)"
54
+ ResponseTime_75Percentile -> "Resp(75%)"
55
+ ResponseTime_50Percentile -> "Resp(50%)"
56
+ }
57
+
58
companion object {
59
//todo: remove
60
fun realValueOf(name: String): MetricType {
0 commit comments