update Instrument Item Measurement
fun updateInstrumentItemMeasurement(item: Action.Instrument.Item, block: (Action.Instrument.Item.Measurement?) -> Action.Instrument.Item.Measurement?): Action.Measurements
Update a Instrument.Item.Measurement for the given item in the Instrument.Measurements.
Note that if there was no corresponding Instrument.Measurements set yet, the processedAt
of the newly created instance will be set to the current time. It's recommend to change this later, if needed.
Return
A new Measurements instance with the updated measurement.
Parameters
block
A function to update the current Instrument.Item.Measurement for the given item
. If it's null
, it means there's no measurement for the item yet.