mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Add Supervisor::node_status notification event
The Supervisor generates this event every time it receives a status update from the stem, meaning a node got created or re-created. A corresponding SupervisorControl::node_status event relays the same information for users interacting with the Supervisor over Broker.
This commit is contained in:
parent
bdfa7e70f5
commit
14188fc7a7
9 changed files with 98 additions and 0 deletions
|
@ -150,4 +150,15 @@ export {
|
|||
##
|
||||
## msg: line-buffered contents from the stderr of a child process.
|
||||
global stderr_hook: hook(node: string, msg: string);
|
||||
|
||||
## A notification event the Supervisor generates when it receives a
|
||||
## status message update from the stem, indicating node has
|
||||
## (re-)started.
|
||||
##
|
||||
## node: the name of a previously created node via
|
||||
## :zeek:see:`Supervisor::create` indicating to which
|
||||
## child process the stdout line is associated.
|
||||
##
|
||||
## pid: the process ID the stem reported for this node.
|
||||
global node_status: event(node: string, pid: count);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue