device.clock_behind
The gateway’s own event: a device was first seen with its clock behind, because the punches of its uploads, as the endpoint’s zone placed them, were made more than tolerance_seconds before they reached the gateway, by amounts within tolerance_seconds of one another, for longer than that amount. A clock that keeps standard time through daylight saving is an hour behind. A device that states its offset in every timestamp is never told so. It is told once, when the device is first seen so: while it keeps sending such punches nothing more is told, and when a message of its punches comes on time, the status is cleared, so a later fault is told again. Detection takes about as long as the lag after the clock goes wrong, an hour for an hour. While it is behind the device’s info says so (clock_behind: since and by_seconds, as first seen) and the punches of its messages that are not on time carry clock_behind_seconds; they are kept as reported. The envelope’s tenant, endpoint, group and device name the device.
Schema id: urn:houradvantage:events:3:device.clock_behind
Fields
| Field | Type | Required | Description |
|---|---|---|---|
by_seconds | integer | yes | By how much the clock is behind: the least of the lags seen, in seconds. |
tolerance_seconds | integer | yes | How late a punch may be, and how far apart the lags may be, before the clock is taken to be behind. |
least_lag_seconds | integer | yes | The least lag among the uploads seen late, in seconds. |
greatest_lag_seconds | integer | yes | The greatest lag among them, in seconds. |
late_since | string (date-time) | yes | When the first of the late uploads reached the gateway instance that told it. |
late_for_seconds | integer | yes | How long the uploads had been late by about the same amount when it was told, in seconds: more than the lag. |
punches | integer | yes | How many punches the message that showed it carried. |
daylight_saving_hour | boolean | yes | True when the endpoint’s zone is in daylight time and by_seconds is, within tolerance_seconds, the hour the zone saves: the clock kept standard time. |
Example
{ "by_seconds": 3610, "tolerance_seconds": 300, "least_lag_seconds": 3610, "greatest_lag_seconds": 3612, "late_since": "2026-10-03T17:00:10Z", "late_for_seconds": 3900, "punches": 1, "daylight_saving_hour": true}JSON Schema
device.clock_behind.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:device.clock_behind", "title": "device.clock_behind: data", "description": "The gateway's own event: a device was first seen with its clock behind, because the punches of its uploads, as the endpoint's zone placed them, were made more than tolerance_seconds before they reached the gateway, by amounts within tolerance_seconds of one another, for longer than that amount. A clock that keeps standard time through daylight saving is an hour behind. A device that states its offset in every timestamp is never told so. It is told once, when the device is first seen so: while it keeps sending such punches nothing more is told, and when a message of its punches comes on time, the status is cleared, so a later fault is told again. Detection takes about as long as the lag after the clock goes wrong, an hour for an hour. While it is behind the device's info says so (clock_behind: since and by_seconds, as first seen) and the punches of its messages that are not on time carry clock_behind_seconds; they are kept as reported. The envelope's tenant, endpoint, group and device name the device.", "type": "object", "properties": { "by_seconds": { "type": "integer", "description": "By how much the clock is behind: the least of the lags seen, in seconds." }, "tolerance_seconds": { "type": "integer", "description": "How late a punch may be, and how far apart the lags may be, before the clock is taken to be behind." }, "least_lag_seconds": { "type": "integer", "description": "The least lag among the uploads seen late, in seconds." }, "greatest_lag_seconds": { "type": "integer", "description": "The greatest lag among them, in seconds." }, "late_since": { "type": "string", "format": "date-time", "description": "When the first of the late uploads reached the gateway instance that told it." }, "late_for_seconds": { "type": "integer", "description": "How long the uploads had been late by about the same amount when it was told, in seconds: more than the lag." }, "punches": { "type": "integer", "description": "How many punches the message that showed it carried." }, "daylight_saving_hour": { "type": "boolean", "description": "True when the endpoint's zone is in daylight time and by_seconds is, within tolerance_seconds, the hour the zone saves: the clock kept standard time." } }, "required": [ "by_seconds", "tolerance_seconds", "least_lag_seconds", "greatest_lag_seconds", "late_since", "late_for_seconds", "punches", "daylight_saving_hour" ], "examples": [ { "by_seconds": 3610, "tolerance_seconds": 300, "least_lag_seconds": 3610, "greatest_lag_seconds": 3612, "late_since": "2026-10-03T17:00:10Z", "late_for_seconds": 3900, "punches": 1, "daylight_saving_hour": true } ]}