def as_event_description(self):
description = {<EOL>self.name: {<EOL>'<STR_LIT>': self.time,<EOL>},<EOL>}<EOL>if self.data is not None:<EOL><INDENT>description[self.name]['<STR_LIT:data>'] = self.data<EOL><DEDENT>return description<EOL>
Get the event description.

Returns a dictionary describing the event.