(1)change add rule api:compare+threshold(2)add api for all info of a raw