Versions in this module Expand all Collapse all v1 v1.2.0 Jan 23, 2017 Changes in this version + type Event struct + Data EventData + State EventState + Topic string + func (e Event) PreviousState() EventState + func (e Event) TemplateData() TemplateData + type EventData struct + Fields map[string]interface{} + Group string + Name string + Result influxql.Result + Tags map[string]string + TaskName string + type EventState struct + Details string + Duration time.Duration + ID string + Level Level + Message string + Time time.Time + type Handler interface + Handle func(event Event) + type Level int + const Critical + const Info + const OK + const Warning + func ParseLevel(s string) (l Level, err error) + func (l *Level) UnmarshalText(text []byte) error + func (l Level) MarshalText() ([]byte, error) + func (l Level) String() string + type TemplateData struct + Duration time.Duration + Fields map[string]interface{} + Group string + ID string + Level string + Message string + Name string + Tags map[string]string + TaskName string + Time time.Time + type Topic struct + func (t *Topic) Collected() int64 + func (t *Topic) EventState(event string) (EventState, bool) + func (t *Topic) EventStates(minLevel Level) map[string]EventState + func (t *Topic) ID() string + func (t *Topic) MaxLevel() Level + func (t *Topic) Status() TopicStatus + type TopicStatus struct + Collected int64 + Level Level + type Topics struct + func NewTopics(l *log.Logger) *Topics + func (s *Topics) Close() error + func (s *Topics) Collect(event Event) error + func (s *Topics) DeleteTopic(topic string) + func (s *Topics) DeregisterHandler(topics []string, h Handler) + func (s *Topics) EventState(topic, event string) (EventState, bool) + func (s *Topics) Open() error + func (s *Topics) RegisterHandler(topics []string, h Handler) + func (s *Topics) ReplaceHandler(oldTopics, newTopics []string, oldH, newH Handler) + func (s *Topics) RestoreTopic(id string, eventStates map[string]EventState) + func (s *Topics) Topic(id string) (*Topic, bool) + func (s *Topics) TopicStatus(pattern string, minLevel Level) map[string]TopicStatus + func (s *Topics) TopicStatusEvents(pattern string, minLevel Level) map[string]map[string]EventState + func (s *Topics) UpdateEvent(id string, event EventState) v1.2.0-rc2 Jan 13, 2017 v1.2.0-rc1 Jan 11, 2017