types

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

Alert is an alert received from the Alertmanager

type AlertBucket

type AlertBucket struct {
	AlertGroups map[string]*AlertGroup
}

AlertBucket mutualizes alerts by Trap IDs

type AlertGroup

type AlertGroup struct {
	OID               string
	GroupID           string
	GroupLabels       map[string]string
	CommonLabels      map[string]string
	CommonAnnotations map[string]string
	Severity          string
	Alerts            []Alert
	DeclaredAlerts    []Alert
}

AlertGroup type, with OID and group ID

type Alerts

Alerts is a set of alerts received from the Alertmanager

type AlertsData

type AlertsData = alertmanagertemplate.Data

AlertsData is the alerts object received from the Alertmanager

type GetAlertGroupName

type GetAlertGroupName func(Alert) (*string, error)

GetAlertGroupName allows to retrieve a group name from a given alert

Jump to

Keyboard shortcuts

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