Skip to content

resourceObject (output)

Output data sent when one or more stops attached to a resource are modified. Spiral identifies the resource by its id and sends only the attributes that changed — a subset of the input resourceObject. The most commonly updated attributes:

id integer
The resource being updated.
unprod stopObject
Updated unproductive stops.
rosterStop stopObject
The duty stops Spiral derives from the resource’s roster (NOW / REST / STBY). Distinct from the `roster` attribute below, which is the shift pattern itself — this is the scheduled realisation of it.
at location
Updated current location.
state REST | WORK | BRK | STBY
Updated operational state.
roster [dutyKey: time]
Updated planned roster — the shift pattern, not a stop. See `rosterStop` above for the derived duty stops.
stopOn timeInterval
Updated stop-on availability.
skills skillObject
Updated skills.

Any other resourceObject attribute (e.g. base, lastOn, lastBreak, currentWorkingLimit, lock, type) may also appear when it changes.