updateInstrumentItemMeasurement

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.