Edge-Cloud Sync
Connect edge devices to a cloud RadarOS instance with heartbeats, remote configuration, event streaming, and an offline-first event queue.Quick Start
Config
Cloud server base URL.
Unique identifier for this edge device.
Bearer token for cloud API authentication.
Heartbeat frequency in milliseconds.
Directory for the offline event queue.
Maximum queued events before oldest are dropped.
How often to attempt flushing queued events.
Features
Heartbeat
PeriodicPOST /edge/heartbeat to the cloud with device status, resource metrics, and queue depth.
Config Pull
pullConfig() fetches agent, team, and workflow blueprints from the cloud admin API (GET /admin/agents, /admin/teams, /admin/workflows), allowing remote deployment of agent configurations.
Event Push
pushEvent(type, payload) streams agent run results and telemetry back to the cloud for logging and monitoring.
Offline-First Queue
Events are persisted to a local JSONL file when the cloud is unreachable. On reconnect, the entire queue is flushed in a single batch. The queue respectsmaxQueueSize — oldest events are dropped when the limit is reached.
Events
| Event | Payload | Description |
|---|---|---|
connected | — | Cloud connection established or restored |
disconnected | — | Cloud connection lost |
config-pulled | { agents, teams, workflows } | Successfully pulled remote config |
config-pull-error | { error } | Failed to pull remote config |
queue-loaded | { count } | Loaded persisted events from disk on startup |