def parse(self, message, schema):
        """Parse message according to schema.

        `message` should already be validated against the given schema.
        See :ref:`schemadef` for more information.

        Args:
            message (dict): message data to parse.
            schema (str): valid message schema.
        Returns:
            (dict): parsed message
        """
        func = {
            'audit-log': self._parse_audit_log_msg,
            'event': self._parse_event_msg,
        }[schema]
        return func(message)
Parse message according to schema.

        `message` should already be validated against the given schema.
        See :ref:`schemadef` for more information.

        Args:
            message (dict): message data to parse.
            schema (str): valid message schema.
        Returns:
            (dict): parsed message