@Override
    public void doAlarm(List<AlarmMessage> alarmMessages) throws Exception {
        Map<String, WeLinkSettings> settingsMap = alarmRulesWatcher.getWeLinkSettings();
        if (settingsMap == null || settingsMap.isEmpty()) {
            return;
        }
        Map<String, List<AlarmMessage>> groupedMessages =  groupMessagesByHook(alarmMessages);
        for (Map.Entry<String, List<AlarmMessage>> entry : groupedMessages.entrySet()) {
            var hookName = entry.getKey();
            var messages = entry.getValue();
            var setting = settingsMap.get(hookName);
            if (setting == null || CollectionUtils.isEmpty(setting.getWebhooks()) || CollectionUtils.isEmpty(
                messages)) {
                continue;
            }
            for (final var webHookUrl : setting.getWebhooks()) {
                final var accessToken = getAccessToken(webHookUrl);
                for (final var alarmMessage : messages) {
                    final var content = String.format(
                        setting.getTextTemplate(),
                        alarmMessage.getAlarmMessage()
                    );
                    sendAlarmMessage(webHookUrl, accessToken, content);
                }
            }
        }
    }
Send alarm message if the settings not empty
oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/welink/WeLinkHookCallback.java