@staticmethod<EOL><INDENT>def create_event(data):<DEDENT>
event = riemann_client.riemann_pb2.Event()<EOL>event.host = socket.gethostname()<EOL>event.tags.extend(data.pop('<STR_LIT>', []))<EOL>for key, value in data.pop('<STR_LIT>', {}).items():<EOL><INDENT>attribute = event.attributes.add()<EOL>attribute.key, attribute.value = key, value<EOL><DEDENT>for name, value in data.items():<EOL><INDENT>if value is not None:<EOL><INDENT>setattr(event, name, value)<EOL><DEDENT><DEDENT>return event<EOL>
Translates a dictionary of event attributes to an Event object

        :param dict data: The attributes to be set on the event
        :returns: A protocol buffer ``Event`` object