'Return the metadata of this issue.
See ``sentry.eventtypes``.'

def get_event_metadata(self):

    etype = self.data.get('type')
    if (etype is None):
        etype = 'default'
    if ('metadata' not in self.data):
        data = (self.data.copy() if self.data else {})
        data['message'] = self.message
        return eventtypes.get(etype)(data).get_metadata()
    return self.data['metadata']
