Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RController ¶
type RController struct {
// contains filtered or unexported fields
}
func NewRecoverController ¶
func NewRecoverController(cache *gocache.Cache, loggers chaoslogger.Loggers) *RController
func (*RController) RecoverAction ¶ added in v0.0.2
func (rController *RController) RecoverAction(w http.ResponseWriter, r *http.Request)
RecoverAction godoc @Summary recover from failures @Description Recover from failures endpoint @Tags Recover @Accept json @Produce json @Param Options body Options true "Create request payload that contains the recovery details" @Success 200 {object} response.RecoverResponsePayload @Failure 400 {string} http.Error @Router /recover [post]
func (*RController) RecoverActionAlertmanagerWebHook ¶
func (rController *RController) RecoverActionAlertmanagerWebHook(w http.ResponseWriter, r *http.Request)
RecoverActionAlertmanagerWebHook godoc @Summary recover from failures @Description Alertmanager webhook to recover from failures @Tags Recover @Accept json @Produce json @Param RequestPayload body RequestPayload true "Create request payload that contains the recovery details" @Success 200 {object} response.RecoverResponsePayload @Failure 400 {string} http.Error @Router /recover/alertmanager [post]
type RequestPayload ¶ added in v0.0.2
type RequestPayload struct {
Alerts []*Alert `json:"alerts"`
}