private void readHooksConfig(Rules rules) {
        Map hooks = (Map) yamlData.getOrDefault("hooks", Collections.EMPTY_MAP);
        if (CollectionUtils.isEmpty(hooks)) {
            return;
        }
        readWebHookConfig(hooks, rules);
        readGrpcConfig(hooks, rules);
        readSlackConfig(hooks, rules);
        readWechatConfig(hooks, rules);
        readDingtalkConfig(hooks, rules);
        readFeishuConfig(hooks, rules);
        readWeLinkConfig(hooks, rules);
        readPagerDutyConfig(hooks, rules);
        readDiscordConfig(hooks, rules);
    }
Read rule config into {@link AlarmRule}
oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/RulesReader.java