TopologyGraph
Auto-generated API reference for TopologyGraph.
Interface: TopologyGraph
Defined in: observability/src/topology-graph.ts:56
#Properties
#edges
edges:
Map<string,TopologyEdge>
Defined in: observability/src/topology-graph.ts:58
#ingest
ingest: (
event) =>void
Defined in: observability/src/topology-graph.ts:63
Send a TopologyLogEvent into the graph. Mutates state. Calls every subscriber after each event.
#Parameters
event
#Returns
void
#nodes
nodes:
Map<string,TopologyNode>
Defined in: observability/src/topology-graph.ts:57
#reset
reset: () =>
void
Defined in: observability/src/topology-graph.ts:73
Reset to empty (e.g. when a new run starts).
#Returns
void
#subscribe
subscribe: (
handler) => () =>void
Defined in: observability/src/topology-graph.ts:71
Subscribe to graph changes. Returns an unsubscribe handle.
#Parameters
handler
(snapshot) => void
#Returns
() => void
#toAscii
toAscii: () =>
string
Defined in: observability/src/topology-graph.ts:69
ASCII renderer (Ink-friendly).
#Returns
string
#toJSON
toJSON: () =>
TopologyGraphSnapshot
Defined in: observability/src/topology-graph.ts:65
Snapshot in a JSON-serialisable form for the devtools wire.
#Returns
#toMermaid
toMermaid: () =>
string
Defined in: observability/src/topology-graph.ts:67
Mermaid graph LR diagram.
#Returns
string