Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType int
const ( ActionNone ActionType = iota ActionAcknowledge ActionClose ActionForget ActionForceClose ActionPurge ActionNote )
func (ActionType) MarshalJSON ¶
func (a ActionType) MarshalJSON() ([]byte, error)
func (ActionType) String ¶
func (a ActionType) String() string
func (*ActionType) UnmarshalJSON ¶
func (a *ActionType) UnmarshalJSON(b []byte) error
type AlertKey ¶
type AlertKey string
func ParseAlertKey ¶
type Attachment ¶
type Computation ¶
type Computation struct { Text string Value interface{} }
type Computations ¶
type Computations []Computation
type EventsByTime ¶
type EventsByTime []Event
func (EventsByTime) Len ¶
func (a EventsByTime) Len() int
func (EventsByTime) Less ¶
func (a EventsByTime) Less(i, j int) bool
func (EventsByTime) Swap ¶
func (a EventsByTime) Swap(i, j int)
type Float ¶
type Float float64
custom float type to support json marshalling of NaN
func (Float) MarshalJSON ¶
func (*Float) UnmarshalJSON ¶
type IncidentState ¶
type IncidentState struct { Id int64 Start time.Time End *time.Time AlertKey AlertKey Alert string // helper data since AlertKeys don't serialize to JSON well Tags string // string representation of Group *Result // Most recent last. Events []Event `json:",omitempty"` Actions []Action `json:",omitempty"` Subject string Body string EmailBody []byte EmailSubject []byte Attachments []*Attachment NeedAck bool Open bool Unevaluated bool CurrentStatus Status WorstStatus Status LastAbnormalStatus Status LastAbnormalTime int64 }
func (*IncidentState) Group ¶
func (s *IncidentState) Group() opentsdb.TagSet
func (*IncidentState) IsActive ¶
func (s *IncidentState) IsActive() bool
func (*IncidentState) Last ¶
func (s *IncidentState) Last() Event
type Result ¶
type Result struct { Computations `json:",omitempty"` Value Float Expr string }
type Silence ¶
type Status ¶
type Status int
func (Status) IsCritical ¶
func (Status) MarshalJSON ¶
func (*Status) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.