File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/commonMain/kotlin/spp.protocol/instrument/meter Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11kotlin.code.style =official
22
3- protocolVersion =0.2.0-alpha-4
3+ protocolVersion =0.2.0-alpha-5
44
55kotlinVersion =1.5.31
66vertxVersion =4.0.2
Original file line number Diff line number Diff line change 11package spp.protocol.instrument.meter
22
3+ import kotlinx.serialization.Contextual
4+ import kotlinx.serialization.Serializable
35import spp.protocol.instrument.InstrumentThrottle
46import spp.protocol.instrument.LiveInstrument
57import spp.protocol.instrument.LiveInstrumentType
68import spp.protocol.instrument.LiveSourceLocation
7- import kotlinx.serialization.Contextual
8- import kotlinx.serialization.Serializable
99
1010/* *
1111 * todo: description.
@@ -30,7 +30,8 @@ data class LiveMeter(
3030) : LiveInstrument() {
3131 override val type: LiveInstrumentType = LiveInstrumentType .METER
3232
33- fun toMetricId (): String = " spp_" + meterType.name.lowercase() + " _" + id!! .replace(" -" , " _" )
33+ fun toMetricIdWithoutPrefix (): String = meterType.name.lowercase() + " _" + id!! .replace(" -" , " _" )
34+ fun toMetricId (): String = " spp_" + toMetricIdWithoutPrefix()
3435
3536 /* *
3637 * Specify explicitly so Kotlin doesn't override.
You can’t perform that action at this time.
0 commit comments