alertmanager

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector is the integration of prometheus/alertmanager

func New added in v0.0.10

func New(options ...Option) *Connector

New creates a new instance of the prometheus/alertmanager Connector

func (*Connector) HandleScaleAlerts

func (c *Connector) HandleScaleAlerts(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

HandleScaleAlerts is the http end-point implementation for receiving alerts from alertmanager

func (*Connector) Register

func (c *Connector) Register(handleFunc saa.ScaleAlertHandleFunc)

Register is used to register the given handler func. The ScaleAlertHandleFunc is called each time the alertmanager connector receives an alert.

type Option added in v0.0.10

type Option func(c *Connector)

Option represents an option for the alertmanager

func WithLogger added in v0.0.10

func WithLogger(logger zerolog.Logger) Option

WithLogger adds a configured Logger to the alertmanager

Jump to

Keyboard shortcuts

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