GetAlertGroupsBadRequestCode is the HTTP code returned for type GetAlertGroupsBadRequest
const GetAlertGroupsBadRequestCode int = 400
GetAlertGroupsInternalServerErrorCode is the HTTP code returned for type GetAlertGroupsInternalServerError
const GetAlertGroupsInternalServerErrorCode int = 500
GetAlertGroupsOKCode is the HTTP code returned for type GetAlertGroupsOK
const GetAlertGroupsOKCode int = 200
GetAlertGroups swagger:route GET /alerts/groups alertgroup getAlertGroups
Get a list of alert groups
type GetAlertGroups struct { Context *middleware.Context Handler GetAlertGroupsHandler }
func NewGetAlertGroups(ctx *middleware.Context, handler GetAlertGroupsHandler) *GetAlertGroups
NewGetAlertGroups creates a new http.Handler for the get alert groups operation
func (o *GetAlertGroups) ServeHTTP(rw http.ResponseWriter, r *http.Request)
GetAlertGroupsBadRequest Bad request
swagger:response getAlertGroupsBadRequest
type GetAlertGroupsBadRequest struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewGetAlertGroupsBadRequest() *GetAlertGroupsBadRequest
NewGetAlertGroupsBadRequest creates GetAlertGroupsBadRequest with default headers values
func (o *GetAlertGroupsBadRequest) SetPayload(payload string)
SetPayload sets the payload to the get alert groups bad request response
func (o *GetAlertGroupsBadRequest) WithPayload(payload string) *GetAlertGroupsBadRequest
WithPayload adds the payload to the get alert groups bad request response
func (o *GetAlertGroupsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetAlertGroupsHandler interface for that can handle valid get alert groups params
type GetAlertGroupsHandler interface { Handle(GetAlertGroupsParams) middleware.Responder }
GetAlertGroupsHandlerFunc turns a function with the right signature into a get alert groups handler
type GetAlertGroupsHandlerFunc func(GetAlertGroupsParams) middleware.Responder
func (fn GetAlertGroupsHandlerFunc) Handle(params GetAlertGroupsParams) middleware.Responder
Handle executing the request and returning a response
GetAlertGroupsInternalServerError Internal server error
swagger:response getAlertGroupsInternalServerError
type GetAlertGroupsInternalServerError struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewGetAlertGroupsInternalServerError() *GetAlertGroupsInternalServerError
NewGetAlertGroupsInternalServerError creates GetAlertGroupsInternalServerError with default headers values
func (o *GetAlertGroupsInternalServerError) SetPayload(payload string)
SetPayload sets the payload to the get alert groups internal server error response
func (o *GetAlertGroupsInternalServerError) WithPayload(payload string) *GetAlertGroupsInternalServerError
WithPayload adds the payload to the get alert groups internal server error response
func (o *GetAlertGroupsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetAlertGroupsOK Get alert groups response
swagger:response getAlertGroupsOK
type GetAlertGroupsOK struct { /* In: Body */ Payload models.AlertGroups `json:"body,omitempty"` }
func NewGetAlertGroupsOK() *GetAlertGroupsOK
NewGetAlertGroupsOK creates GetAlertGroupsOK with default headers values
func (o *GetAlertGroupsOK) SetPayload(payload models.AlertGroups)
SetPayload sets the payload to the get alert groups o k response
func (o *GetAlertGroupsOK) WithPayload(payload models.AlertGroups) *GetAlertGroupsOK
WithPayload adds the payload to the get alert groups o k response
func (o *GetAlertGroupsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetAlertGroupsParams contains all the bound params for the get alert groups operation typically these are obtained from a http.Request
swagger:parameters getAlertGroups
type GetAlertGroupsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Show active alerts In: query Default: true */ Active *bool /*A list of matchers to filter alerts by In: query Collection Format: multi */ Filter []string /*Show inhibited alerts In: query Default: true */ Inhibited *bool /*A regex matching receivers to filter alerts by In: query */ Receiver *string /*Show silenced alerts In: query Default: true */ Silenced *bool }
func NewGetAlertGroupsParams() GetAlertGroupsParams
NewGetAlertGroupsParams creates a new GetAlertGroupsParams object with the default values initialized.
func (o *GetAlertGroupsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetAlertGroupsParams() beforehand.
GetAlertGroupsURL generates an URL for the get alert groups operation
type GetAlertGroupsURL struct { Active *bool Filter []string Inhibited *bool Receiver *string Silenced *bool // contains filtered or unexported fields }
func (o *GetAlertGroupsURL) Build() (*url.URL, error)
Build a url path and query string
func (o *GetAlertGroupsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (o *GetAlertGroupsURL) Must(u *url.URL, err error) *url.URL
Must is a helper function to panic when the url builder returns an error
func (o *GetAlertGroupsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (o *GetAlertGroupsURL) String() string
String returns the string representation of the path with query string
func (o *GetAlertGroupsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (o *GetAlertGroupsURL) WithBasePath(bp string) *GetAlertGroupsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string