sparkplug_node_list
Discover edge nodes and devices with online state and primary-host status, using birth/death/state topics to identify sequence gaps and connectivity issues.
Instructions
[READ][risk=low] Discover edge nodes/devices + online state + primary-host STATE.
Builds the birth/death + seq model from BIRTH/DATA/DEATH/STATE topics: each
node reports online/born, its devices, learned metric aliases, and seq gaps;
STATE topics surface primary-host status.
Args:
endpoint: Endpoint name from config.
timeout_s: Observation window in seconds (1..60). Longer catches infrequent nodes.
count: Max messages to inspect (1..500).
Returns dict: {endpoint, node_count, nodes:[{group_id, edge_node_id, online,
born, devices:[...], metric_aliases_known, seq_gap_count, seq_issues}],
primary_hosts:[{host_id, state}]}.
Example: sparkplug_node_list(timeout_s=15).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| endpoint | No | ||
| timeout_s | No |