Documentation
¶
Index ¶
- func FillTemplate(object interface{}, tmpl template.Template) (*string, error)
- func GroupAlertsBy(alerts []types.Alert, groupNameFunction types.GetAlertGroupName) (*map[string][]types.Alert, error)
- func GroupAlertsByLabel(alerts []types.Alert, label string) (*map[string][]types.Alert, error)
- func GroupAlertsByName(alerts []types.Alert) (*map[string][]types.Alert, error)
- func IndexOf(element string, data []string) int
- func IsOID(text string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillTemplate ¶
FillTemplate is a boiler-plate function to fill a template
func GroupAlertsBy ¶
func GroupAlertsBy(alerts []types.Alert, groupNameFunction types.GetAlertGroupName) (*map[string][]types.Alert, error)
GroupAlertsBy groups given alerts according to an ID
func GroupAlertsByLabel ¶
GroupAlertsByLabel groups several alerts by a given label. If the label does not exists, then a "<none>" key is created
func GroupAlertsByName ¶
GroupAlertsByName groups several alerts by their names
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.