Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventStatusCritical = "Critical" EventStatusWarning = "Warning" EventStatusInfo = "Info" EventStatusOk = "Ok" AttrPrefix = "_attr_" )
Variables ¶
This section is empty.
Functions ¶
func EvaluateGeThreshold ¶
EvaluateGeThreshold returns the event status for a "greater-than-or-equal" threshold pair. A threshold value of 0 means "not configured / disabled".
func EventStatusValid ¶
Types ¶
type Event ¶
type Event struct {
EventTime int64 `json:"event_time"`
EventStatus string `json:"event_status"`
AlertKey string `json:"alert_key"`
Labels map[string]string `json:"labels"`
TitleRule string `json:"title_rule"` // $a::b::$c
Description string `json:"description"`
// for internal use
FirstFireTime int64 `json:"-"`
NotifyCount int64 `json:"-"`
LastSent int64 `json:"-"`
}
func BuildEvent ¶
func (*Event) SetDescription ¶
func (*Event) SetEventStatus ¶
func (*Event) SetEventTime ¶
func (*Event) SetTitleRule ¶
Click to show internal directories.
Click to hide internal directories.