refactor heart beat alert
fix a bug occurred on coping rules
Merge pull request #629 from leonindy/master

refactor heart beat alert