bobocep.cep.event.simple.BoboEventSimple
- class bobocep.cep.event.simple.BoboEventSimple(event_id: str, timestamp: int, data: Any)[source]
Bases:
BoboEventA simple event.
- __init__(event_id: str, timestamp: int, data: Any)[source]
- Parameters:
event_id – The event ID.
timestamp – The event timestamp.
data – The event data.
- cast(dtype: type) BoboEventSimple[source]
- Parameters:
dtype – The type to which the event’s data is cast.
- Returns:
A new BoboEventSimple instance with its data cast to dtype and all other properties identical to the original event.
- property data: Any
Get event data.
- property event_id: str
Get event ID.
- static from_json_dict(d: dict) BoboEventSimple[source]
- Parameters:
d – A JSON dict representation of the event.
- Returns:
A new instance of the event type.
- static from_json_str(j: str) BoboEventSimple[source]
- Parameters:
j – A JSON str representation of the event.
- Returns:
A new instance of the event type.
- property timestamp: int
Get event timestamp.