alertmanager

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertEvent

type AlertEvent struct {
	StartsAt    time.Time         `json:"StartsAt,omitempty"`
	EndsAt      time.Time         `json:"EndsAt,omitempty"`
	Labels      map[string]string `json:"Labels,omitempty"`
	Annotations map[string]string `json:"Annotations,omitempty"`
}

type AlertManager

type AlertManager struct {
	Address []string

	Client http.Client

	LineLimit int
	// contains filtered or unexported fields
}

func NewAlertManager

func NewAlertManager(config *logalert.Config) (*AlertManager, error)

func (*AlertManager) SendAlert

func (a *AlertManager) SendAlert(events []*api.Event, sendAtOnce bool)

Jump to

Keyboard shortcuts

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