alert

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

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 Alert

type Alert amgrtmpl.Alert

func (Alert) Desc

func (a Alert) Desc() string

func (Alert) Key

func (a Alert) Key() []byte

func (Alert) LabelSet added in v0.9.3

func (a Alert) LabelSet() LabelSet

func (Alert) Name added in v0.9.3

func (a Alert) Name() string

func (Alert) Node

func (a Alert) Node() string

func (Alert) Title

func (a Alert) Title() string

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

type LabelSet added in v0.9.3

type LabelSet amgrtmpl.KV

func (LabelSet) SortedKeys added in v0.9.3

func (lm LabelSet) SortedKeys() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL