def METHOD_NAME(self):
    """
    Get all the warning messages in the log.
    """
    results = []
    for message in self.messages:
        if message["metadata"]["is_warning"]:
            results.append(message)
    return results