(configType string)
| 619 | } |
| 620 | |
| 621 | func (a AlertService) validateCommunityAlertConfigType(configType string) error { |
| 622 | if global.CONF.Base.IsEnterprise || global.CONF.Base.Edition == "cn" { |
| 623 | return nil |
| 624 | } |
| 625 | if _, ok := communityAlertMethodTypeNames[configType]; ok { |
| 626 | return buserr.WithErr("ErrAlertMethodNotSupported", nil) |
| 627 | } |
| 628 | return nil |
| 629 | } |
| 630 | |
| 631 | func alertConfigDisplayName(configType, configData string) string { |
| 632 | switch configType { |