Documentation
¶
Overview ¶
add by vincent.zhang for pigeon
Index ¶
- Constants
- Variables
- func BuildCommonIMContent(event *model.Event) string
- func BuildCommonMailContent(event *model.Event) string
- func BuildCommonSMSContent(event *model.Event) string
- func Callback(event *model.Event, action *api.Action) string
- func CleanExpiredEvent()
- func CombineIM()
- func CombineMail()
- func CombineSms()
- func ConsumeIM()
- func ConsumeMail()
- func ConsumePigeon()
- func ConsumeSms()
- func GenerateIMContent(event *model.Event) string
- func GenerateMailContent(event *model.Event) string
- func GeneratePigeon(event *model.Event, ip, hostgroup string) *amodel.Pigeon
- func GenerateSmsContent(event *model.Event) string
- func HandleCallback(event *model.Event, action *api.Action)
- func InitSenderWorker()
- func ParseUserIm(event *cmodel.Event, action *api.Action)
- func ParseUserMail(event *cmodel.Event, action *api.Action)
- func ParseUserSms(event *cmodel.Event, action *api.Action)
- func ReadHighEvent()
- func ReadLowEvent()
- func SendIM(im *model.IM)
- func SendIMList(L []*model.IM)
- func SendMail(mail *model.Mail)
- func SendMailList(L []*model.Mail)
- func SendPigeon(pigeon *model.Pigeon)
- func SendPigeonList(L []*model.Pigeon)
- func SendSms(sms *model.Sms)
- func SendSmsList(L []*model.Sms)
- type ImDto
- type MailDto
- type PigeonDto
- type PigeonFid
- type PigeonFidResponse
- type PigeonResponse
- type SmsDto
Constants ¶
View Source
const ( PIGEON_KEY = "99a35ace8952f662cad672d2f6da5754" PIGEON_SOURE_NAME = "vip-falcon" PIGEON_DEFAULT_FID = 9560 PIGEON_DEFAULT_AVC = "000-000" PIGEON_FID_CREATE_ADMIN = "vincent.zhang" )
Variables ¶
View Source
var ( IMWorkerChan chan int SmsWorkerChan chan int MailWorkerChan chan int PigeonWorkerChan chan int //add by vincent.zhang for pigeon )
Functions ¶
func BuildCommonIMContent ¶
func BuildCommonMailContent ¶
func BuildCommonSMSContent ¶
func CleanExpiredEvent ¶
func CleanExpiredEvent()
func CombineMail ¶
func CombineMail()
func CombineSms ¶
func CombineSms()
func ConsumeMail ¶
func ConsumeMail()
func ConsumePigeon ¶
func ConsumePigeon()
func ConsumeSms ¶
func ConsumeSms()
func GenerateIMContent ¶
func GenerateMailContent ¶
func GenerateSmsContent ¶
func InitSenderWorker ¶
func InitSenderWorker()
func ReadHighEvent ¶
func ReadHighEvent()
func ReadLowEvent ¶
func ReadLowEvent()
func SendIMList ¶
func SendMailList ¶
func SendPigeon ¶
func SendPigeonList ¶
func SendSmsList ¶
Types ¶
type PigeonDto ¶
type PigeonDto struct { Priority int `json:"priority"` Status string `json:"status"` // OK or PROBLEM Endpoint string `json:"endpoint"` Note string `json;"note"` Metric string `json:"metric"` Tags string `json:"tags"` LeftValue string `json:"leftValue"` Func string `json:"func"` Operator string `json:"operator"` RightValue string `json:"rightValue"` EventTime string `json:"eventTime"` IP string `json:"ip"` Domain string `json:"Domain"` }
add by vincent.zhang for pigeon
type PigeonFidResponse ¶
type PigeonResponse ¶
Click to show internal directories.
Click to hide internal directories.