Add operators for monitoring Harp device synchronization status #160
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Online monitoring of Harp device synchronization status is an important quality control test to ensure all data is correctly timestamped. This PR adds two new operators to make it easier to compute statistics for all hardware synchronized devices.
Specifically:
HeartbeatMonitor: lifts the sequence of heartbeats of a device into a named group. Each hardware synchronized device should be placed under a
HeartbeatMonitor
and all the sequences merged and passed intoSynchronizerMonitor
.SynchronizerMonitor: receives the sequence of named device heartbeats and computes synchronization statistics aligned on the main synchronizer heartbeat.
MeanTimestamp
: the mean timestamp value in seconds, computed from each connected Harp deviceMeanUtcTimestamp
: the epoch adjusted mean timestamp value, in UTCExpectedDeviceCount
: the expected number of devices that should be reporting timestampsDeviceCount
: the actual number of devices that reported a timestamp in the heartbeat windowMaxDifference
: the maximum timestamp difference, in seconds, between device timestampsElements
: the names of the devices which reported timestamps in the heartbeat window