implement util for cloud event (#2149)