Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventQueue = list.NewSafeListLimited(10000000)
View Source
var Workers = &WorkersType{rules: make(map[string]RuleEval)}
Functions ¶
func StringSetKeys ¶ added in v5.4.0
Types ¶
type Notice ¶
type Notice struct { Event *models.AlertCurEvent `json:"event"` Tpls map[string]string `json:"tpls"` }
type TaskCreateReply ¶
type TaskForm ¶
type TaskForm struct { Title string `json:"title"` Account string `json:"account"` Batch int `json:"batch"` Tolerance int `json:"tolerance"` Timeout int `json:"timeout"` Pause string `json:"pause"` Script string `json:"script"` Args string `json:"args"` Action string `json:"action"` Creator string `json:"creator"` Hosts []string `json:"hosts"` }
type Vector ¶
type Vector struct { Key string `json:"key"` Labels model.Metric `json:"labels"` Timestamp int64 `json:"timestamp"` Value float64 `json:"value"` }
func ConvertVectors ¶
type WorkersType ¶
type WorkersType struct {
// contains filtered or unexported fields
}
func (*WorkersType) Build ¶
func (ws *WorkersType) Build(rids []int64)
Click to show internal directories.
Click to hide internal directories.