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.
Click to show internal directories.
Click to hide internal directories.