public static void alarm(final AlarmContent alarmContent) {
        if (StringUtils.isNotEmpty(alarmContent.getNamespaceId())) {
            ShenyuConfig shenyuConfig = SpringBeanUtils.getInstance().getBean(ShenyuConfig.class);
            namespaceId = shenyuConfig.getNamespace();
            alarmContent.setNamespaceId(namespaceId);
        }
        if (Objects.isNull(alarmService)) {
            alarmService = SpringBeanUtils.getInstance().getBean(AlarmService.class);
        }
        if (Objects.isNull(enabled)) {
            ShenyuConfig shenyuConfig = SpringBeanUtils.getInstance().getBean(ShenyuConfig.class);
            enabled = shenyuConfig.getAlert().getEnabled();
        }
        AlarmThreadPoolExecutor.getInstance().execute(() -> alarmService.alarm(alarmContent));
    }
Send alarm content.
@param alarmContent alarm content
shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/alert/AlarmSender.java