Documentation ¶
Index ¶
- type Event
- func (e *Event) AddTag(t string)
- func (e *Event) DisplayMetric(metric string) string
- func (e *Event) DisplayTags() string
- func (e *Event) HasTag(t string) bool
- func (e *Event) IsGreenAlert() bool
- func (e *Event) IsRedAlert() bool
- func (e *Event) MarkGreenAlert()
- func (e *Event) MarkRedAlert(messages []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { CheckID string `json:"-"` CheckName string `json:"-"` CheckType string `json:"-"` Time utils.RFCTime `json:"time"` Data data.CheckResponse `json:"data"` Tags map[string]string `json:"tags"` Messages []string `json:"messages"` }
func NewEvent ¶
func NewEvent(checkID, checkName, checkType string, checkResponse data.CheckResponse) *Event
func (*Event) DisplayMetric ¶
func (*Event) DisplayTags ¶
func (*Event) IsGreenAlert ¶
func (*Event) IsRedAlert ¶
func (*Event) MarkGreenAlert ¶
func (e *Event) MarkGreenAlert()
func (*Event) MarkRedAlert ¶
Click to show internal directories.
Click to hide internal directories.