private void checkSpecificHooks(String ruleName, Set<String> hooks) {
        if (!this.allHooks.containsAll(hooks)) {
            throw new IllegalArgumentException("rule: [" + ruleName + "] contains invalid hooks." +
                                                   " Please check the hook is exist and name format is {hookType}.{hookName}");
        }
    }
Read Discord hook config into {@link DiscordSettings}
oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/RulesReader.java