← Gallery

NOC live dashboard (network-xray gallery · startPolling)

Wire xrayCore.startPolling() to your live telemetry (SNMP/gNMI/API) and the topology updates itself. Here a simulated feed flaps the r1–r3 path; the view follows in real time — no page reload, no manual clicks.

poll interval: 2.5s
—
// real usage: poll your own state endpoint, the view auto-updates
var view = xrayCore.renderTopology('#topo', CONFIG, { topology, trace });
view.startPolling(() => fetch('/api/state').then(r => r.json()), 3000);

// the fetcher may return a bare state, or a full snapshot:
//   { state, topology, trace }  ← topology view links/arrows update too
Field shapes: see DATA-CONTRACT.md. Descriptive only — it reflects the state your feed reports, it is not a simulator. The live ping/packet animation is hidden here (traffic-specific).