Skip to content

unparsed

A record the package could not interpret, passed on as the device sent it instead of being dropped: the device was told it was received and will not send it again. zk-push 2.0, 2.4 and 3.4 send it for an upload line they cannot read (a punch whose time cannot be read, a row that names no user, a row the package does not know); brightlink-cloud for a punch message without a usable userId or with a time it cannot place; the gateway for a row whose key (a user id, a list item’s key) is longer than 128 characters, the most a registry key may have (the row’s kind and field are in context, raw has the first 24 characters of the key and a hash of it, never the key); the MQTT listener for a message that cannot be set aside because its tenant has as many messages set aside as it may (raw is then the message as it came, context.topic its topic, and reason why it waited: no route of the package took it, its device waits to be allowed, and so on). Whatever sent it, a raw of more than 16 KiB is cut (see raw).

Schema id: urn:houradvantage:events:3:unparsed

Fields

FieldTypeRequiredDescription
reasonstringyesWhy the package could not read it, in words (“a punch whose time cannot be read”, “punch without userId”).
rawstringyesThe record as the device sent it: zk-push, the upload line; brightlink-cloud, the whole message body. At most 16 KiB (16384 bytes) in all: a longer record is cut to its start and ends in ... sha256: and 16 hex characters of the hash of the whole record, and context.raw_bytes says how many bytes it had. The same record sent again is the same event, cut or not.
contextobjectWhere the record came from, in the package’s terms, as name to text. zk-push: table, the upload table (“ATTLOG”, “OPERLOG”). Absent when the package gives none (brightlink-cloud), unless raw was cut: then raw_bytes, the length in bytes of the record before it was cut.

Example

{
"reason": "a punch whose time cannot be read",
"raw": "1001\tyesterday\t0\t1",
"context": {
"table": "ATTLOG"
}
}

JSON Schema

unparsed.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:unparsed",
"title": "unparsed: data",
"description": "A record the package could not interpret, passed on as the device sent it instead of being dropped: the device was told it was received and will not send it again. zk-push 2.0, 2.4 and 3.4 send it for an upload line they cannot read (a punch whose time cannot be read, a row that names no user, a row the package does not know); brightlink-cloud for a punch message without a usable userId or with a time it cannot place; the gateway for a row whose key (a user id, a list item's key) is longer than 128 characters, the most a registry key may have (the row's kind and field are in context, `raw` has the first 24 characters of the key and a hash of it, never the key); the MQTT listener for a message that cannot be set aside because its tenant has as many messages set aside as it may (raw is then the message as it came, context.topic its topic, and reason why it waited: no route of the package took it, its device waits to be allowed, and so on). Whatever sent it, a `raw` of more than 16 KiB is cut (see `raw`).",
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Why the package could not read it, in words (\"a punch whose time cannot be read\", \"punch without userId\")."
},
"raw": {
"type": "string",
"description": "The record as the device sent it: zk-push, the upload line; brightlink-cloud, the whole message body. At most 16 KiB (16384 bytes) in all: a longer record is cut to its start and ends in `... sha256:` and 16 hex characters of the hash of the whole record, and context.raw_bytes says how many bytes it had. The same record sent again is the same event, cut or not."
},
"context": {
"description": "Where the record came from, in the package's terms, as name to text. zk-push: table, the upload table (\"ATTLOG\", \"OPERLOG\"). Absent when the package gives none (brightlink-cloud), unless `raw` was cut: then raw_bytes, the length in bytes of the record before it was cut.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"reason",
"raw"
],
"examples": [
{
"reason": "a punch whose time cannot be read",
"raw": "1001\tyesterday\t0\t1",
"context": {
"table": "ATTLOG"
}
}
]
}