alerts

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(alertManager alertManagerAPIer, logger *zap.Logger) http.HandlerFunc

Handler handle API request GET /api/v1/alerts

Endpoint receive arguments: name=<NAME1>,<NAME2> - filter by name level=error,success - filter by alert level

Examples: GET /api/v1/alerts?level=error GET /api/v1/alerts?level=error,warn&name=foo GET /api/v1/alerts?level=error,warn&name=foo,bar

Types

This section is empty.

Jump to

Keyboard shortcuts

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