Documentation ¶
Index ¶
- Variables
- func AlarmIsUnionString(event *model.Event) string
- func BuildCommonIMContent(event *model.Event) string
- func BuildCommonMailContent(event *model.Event, uic string, amstag string, grps string) string
- func BuildCommonPhoneContent(event *model.Event) string
- func BuildCommonSMSContent(event *model.Event, uic string, amstag string, grps string) string
- func BuildLarkCardImContent(userNames []string, event *model.Event, amstag string, grps string) map[string]string
- func Callback(event *model.Event, action *api.Action, grps string) string
- func CleanExpiredEvent()
- func CombineIM()
- func CombineMail()
- func CombineSms()
- func CommonFilterBlock(event *cmodel.Event, userMap map[string]*uic.User) map[string]*uic.User
- func ConsumeFailedIM()
- func ConsumeIM()
- func ConsumeMail()
- func ConsumePhone()
- func ConsumeSms()
- func FormatMetricTags(event *model.Event) string
- func FormatOneFuncValue(event *model.Event) string
- func GenerateIMContent(event *model.Event) string
- func GenerateMailContent(event *model.Event, amstag string, grps string) string
- func GeneratePhoneContent(event *model.Event) string
- func GenerateSmsContent(event *model.Event, amstag string, grps string) string
- func GenerateUserMap(event *cmodel.Event, action *api.Action) map[string]*uic.User
- func GetBlockMonitors()
- func GetRebotTokenByIdAndSecret(app_id, app_secret, url string) string
- func GetTokenFromCache(token string) string
- func HandleCallback(event *model.Event, action *api.Action, amstag string, grps string)
- func HttpSendPhone(user, content string) error
- func HttpSendSms(sms *model.Sms) error
- func InitSenderWorker()
- func LarkBotCard(url, bodyData, Tos, token string) error
- func LarkBotText(url, Content, Tos, token string) error
- func LarkCardButton(name, url string) map[string]interface{}
- func LarkCardCallBackButton(name string, data interface{}) map[string]interface{}
- func LowLevelFilterBlock(event *cmodel.Event, userMap map[string]*uic.User) map[string]*uic.User
- func ParseUserIm(event *cmodel.Event, action *api.Action, amstag string, grps string)
- func ParseUserMail(event *cmodel.Event, action *api.Action, amstag string, grps string)
- func ParseUserSms(event *cmodel.Event, action *api.Action, amstag string, grps string)
- func ReadHighEvent()
- func ReadLowEvent()
- func RefreshBlockMonitor()
- func SendFailedIMList(L []*model.IM)
- func SendIM(im *model.IM, queue string, worker chan int)
- func SendIMList(L []*model.IM)
- func SendMail(mail *model.Mail)
- func SendMailList(L []*model.Mail)
- func SendPhone(sms *model.Sms)
- func SendPhoneList(L []*model.Sms)
- func SendSms(sms *model.Sms)
- func SendSmsList(L []*model.Sms)
- func UnionAlarmFormatFuncValue(event *model.Event) string
- type BotResp
- type ImDto
- type MailDto
- type SmsDto
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IMWorkerChan chan int FailedIMWorkerChan chan int SmsWorkerChan chan int MailWorkerChan chan int PhoneWorkerChan chan int )
View Source
var BlockMonitorCounter sync.Map
Functions ¶
func AlarmIsUnionString ¶
func BuildCommonIMContent ¶
func BuildCommonMailContent ¶
func BuildCommonPhoneContent ¶
func BuildCommonSMSContent ¶
func BuildCommonSMSContent(event *model.Event) string {
func BuildLarkCardImContent ¶
func CleanExpiredEvent ¶
func CleanExpiredEvent()
func CombineMail ¶
func CombineMail()
func CombineSms ¶
func CombineSms()
func CommonFilterBlock ¶
func ConsumeFailedIM ¶
func ConsumeFailedIM()
func ConsumeMail ¶
func ConsumeMail()
func ConsumePhone ¶
func ConsumePhone()
func ConsumeSms ¶
func ConsumeSms()
func FormatMetricTags ¶
func FormatOneFuncValue ¶
func GenerateIMContent ¶
func GenerateMailContent ¶
func GeneratePhoneContent ¶
func GenerateSmsContent ¶
func GenerateUserMap ¶
func GetBlockMonitors ¶
func GetBlockMonitors()
func GetTokenFromCache ¶
func HandleCallback ¶
func HttpSendPhone ¶
func HttpSendSms ¶
func InitSenderWorker ¶
func InitSenderWorker()
func LarkBotCard ¶
func LarkBotText ¶
func LarkCardButton ¶
func LarkCardCallBackButton ¶
func LowLevelFilterBlock ¶
func ParseUserIm ¶
func ParseUserMail ¶
func ParseUserSms ¶
func ReadHighEvent ¶
func ReadHighEvent()
func ReadLowEvent ¶
func ReadLowEvent()
func RefreshBlockMonitor ¶
func RefreshBlockMonitor()
func SendFailedIMList ¶
func SendIMList ¶
func SendMailList ¶
func SendPhoneList ¶
func SendSmsList ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.