feat(REQ-4418) - 增加可忽略的告警应用
This commit is contained in:
parent
8802b165dc
commit
9f72c409a7
@ -92,4 +92,11 @@ public class SupportRefreshProperties {
|
||||
|
||||
@Value("${workflow.imTemplateCode:}")
|
||||
private String imTemplateCode;
|
||||
|
||||
/**
|
||||
* 忽略 MQ 必接事件的告警服务名
|
||||
*/
|
||||
@Value("${workflow.ignoreMqAlterApplicationNames:}")
|
||||
private List<String> ignoreMqAlterApplicationNames;
|
||||
|
||||
}
|
||||
|
||||
@ -61,7 +61,12 @@ public class DingTalkAlter implements Alter {
|
||||
}
|
||||
|
||||
if (obj instanceof DingTalkStarterAlterDTO) {
|
||||
rivenDingtalkForStarter((DingTalkStarterAlterDTO) obj);
|
||||
DingTalkStarterAlterDTO starterAlterDTO = (DingTalkStarterAlterDTO) obj;
|
||||
if (refreshProperties.getIgnoreMqAlterApplicationNames().contains(starterAlterDTO.getApplicationName())) {
|
||||
// 忽略必接事件的应用
|
||||
return;
|
||||
}
|
||||
rivenDingtalkForStarter(starterAlterDTO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user