Fields
-
int
id
An ID, monotonically increasing, and local to the current session
-
datetime
timestamp
The time at which the event occurred
-
string
class
The name of the class of the object that changed
-
enum event_operation
operation
The operation that was performed
-
string
ref
A reference to the object that changed
-
string
obj_uuid
The uuid of the object that changed
Implicit messages
Explicit messages
-
void
register
(session session_id, Set[string] classes)
Registers this session with the event system. Specifying the empty list will register for all classes.
-
void
unregister
(session session_id, Set[string] classes)
Unregisters this session with the event system
-
Set[Record[event]]
next
(session session_id)
Blocking call which returns a (possibly empty) batch of events
-
int
get_current_id
(session session_id)
Return the ID of the next event to be generated by the system