refactor RuleType, change rules from list to map, change AlertInfo map