2016-04-26 10:36:50 -05:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
2021-11-29 03:18:01 -06:00
|
|
|
"net/http"
|
2016-07-21 03:29:11 -05:00
|
|
|
|
2021-01-15 07:43:20 -06:00
|
|
|
"github.com/grafana/grafana/pkg/api/response"
|
2023-01-27 01:50:36 -06:00
|
|
|
contextmodel "github.com/grafana/grafana/pkg/services/contexthandler/model"
|
2022-07-20 12:58:36 -05:00
|
|
|
"github.com/grafana/grafana/pkg/services/ngalert/notifier/channels_config"
|
2016-04-26 10:36:50 -05:00
|
|
|
)
|
|
|
|
|
2024-01-04 17:01:57 -06:00
|
|
|
func (hs *HTTPServer) GetAlertNotifiers() func(*contextmodel.ReqContext) response.Response {
|
|
|
|
return func(_ *contextmodel.ReqContext) response.Response {
|
|
|
|
return response.JSON(http.StatusOK, channels_config.GetAvailableNotifiers())
|
|
|
|
}
|
|
|
|
}
|