sync.paused
Sent by the gateway for a sync group: the bulk-delete guard paused a member device. It reported that it cleared its users or its data (a data_cleared, users_cleared or factory_reset in its log, not one from before it joined), or more than 20 of its deletes were to be taken in within 10 minutes. Nothing it reported in that message is taken in, nothing of it goes to the other members, and nothing is sent to it, until it is resumed (POST /api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}/resume). A sync.member event with change paused is sent with it. The envelope has endpoint “sync:
Schema id: urn:houradvantage:events:3:sync.paused
Fields
| Field | Type | Required | Description |
|---|---|---|---|
domain | "people" \ | "access" \ | "lists" \ |
endpoint | string | yes | The member’s endpoint. |
device | string | yes | The member device’s id. |
reason | string | yes | Why, in words: “the device cleared its users”, “the device reported data cleared” (or users cleared, factory reset), or “the device deleted more than 20 rows within 10 minutes”. |
Example
{ "domain": "people", "endpoint": "office", "device": "CG0001", "reason": "the device deleted more than 20 rows within 10 minutes"}JSON Schema
sync.paused.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:sync.paused", "title": "sync.paused: data", "description": "Sent by the gateway for a sync group: the bulk-delete guard paused a member device. It reported that it cleared its users or its data (a data_cleared, users_cleared or factory_reset in its log, not one from before it joined), or more than 20 of its deletes were to be taken in within 10 minutes. Nothing it reported in that message is taken in, nothing of it goes to the other members, and nothing is sent to it, until it is resumed (POST /api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}/resume). A sync.member event with change paused is sent with it. The envelope has endpoint \"sync:<group>\", device \"\" and package \"houradvantage-connect\"; the event goes to the sinks the group names.", "type": "object", "properties": { "domain": { "enum": [ "people", "access", "lists", "settings", "punches" ], "description": "people when the group keeps people, otherwise the first domain the group keeps. The whole member is paused, whatever the domain." }, "endpoint": { "type": "string", "description": "The member's endpoint." }, "device": { "type": "string", "description": "The member device's id." }, "reason": { "type": "string", "description": "Why, in words: \"the device cleared its users\", \"the device reported data cleared\" (or users cleared, factory reset), or \"the device deleted more than 20 rows within 10 minutes\"." } }, "required": [ "domain", "endpoint", "device", "reason" ], "examples": [ { "domain": "people", "endpoint": "office", "device": "CG0001", "reason": "the device deleted more than 20 rows within 10 minutes" } ]}