recover

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Status string  `json:"status"`
	Labels Options `json:"labels"`
}

type Options added in v0.0.2

type Options struct {
	RecoverJob    string `json:"recoverJob,omitempty"`
	RecoverTarget string `json:"recoverTarget,omitempty"`
	RecoverAll    bool   `json:"recoverAll,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL