At 07:15 a remote tank dashboard receives three levels in a single burst. Plot all three at the time they arrived and an operator sees a sudden jump. Plot them at the times the measurements were made and the same records can describe a level that rose gradually over ten minutes.

Give each timestamp a job

Keep an observation time for when the measurement applies and a received time for when your receiving service first accepted the record. Document where each clock lives. If the device supplies no trustworthy timestamp, retain the gateway time and label its origin. A dashboard should make the timing uncertainty visible.

Read an example batch

  • 07:00 UTC · observation A · 1.20 m

  • 07:05 UTC · observation B · 1.24 m

  • 07:10 UTC · observation C · 1.28 m

Suppose all three first reach the service at 07:15:10 UTC. The oldest observation is 15 minutes and 10 seconds old. The newest is already 5 minutes and 10 seconds old. A recent connection and a recent measurement are different facts. Show both the latest valid observation time and the last successful receipt.

Three tank observations rise from 1.20 m to 1.28 m before a single receipt at 07:15:10 UTC.
Worked example. Three field observations arrive in one batch. The vertical line marks the time the service received them. Figure by Industry Applied.

Give a replay the same identity

Keep source and channel identifiers, units, timestamp origin and quality alongside the value. Prefer a stable event ID when the device supplies one. If it offers only a sequence number, account for rollover and restart before treating the number as unique. In a test copy, submit the same batch twice. The history should retain three observations while the delivery log can record both attempts.

Test the trend and the alert separately

Sort the trend by observation time and check how a late reading fits between earlier points. Evaluate a live alarm using an explicit freshness limit chosen for the process. Decide separately how to report a historical threshold crossing discovered after reconnection. Record the trend order, duplicate count and alarm behaviour in the test report.

Set a freshness limit the operator can interpret

Suppose an operator wants a current level no more than six minutes old. At 07:15:10, the 07:10 observation is five minutes and ten seconds old. It qualifies. The 07:05 observation is ten minutes and ten seconds old. It belongs in the history and cannot serve as the current value. At 07:17, with no further observations, even the most recent reading is seven minutes old. A green communications indicator can be accurate while a separate freshness indicator shows stale data.

Now consider a late level of 1.26 m timestamped 07:07. It belongs between the 1.24 m and 1.28 m records. A dashboard that simply replaces the current value with the last message received would move from 1.28 m back to 1.26 m. Keep the newest accepted observation as the current value, and insert the late record into its proper place in the historical series.

Keep a result time and a receipt time separate

In the OGC SensorThings model, phenomenonTime identifies when the observation applies. resultTime identifies when the result became available. A laboratory or edge device can produce a result well before a central system receives it. If transport delay matters, store the time your receiver accepted the message as its own field. OPC UA likewise distinguishes a source timestamp from a server timestamp. Map the fields explicitly when passing records between systems.

For a remote Australian tank, store unambiguous UTC times and label any conversion to local time in the operator view. During a backfill test, save the raw message plus the history and current-value exports. An operator should be able to explain which level is current, when it was measured and when the gap in communications ended from those three records.

Sources

Open Geospatial Consortium · SensorThings API, Part 1: Sensing, Observation time properties

OPC Foundation · OPC UA Part 4, SourceTimestamp