Event examples
These examples use the node names server and client1. Replace them with
names from your experiment or names chosen for your observability view.
Configure the CLI with your backend URL and Owl ID before publishing; see the
CLI guide.
Apply observations
See Publish observations for command options and guidance on sending node and link events.
owl send node server --shape square
owl send node server --color '#43dbc0'
owl send node server --state ok --message "Service ready"
owl send link server client1 --state warning --duration 5000 \
--message "Temporary packet loss"
Use one event per characteristic. The experiment model defines the experiment topology and every experiment node name. Use those names when observing experiment nodes. An observation naming something outside that model creates an additional visualization node in Owl. These extra nodes are mainly useful for a specific observability purpose, such as showing a logical service or aggregate status; they do not create SPHERE resources or change the experiment model.
If you also publish a legend, replay from offset 0 in the browser to include
it and all observations.
Legend snapshot
Save this as legend.json:
{
"entries": [
{ "state": "STATE_OK", "message": "Normal operation" },
{ "state": "STATE_WARNING", "message": "Needs attention" },
{ "state": "STATE_ERROR", "message": "Service fault" },
{ "color": { "color": "#43dbc0" }, "message": "Service node" },
{ "shape": { "shape": "square" }, "message": "Server" },
{ "shape": { "shape": "circle" }, "message": "Client" }
]
}
Publish the snapshot:
owl send legend legend.json
The legend explains event characteristics; publishing it does not apply those characteristics to entities. Send node or link events to apply them.
Topology snapshot
A topology snapshot is generally unnecessary for the Owl viewer. When its XDC is attached to an experiment's realization, the viewer requests that experiment's topology from the SPHERE portal and can add visualization nodes as observations arrive. The snapshot below is stored in the event stream for other consumers and does not replace the viewer's topology derived from the experiment model.
Save this as topology.json:
{
"nodes": [{ "id": "server" }, { "id": "client1" }],
"links": [{ "a": { "id": "server" }, "b": { "id": "client1" } }]
}
Publish the snapshot:
owl send topology topology.json