mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix API specification (#38753)
* Alerting: Fix API spec * Add missing status codes
This commit is contained in:
committed by
GitHub
parent
9173898fd6
commit
7af329f385
@@ -15,7 +15,6 @@ import (
|
||||
"github.com/grafana/grafana/pkg/services/ngalert/eval"
|
||||
"github.com/grafana/grafana/pkg/setting"
|
||||
"github.com/grafana/grafana/pkg/tsdb"
|
||||
"github.com/grafana/grafana/pkg/util"
|
||||
)
|
||||
|
||||
type TestingApiSrv struct {
|
||||
@@ -26,11 +25,6 @@ type TestingApiSrv struct {
|
||||
log log.Logger
|
||||
}
|
||||
|
||||
func (srv TestingApiSrv) RouteTestReceiverConfig(c *models.ReqContext, body apimodels.ExtendedReceiver) response.Response {
|
||||
srv.log.Info("RouteTestReceiverConfig: ", "body", body)
|
||||
return response.JSON(http.StatusOK, util.DynMap{"message": "success"})
|
||||
}
|
||||
|
||||
func (srv TestingApiSrv) RouteTestRuleConfig(c *models.ReqContext, body apimodels.TestRulePayload) response.Response {
|
||||
recipient := c.Params("Recipient")
|
||||
if recipient == apimodels.GrafanaBackend.String() {
|
||||
|
||||
Reference in New Issue
Block a user