fix compile warning
refactor the alert manager
Merge pull request #424 from youyong205/master

refactor alert module