CogServer::MonitorEvent
Inherits Struct < Value < Object
Real-time event for WebSocket broadcasting
Constructors
new(event_type : MonitorEventType, data : Hash(String, JSON::Any) = Hash(String, JSON::Any).new)
Instance methods
data
data=(data : Hash(String, JSON::Any))
event_type
event_type=(event_type : MonitorEventType)
timestamp
timestamp=(timestamp : Time)
to_json(io : IO)