Versions in this module Expand all Collapse all v0 v0.3.0 Jul 8, 2016 Changes in this version + func Alerts(alerts ...*Alert) model.Alerts + type Alert struct + Timeout bool + UpdatedAt time.Time + WasInhibited bool + WasSilenced bool + func (a *Alert) Merge(o *Alert) *Alert + type AlertSlice []*Alert + func (as AlertSlice) Len() int + func (as AlertSlice) Less(i, j int) bool + func (as AlertSlice) Swap(i, j int) + type Marker interface + Inhibited func(alert model.Fingerprint) bool + SetInhibited func(alert model.Fingerprint, b bool) + SetSilenced func(alert model.Fingerprint, sil ...uint64) + Silenced func(alert model.Fingerprint) (uint64, bool) + func NewMarker() Marker + type Matcher struct + Name model.LabelName + Value string + func NewMatcher(name model.LabelName, value string) *Matcher + func NewRegexMatcher(name model.LabelName, re *regexp.Regexp) *Matcher + func (m *Matcher) IsRegex() bool + func (m *Matcher) MarshalJSON() ([]byte, error) + func (m *Matcher) Match(lset model.LabelSet) bool + func (m *Matcher) String() string + type Matchers []*Matcher + func (ms Matchers) Fingerprint() model.Fingerprint + func (ms Matchers) Match(lset model.LabelSet) bool + type MultiError struct + func (e *MultiError) Add(err error) + func (e *MultiError) Error() string + func (e *MultiError) Errors() []error + func (e *MultiError) Len() int + type MuteFunc func(model.LabelSet) bool + func (f MuteFunc) Mutes(lset model.LabelSet) bool + type Muter interface + Mutes func(model.LabelSet) bool + type NotifyInfo struct + Alert model.Fingerprint + Receiver string + Resolved bool + Timestamp time.Time + func (n *NotifyInfo) Fingerprint() model.Fingerprint + func (n *NotifyInfo) String() string + type Silence struct + Matchers Matchers + func NewSilence(s *model.Silence) *Silence + func (sil *Silence) Mutes(lset model.LabelSet) bool