@@ -29,7 +29,7 @@ import spp.protocol.instrument.throttle.InstrumentThrottle
2929 */
3030@DataObject
3131data class LiveMeter (
32- val meterName : String ,
32+ val meterDescription : String? = null ,
3333 val meterType : MeterType ,
3434 val metricValue : MetricValue ,
3535 override val location : LiveSourceLocation ,
@@ -46,7 +46,7 @@ data class LiveMeter(
4646 override val type: LiveInstrumentType = LiveInstrumentType .METER
4747
4848 constructor (json: JsonObject ) : this (
49- json.getString(" meterName " ),
49+ json.getString(" meterDescription " ),
5050 MeterType .valueOf(json.getString(" meterType" )),
5151 MetricValue (json.getJsonObject(" metricValue" )),
5252 LiveSourceLocation (json.getJsonObject(" location" )),
@@ -64,7 +64,7 @@ data class LiveMeter(
6464 override fun toJson (): JsonObject {
6565 val json = JsonObject ()
6666 json.put(" type" , type.name)
67- json.put(" meterName " , meterName )
67+ json.put(" meterDescription " , meterDescription )
6868 json.put(" meterType" , meterType.name)
6969 json.put(" metricValue" , metricValue.toJson())
7070 json.put(" location" , location.toJson())
0 commit comments