Skip to main content

StationHeartbeat

One loop the station runs, and when it last came round.

Two timestamps and no verdict, because the loop cannot supply one: a five-second reconcile and a nightly sweep are both healthy and no single threshold describes both. Heartbeat itself takes this position — it answers how long it has been and lets the reader decide — and a stalled boolean here would be this module inventing the threshold that file deliberately refuses to.

lastBeat is absent until a loop finishes its first pass, which is why startedAt is there: from the two of them a reader can tell a loop that has never completed anything from one that stopped.

Attributes (3)
AttributeTypeRequiredDescription
namestringYesread-only
startedAtstringYesWhen the loop registered, which is when it was last (re)started. read-only
lastBeatstringNoWhen it last completed a pass. Absent until it completes its first. read-only