wei.core.events

Contains the Events class for logging experiment steps

Functions

send_event(event[, retry_count])

Sends an event to the server to be logged

Classes

EventHandler()

Registers Events during the Experiment execution in a logfile, in Redis, and (if use_diaspora is true) on Kafka

class wei.core.events.EventHandler

Registers Events during the Experiment execution in a logfile, in Redis, and (if use_diaspora is true) on Kafka

classmethod initialize_diaspora() bool

Initializes the Kafka producer and creates the topic if it doesn’t exist already

classmethod log_event(event: Event) None

logs an event in the proper place for the given experiment

Parameters:

log_value (str) – the specifically formatted value to log

Returns:

None

classmethod log_event_diaspora(event: Event, retry_count=3) None

Logs an event to diaspora

wei.core.events.send_event(event: Event, retry_count=3) Any

Sends an event to the server to be logged