def __init__(self, type, time, data):
self.type = type<EOL>if isinstance(time, types.StringTypes):<EOL><INDENT>time = date_parser.parse(time, fuzzy=True)<EOL><DEDENT>self.time = time<EOL>self.data = data<EOL>
Create a Cube Event.

        :param type: The type of the event.
        :type type: str
        :param time: The timestamp of the event.
        :type time: str or datetime
        :param data: The data dictionary for the event.
        :type data: dict