@@ -48,19 +48,19 @@ data class LiveMeter(
4848 override val type: LiveInstrumentType = LiveInstrumentType .METER
4949
5050 constructor (json: JsonObject ) : this (
51- MeterType .valueOf(json.getString(" meterType" )),
52- json.getJsonObject(" metricValue" )?.let { MetricValue (it) },
53- json.getJsonArray(" meterTags" ).map { MeterTagValue (it as JsonObject ) },
54- LiveSourceLocation (json.getJsonObject(" location" )),
55- json.getString(" condition" ),
56- json.getLong(" expiresAt" ),
57- json.getInteger(" hitLimit" ) ? : - 1 ,
58- json.getString(" id" ),
59- json.getBoolean(" applyImmediately" ) ? : false ,
60- json.getBoolean(" applied" ) ? : false ,
61- json.getBoolean(" pending" ) ? : false ,
62- json.getJsonObject(" throttle" )?.let { InstrumentThrottle (it) },
63- json.getJsonObject(" meta" )?.associate { it.key to it.value } ? : emptyMap()
51+ meterType = MeterType .valueOf(json.getString(" meterType" )),
52+ metricValue = json.getJsonObject(" metricValue" )?.let { MetricValue (it) },
53+ meterTags = json.getJsonArray(" meterTags" ).map { MeterTagValue (it as JsonObject ) },
54+ location = LiveSourceLocation (json.getJsonObject(" location" )),
55+ condition = json.getString(" condition" ),
56+ expiresAt = json.getLong(" expiresAt" ),
57+ hitLimit = json.getInteger(" hitLimit" ) ? : - 1 ,
58+ id = json.getString(" id" ),
59+ applyImmediately = json.getBoolean(" applyImmediately" ) ? : false ,
60+ applied = json.getBoolean(" applied" ) ? : false ,
61+ pending = json.getBoolean(" pending" ) ? : false ,
62+ throttle = json.getJsonObject(" throttle" )?.let { InstrumentThrottle (it) },
63+ meta = json.getJsonObject(" meta" )?.associate { it.key to it.value } ? : emptyMap()
6464 )
6565
6666 override fun toJson (): JsonObject {
0 commit comments