Recording Messages
Use the Message Recording Connector to record messages sent to a Digital Twin model for a specified period.
Prerequisites
A ScaleOut Digital Twins project that has been developed in Java, .NET, or the ScaleOut Model Development Tool.
Procedure
Configure your Digital Twins project to enable message recording for your model.
Note
You should only enable recording on models that receive messages from external data sources (such as IoT devices or connectors like the Azure Digital Twins connector). If you have multiple real-time models, the messages that get sent from one real-time model to another should not be recorded.
Java: Add enableMessageRecording to the model definition file and set it to true.
.NET: Add EnableMessageRecording as a JSON property to the appsettings.json file and set it to true.
Rule-based Models: Set the EnableMessageRecording property in the model definition file. This can be done directly in the ScaleOut Model Development Tool.
In the ScaleOut Digital Twins™ UI, configure the Message Recording connector.
Once deployed, the recording will start recording and will continue to record for the period specified by the connector’s Recording Duration (sec) parameter.
A recording can be paused by disabling the Message Recording connector. To resume a paused message recording session, should re-enable the connector.
Next Steps
Once the recording is complete, it can be replayed through the UI’s simulation screen.
Recordings can be deleted or persisted using the Message Recording Management Tool.