device.set_aside.expired
The gateway’s own event: MQTT messages of a device, set aside because what they waited for could take long (the device waiting to be allowed, registered or to present its key, its package failing on them, its endpoint or tenant stopped, its tenant full), were dropped without being taken in (reason says why). One event per device (the envelope’s device is empty when the package could not tell which device sent them) each time messages are dropped, saying how many. What the messages carried is never in it. The envelope’s tenant, endpoint and device name where they came from, and package is the endpoint’s package (houradvantage when the endpoint is gone).
Schema id: urn:houradvantage:events:3:device.set_aside.expired
Fields
| Field | Type | Required | Description |
|---|---|---|---|
count | integer | yes | How many of the device’s messages were dropped. at least 1 |
set_aside_days | integer | yes | limits.set_aside_days when they were dropped: with reason expired, they had been set aside longer. at least 1 |
reason | "expired" \ | "endpoint_gone" \ | "unroutable" \ |
Example
{ "count": 3, "set_aside_days": 7, "reason": "expired"}JSON Schema
device.set_aside.expired.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:device.set_aside.expired", "title": "device.set_aside.expired: data", "description": "The gateway's own event: MQTT messages of a device, set aside because what they waited for could take long (the device waiting to be allowed, registered or to present its key, its package failing on them, its endpoint or tenant stopped, its tenant full), were dropped without being taken in (`reason` says why). One event per device (the envelope's device is empty when the package could not tell which device sent them) each time messages are dropped, saying how many. What the messages carried is never in it. The envelope's tenant, endpoint and device name where they came from, and package is the endpoint's package (houradvantage when the endpoint is gone).", "type": "object", "required": [ "count", "set_aside_days" ], "properties": { "count": { "type": "integer", "minimum": 1, "description": "How many of the device's messages were dropped." }, "set_aside_days": { "type": "integer", "minimum": 1, "description": "limits.set_aside_days when they were dropped: with reason expired, they had been set aside longer." }, "reason": { "enum": [ "expired", "endpoint_gone", "unroutable", "device_blocked", "device_removed" ], "description": "Why they were dropped. expired: kept longer than limits.set_aside_days. endpoint_gone: their endpoint no longer exists. unroutable: no endpoint takes their topic any more. device_blocked: their device was blocked, which drops what it had set aside. device_removed: their device was removed." } }, "examples": [ { "count": 3, "set_aside_days": 7, "reason": "expired" } ]}