Documentation
¶
Index ¶
- Constants
- func CallbackConsumer()
- func CleanEvent()
- func CleanEventLoop()
- func CleanStra()
- func CleanStraLoop()
- func IsMaskEvent(event *models.Event) bool
- func MergeEvent()
- func NeedCallback(sid int64) bool
- func PopCallbackEvent(queue string) *models.Event
- func PushCallbackEvent(event *models.Event) error
- func ReadHighEvent()
- func ReadLowEvent()
- func SetEventStatus(event *models.Event, status string)
- func SyncMaskconf() error
- func SyncMaskconfLoop()
- func SyncStra() error
- func SyncStraLoop()
- type CallbackEvent
Constants ¶
View Source
const ALERT_TIME_PREFIX = "/mon/alert/time/"
View Source
const ALERT_UPGRADE_PREFIX = "/mon/alert/upgrade/"
View Source
const RECOVERY_TIME_PREFIX = "/mon/recovery/time/"
Variables ¶
This section is empty.
Functions ¶
func CallbackConsumer ¶
func CallbackConsumer()
func CleanEvent ¶
func CleanEvent()
func CleanEventLoop ¶
func CleanEventLoop()
func CleanStraLoop ¶
func CleanStraLoop()
func IsMaskEvent ¶
func MergeEvent ¶
func MergeEvent()
func NeedCallback ¶
func PopCallbackEvent ¶
func PushCallbackEvent ¶
func ReadHighEvent ¶
func ReadHighEvent()
func ReadLowEvent ¶
func ReadLowEvent()
func SetEventStatus ¶
func SyncMaskconf ¶
func SyncMaskconf() error
func SyncMaskconfLoop ¶
func SyncMaskconfLoop()
func SyncStraLoop ¶
func SyncStraLoop()
Types ¶
type CallbackEvent ¶
type CallbackEvent struct {
Id int64 `json:"id"`
Sid int64 `json:"sid"`
Sname string `json:"sname"`
NodePath string `json:"node_path"`
Nid int64 `json:"nid"`
Endpoint string `json:"endpoint"`
Priority int `json:"priority"`
EventType string `json:"event_type"` // alert|recovery
Category int `json:"category"`
Status uint16 `json:"status"`
HashId uint64 `json:"hashid" xorm:"hashid"`
Etime int64 `json:"etime"`
Value string `json:"value"`
Info string `json:"info"`
LastUpdator string `json:"last_updator"`
Created time.Time `json:"created" xorm:"created"`
Groups []string `json:"groups"`
Users []string `json:"users"`
Detail []models.EventDetail `json:"detail"`
}
Click to show internal directories.
Click to hide internal directories.