-
public class LiveMonitorRead-only, DEBUG-ONLY live data monitor. Off by default. When enabled, the SDK's
submit*ingest points mirror lightweight per-sample data into small per-stream ring buffers so an internal test-app dashboard can show live rates, per-axis graphs, and per-device detail — and catch a stream that isn't flowing (e.g. BLE = 0). It does not change what is collected, decimated, batched, or uploaded. When disabled, the record functions return after one volatile read.
-
-
Field Summary
Fields Modifier and Type Field Description private volatile Booleanenabledpublic final static LiveMonitorINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitsetEnabled(Boolean on)final Unitreset()final UnitrecordLocation(Double lat, Double lon, Long tsMs)Append a location fix to the live track (for the map). final List<LiveLatLng>locationTrack()final Unitrecord(String stream, Double value, Long tsMs)Mirror a scalar sample into the stream's ring buffer. final UnitrecordVector(String stream, Double x, Double y, Double z, Long tsMs)Mirror a 3-axis sample: stores magnitude (for the summary sparkline) + x/y/z (for detail). final UnitrecordDevice(String stream, String id, Integer rssi, String label, Long tsMs, Map<String, String> extra)Record/refresh a discovered device (BLE/WiFi/GNSS). final LiveStreamSnapshotsnapshot(String stream, Long nowMs)final LiveAxisSnapshotaxisSnapshot(String stream)Per-axis history for a vector stream; null if the stream isn't 3-axis. final List<LiveDeviceEntry>deviceList(String stream, Long nowMs)final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)-
-
Method Detail
-
setEnabled
final Unit setEnabled(Boolean on)
-
recordLocation
final Unit recordLocation(Double lat, Double lon, Long tsMs)
Append a location fix to the live track (for the map). No-op when disabled.
-
locationTrack
final List<LiveLatLng> locationTrack()
-
record
final Unit record(String stream, Double value, Long tsMs)
Mirror a scalar sample into the stream's ring buffer. No-op when disabled.
-
recordVector
final Unit recordVector(String stream, Double x, Double y, Double z, Long tsMs)
Mirror a 3-axis sample: stores magnitude (for the summary sparkline) + x/y/z (for detail).
-
recordDevice
final Unit recordDevice(String stream, String id, Integer rssi, String label, Long tsMs, Map<String, String> extra)
Record/refresh a discovered device (BLE/WiFi/GNSS). Does not touch the stream counter.
-
snapshot
final LiveStreamSnapshot snapshot(String stream, Long nowMs)
-
axisSnapshot
final LiveAxisSnapshot axisSnapshot(String stream)
Per-axis history for a vector stream; null if the stream isn't 3-axis.
-
deviceList
final List<LiveDeviceEntry> deviceList(String stream, Long nowMs)
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
-
-
-