mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This commit adds contact point testing to ngalerts via a new API endpoint. This endpoint accepts JSON containing a list of receiver configurations which are validated and then tested with a notification for a test alert. The endpoint returns JSON for each receiver with a status and error message. It accepts a configurable timeout via the Request-Timeout header (in seconds) up to a maximum of 30 seconds. |
||
---|---|---|
.. | ||
cmd/clean-swagger | ||
definitions | ||
swagger-codegen/templates | ||
index.html | ||
Makefile | ||
post.json | ||
README.md | ||
spec.json |
What
This aims to define the unified alerting API as code. It generates OpenAPI definitions from go structs
Running
make openapi