Fix the wrong states
change the "getMonitorEvents" method name to make it better
Generated
redesign the code structure and remove the useless permission