'Detailed view of a single message.'

def detail(self, request, message):

    message_ref = {'id': message.get('id'), 'event_id': message.get('event_id'), 'user_message': message.get('user_message'), 'message_level': message.get('message_level'), 'created_at': message.get('created_at'), 'guaranteed_until': message.get('expires_at'), 'request_id': message.get('request_id'), 'links': self._get_links(request, message['id'])}
    if message.get('resource_type'):
        message_ref['resource_type'] = message.get('resource_type')
    if message.get('resource_uuid'):
        message_ref['resource_uuid'] = message.get('resource_uuid')
    return {'message': message_ref}
