Versions in this module Expand all Collapse all v0 v0.0.4 Jun 23, 2022 v0.0.3 Jun 22, 2022 v0.0.2 Jun 22, 2022 v0.0.1 Jun 9, 2022 Changes in this version + var ActionShortNames = map[string]ActionType + type Action struct + Cancelled bool + Deadline *time.Time + Fullfilled bool + Message string + Time time.Time + Type ActionType + User string + type ActionType int + const ActionAcknowledge + const ActionCancelClose + const ActionClose + const ActionDelayedClose + const ActionForceClose + const ActionForget + const ActionNone + const ActionNote + const ActionPurge + func (a *ActionType) UnmarshalJSON(b []byte) error + func (a ActionType) HumanString() string + func (a ActionType) MarshalJSON() ([]byte, error) + func (a ActionType) String() string + type AlertError struct + Count int + FirstTime time.Time + LastTime time.Time + Message string + type AlertKey string + func NewAlertKey(name string, group opentsdb.TagSet) AlertKey + func ParseAlertKey(a string) (ak AlertKey, err error) + func (a AlertKey) Group() opentsdb.TagSet + func (a AlertKey) Name() string + type AlertKeys []AlertKey + func (a AlertKeys) Len() int + func (a AlertKeys) Less(i, j int) bool + func (a AlertKeys) Swap(i, j int) + type Attachment struct + ContentType string + Data []byte + Filename string + type Computation struct + Text string + Value interface{} + type Computations []Computation + type Epoch struct + func (t *Epoch) UnmarshalJSON(b []byte) (err error) + func (t Epoch) MarshalJSON() ([]byte, error) + type Event struct + Crit *Result + Status Status + Time time.Time + Unevaluated bool + Warn *Result + type EventsByTime []Event + func (a EventsByTime) Len() int + func (a EventsByTime) Less(i, j int) bool + func (a EventsByTime) Swap(i, j int) + type Float float64 + func (m *Float) UnmarshalJSON(b []byte) error + func (m Float) MarshalJSON() ([]byte, error) + type FuncType int + const TypeAzureAIApps + const TypeAzureResourceList + const TypeESIndexer + const TypeESQuery + const TypeInfo + const TypeNumberExpr + const TypeNumberSet + const TypePrefix + const TypeScalar + const TypeSeriesExpr + const TypeSeriesSet + const TypeString + const TypeTable + const TypeUnexpected + const TypeVariantSet + func (f FuncType) String() string + type IncidentState struct + Actions []Action + Alert string + AlertKey AlertKey + CurrentStatus Status + End *time.Time + Events []Event + Id int64 + LastAbnormalStatus Status + LastAbnormalTime Epoch + NeedAck bool + NextId int64 + Notifications []string + Open bool + PreviousIds []int64 + Start time.Time + Subject string + Tags string + Unevaluated bool + WorstStatus Status + func (i *IncidentState) SetNotified(not string) bool + func (s *IncidentState) Group() opentsdb.TagSet + func (s *IncidentState) IsActive() bool + func (s *IncidentState) Last() Event + type RenderedTemplates struct + Attachments []*Attachment + Body string + Custom map[string]string + EmailBody []byte + EmailSubject []byte + Subject string + func (r *RenderedTemplates) Get(name string) string + func (r *RenderedTemplates) GetDefault(name string, defaultName string) string + type Result struct + Expr string + Value Float + type Silence struct + Alert string + End time.Time + Forget bool + Message string + Start time.Time + TagString string + Tags opentsdb.TagSet + User string + func (s *Silence) ActiveAt(now time.Time) bool + func (s *Silence) Matches(alert string, tags opentsdb.TagSet) bool + func (s *Silence) Silenced(now time.Time, alert string, tags opentsdb.TagSet) bool + func (s Silence) ID() string + type Status int + const StCritical + const StNone + const StNormal + const StUnknown + const StWarning + func (s *Status) UnmarshalJSON(b []byte) error + func (s Status) IsCritical() bool + func (s Status) IsNormal() bool + func (s Status) IsUnknown() bool + func (s Status) IsWarning() bool + func (s Status) MarshalJSON() ([]byte, error) + func (s Status) String() string