device.clock_ahead
The gateway’s own event: a device was first seen with its clock set ahead, because a punch it sent was made more than tolerance_seconds after the moment it reached the gateway. It is told once, when the device is first seen so: while the device keeps sending such punches nothing more is told, and when a message of its punches comes with none ahead, the status is cleared, so a later fault is told again. While it is ahead the device’s info says so (clock_ahead: since and by_seconds, as first seen), and its punches from the future are marked clock_ahead and kept out of the person’s punch state and zone state. The envelope’s tenant, endpoint, group and device name the device.
Schema id: urn:houradvantage:events:3:device.clock_ahead
Fields
| Field | Type | Required | Description |
|---|---|---|---|
by_seconds | integer | yes | How far ahead the furthest punch of the message that showed it was, in seconds. |
tolerance_seconds | integer | yes | How far ahead of its arrival a punch’s time may be before the clock is taken to be set ahead. |
Example
{ "by_seconds": 31536000, "tolerance_seconds": 300}JSON Schema
device.clock_ahead.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:device.clock_ahead", "title": "device.clock_ahead: data", "description": "The gateway's own event: a device was first seen with its clock set ahead, because a punch it sent was made more than tolerance_seconds after the moment it reached the gateway. It is told once, when the device is first seen so: while the device keeps sending such punches nothing more is told, and when a message of its punches comes with none ahead, the status is cleared, so a later fault is told again. While it is ahead the device's info says so (clock_ahead: since and by_seconds, as first seen), and its punches from the future are marked clock_ahead and kept out of the person's punch state and zone state. The envelope's tenant, endpoint, group and device name the device.", "type": "object", "properties": { "by_seconds": { "type": "integer", "description": "How far ahead the furthest punch of the message that showed it was, in seconds." }, "tolerance_seconds": { "type": "integer", "description": "How far ahead of its arrival a punch's time may be before the clock is taken to be set ahead." } }, "required": [ "by_seconds", "tolerance_seconds" ], "examples": [ { "by_seconds": 31536000, "tolerance_seconds": 300 } ]}