def METHOD_NAME(self, jsonpath_expr, oper, val, msg, thr=None):
    kind = msg.get("kind")
    if kind == "patch":
        if self.eval_condition(jsonpath_expr, oper, val, thr.daemon_status_data.get()):
            return True
    elif kind == "event":
        if self.eval_condition(jsonpath_expr, oper, val, msg):
            return True
    return False