Skip to content

sink.behind

Sent when a sink falls behind retention: it has not taken events older than retention_days (counted in whole UTC days). Such events are never removed for their age: they are kept until the sink takes them, or until an operator moves the sink past them (sink.moved). A sink that is down, refusing, paused (its tenant suspended) or forgotten makes the log grow; this says so. Checked every hour, and sent once when the sink falls behind: not again while it stays behind. sink.caught_up follows once it has taken them. In Connect, the envelope has endpoint “source:connect” of the sink’s tenant (the default tenant’s for an install-level sink; a tenant’s sink is sent them by naming “connect” in its sources), device "" and package “houradvantage-connect”. In Time and Attendance it is kept in its own event log and delivered to its sinks (the tenant’s and the install’s), the envelope’s endpoint “attendance”, its package “houradvantage-attend” and its device the tenant’s id. A sink that is down is not sent the event about itself until it takes what came before it.

Schema id: urn:houradvantage:events:3:sink.behind

Fields

FieldTypeRequiredDescription
sinkstringyesThe sink’s id, within its tenant (or the install).
oldest_waiting_atstring (date-time)yesWhen the oldest event it has not taken was received.
retention_daysintegeryesThe install’s retention_days when it was found behind. at least 1
tenantstringTime and Attendance: the tenant the sink is of.

Example

{
"sink": "payroll",
"oldest_waiting_at": "2026-09-28T08:00:00Z",
"retention_days": 30
}

JSON Schema

sink.behind.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:sink.behind",
"title": "sink.behind: data",
"description": "Sent when a sink falls behind retention: it has not taken events older than retention_days (counted in whole UTC days). Such events are never removed for their age: they are kept until the sink takes them, or until an operator moves the sink past them (sink.moved). A sink that is down, refusing, paused (its tenant suspended) or forgotten makes the log grow; this says so. Checked every hour, and sent once when the sink falls behind: not again while it stays behind. sink.caught_up follows once it has taken them. In Connect, the envelope has endpoint \"source:connect\" of the sink's tenant (the default tenant's for an install-level sink; a tenant's sink is sent them by naming \"connect\" in its sources), device \"\" and package \"houradvantage-connect\". In Time and Attendance it is kept in its own event log and delivered to its sinks (the tenant's and the install's), the envelope's endpoint \"attendance\", its package \"houradvantage-attend\" and its device the tenant's id. A sink that is down is not sent the event about itself until it takes what came before it.",
"type": "object",
"properties": {
"sink": {
"type": "string",
"description": "The sink's id, within its tenant (or the install)."
},
"oldest_waiting_at": {
"type": "string",
"format": "date-time",
"description": "When the oldest event it has not taken was received."
},
"retention_days": {
"type": "integer",
"minimum": 1,
"description": "The install's retention_days when it was found behind."
},
"tenant": {
"type": "string",
"description": "Time and Attendance: the tenant the sink is of."
}
},
"required": [
"sink",
"oldest_waiting_at",
"retention_days"
],
"examples": [
{
"sink": "payroll",
"oldest_waiting_at": "2026-09-28T08:00:00Z",
"retention_days": 30
}
]
}