v2

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertService

type AlertService struct {
	Version   string
	AmURL     string
	Throttle  bool
	PostTime  int
	SleepTime int
	SendTime  int
	Log       *logger.Logger
	DryRun    bool
}

func (*AlertService) Notify

func (a *AlertService) Notify(alerts *[]of.Alert) error

Divide alerts into smaller chunks and spread posting to Alertmanager over a.SendTime milliseconds.

Jump to

Keyboard shortcuts

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