Documentation ¶
Overview ¶
2019-01-19 (cc) <paul.houghton.ywi9@statefarm.com>
agate models
Index ¶
Constants ¶
View Source
const ( TIMEFMT = "2006-01-02 15:04:05.9999 -0700" GRP_TITLE_LABEL = "group_title" )
Variables ¶
View Source
var ( NODE_LABELS = []string{"agate_node", "hostname", "node", "instance"} TITLE_LABELS = []string{"agate_title", "title", "subject"} NOTIFY_LABELS = []string{"notify_sys", "notify_grp"} )
Functions ¶
This section is empty.
Types ¶
type AlertGroup ¶
type AlertGroup struct { *amgrtmpl.Data Version string `json:"version"` GroupKey string `json:"groupKey"` }
func NewAlertGroup ¶ added in v0.9.3
func NewAlertGroup(b []byte) *AlertGroup
func (AlertGroup) Bytes ¶ added in v0.9.3
func (ag AlertGroup) Bytes() []byte
func (*AlertGroup) Desc ¶
func (ag *AlertGroup) Desc() string
func (AlertGroup) Key ¶ added in v0.9.3
func (ag AlertGroup) Key() []byte
func (AlertGroup) StartsAt ¶ added in v0.9.3
func (ag AlertGroup) StartsAt() time.Time
func (AlertGroup) Title ¶
func (ag AlertGroup) Title() string
Click to show internal directories.
Click to hide internal directories.