package
0.28.0
Repository: https://github.com/prometheus/alertmanager.git
Documentation: pkg.go.dev

# Functions

NewGetAlerts creates a new http.Handler for the get alerts operation.
NewGetAlertsBadRequest creates GetAlertsBadRequest with default headers values.
NewGetAlertsInternalServerError creates GetAlertsInternalServerError with default headers values.
NewGetAlertsOK creates GetAlertsOK with default headers values.
NewGetAlertsParams creates a new GetAlertsParams object with the default values initialized.
NewPostAlerts creates a new http.Handler for the post alerts operation.
NewPostAlertsBadRequest creates PostAlertsBadRequest with default headers values.
NewPostAlertsInternalServerError creates PostAlertsInternalServerError with default headers values.
NewPostAlertsOK creates PostAlertsOK with default headers values.
NewPostAlertsParams creates a new PostAlertsParams object There are no default values defined in the spec.

# Constants

GetAlertsBadRequestCode is the HTTP code returned for type GetAlertsBadRequest.
GetAlertsInternalServerErrorCode is the HTTP code returned for type GetAlertsInternalServerError.
GetAlertsOKCode is the HTTP code returned for type GetAlertsOK.
PostAlertsBadRequestCode is the HTTP code returned for type PostAlertsBadRequest.
PostAlertsInternalServerErrorCode is the HTTP code returned for type PostAlertsInternalServerError.
PostAlertsOKCode is the HTTP code returned for type PostAlertsOK.

# Structs

GetAlerts swagger:route GET /alerts alert getAlerts Get a list of alerts */.
GetAlertsBadRequest Bad request swagger:response getAlertsBadRequest */.
GetAlertsInternalServerError Internal server error swagger:response getAlertsInternalServerError */.
GetAlertsOK Get alerts response swagger:response getAlertsOK */.
GetAlertsParams contains all the bound params for the get alerts operation typically these are obtained from a http.Request swagger:parameters getAlerts.
GetAlertsURL generates an URL for the get alerts operation.
PostAlerts swagger:route POST /alerts alert postAlerts Create new Alerts */.
PostAlertsBadRequest Bad request swagger:response postAlertsBadRequest */.
PostAlertsInternalServerError Internal server error swagger:response postAlertsInternalServerError */.
PostAlertsOK Create alerts response swagger:response postAlertsOK */.
PostAlertsParams contains all the bound params for the post alerts operation typically these are obtained from a http.Request swagger:parameters postAlerts.
PostAlertsURL generates an URL for the post alerts operation.

# Interfaces

GetAlertsHandler interface for that can handle valid get alerts params.
PostAlertsHandler interface for that can handle valid post alerts params.

# Type aliases

GetAlertsHandlerFunc turns a function with the right signature into a get alerts handler.
PostAlertsHandlerFunc turns a function with the right signature into a post alerts handler.