Back to

Package alerts

Latest Go to latest

The highest tagged major version is .

Published: Mar 12, 2020 | License: MIT | Module:


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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier