DeleteSilenceInternalServerErrorCode is the HTTP code returned for type DeleteSilenceInternalServerError
const DeleteSilenceInternalServerErrorCode int = 500
DeleteSilenceOKCode is the HTTP code returned for type DeleteSilenceOK
const DeleteSilenceOKCode int = 200
GetSilenceInternalServerErrorCode is the HTTP code returned for type GetSilenceInternalServerError
const GetSilenceInternalServerErrorCode int = 500
GetSilenceNotFoundCode is the HTTP code returned for type GetSilenceNotFound
const GetSilenceNotFoundCode int = 404
GetSilenceOKCode is the HTTP code returned for type GetSilenceOK
const GetSilenceOKCode int = 200
GetSilencesInternalServerErrorCode is the HTTP code returned for type GetSilencesInternalServerError
const GetSilencesInternalServerErrorCode int = 500
GetSilencesOKCode is the HTTP code returned for type GetSilencesOK
const GetSilencesOKCode int = 200
PostSilencesBadRequestCode is the HTTP code returned for type PostSilencesBadRequest
const PostSilencesBadRequestCode int = 400
PostSilencesNotFoundCode is the HTTP code returned for type PostSilencesNotFound
const PostSilencesNotFoundCode int = 404
PostSilencesOKCode is the HTTP code returned for type PostSilencesOK
const PostSilencesOKCode int = 200
DeleteSilence swagger:route DELETE /silence/{silenceID} silence deleteSilence
Delete a silence by its ID
type DeleteSilence struct { Context *middleware.Context Handler DeleteSilenceHandler }
func NewDeleteSilence(ctx *middleware.Context, handler DeleteSilenceHandler) *DeleteSilence
NewDeleteSilence creates a new http.Handler for the delete silence operation
func (o *DeleteSilence) ServeHTTP(rw http.ResponseWriter, r *http.Request)
DeleteSilenceHandler interface for that can handle valid delete silence params
type DeleteSilenceHandler interface { Handle(DeleteSilenceParams) middleware.Responder }
DeleteSilenceHandlerFunc turns a function with the right signature into a delete silence handler
type DeleteSilenceHandlerFunc func(DeleteSilenceParams) middleware.Responder
func (fn DeleteSilenceHandlerFunc) Handle(params DeleteSilenceParams) middleware.Responder
Handle executing the request and returning a response
DeleteSilenceInternalServerError Internal server error
swagger:response deleteSilenceInternalServerError
type DeleteSilenceInternalServerError struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewDeleteSilenceInternalServerError() *DeleteSilenceInternalServerError
NewDeleteSilenceInternalServerError creates DeleteSilenceInternalServerError with default headers values
func (o *DeleteSilenceInternalServerError) SetPayload(payload string)
SetPayload sets the payload to the delete silence internal server error response
func (o *DeleteSilenceInternalServerError) WithPayload(payload string) *DeleteSilenceInternalServerError
WithPayload adds the payload to the delete silence internal server error response
func (o *DeleteSilenceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
DeleteSilenceOK Delete silence response
swagger:response deleteSilenceOK
type DeleteSilenceOK struct { }
func NewDeleteSilenceOK() *DeleteSilenceOK
NewDeleteSilenceOK creates DeleteSilenceOK with default headers values
func (o *DeleteSilenceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
DeleteSilenceParams contains all the bound params for the delete silence operation typically these are obtained from a http.Request
swagger:parameters deleteSilence
type DeleteSilenceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the silence to get Required: true In: path */ SilenceID strfmt.UUID }
func NewDeleteSilenceParams() DeleteSilenceParams
NewDeleteSilenceParams creates a new DeleteSilenceParams object
There are no default values defined in the spec.
func (o *DeleteSilenceParams) 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 NewDeleteSilenceParams() beforehand.
DeleteSilenceURL generates an URL for the delete silence operation
type DeleteSilenceURL struct { SilenceID strfmt.UUID // contains filtered or unexported fields }
func (o *DeleteSilenceURL) Build() (*url.URL, error)
Build a url path and query string
func (o *DeleteSilenceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (o *DeleteSilenceURL) Must(u *url.URL, err error) *url.URL
Must is a helper function to panic when the url builder returns an error
func (o *DeleteSilenceURL) 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 *DeleteSilenceURL) String() string
String returns the string representation of the path with query string
func (o *DeleteSilenceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (o *DeleteSilenceURL) WithBasePath(bp string) *DeleteSilenceURL
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
GetSilence swagger:route GET /silence/{silenceID} silence getSilence
Get a silence by its ID
type GetSilence struct { Context *middleware.Context Handler GetSilenceHandler }
func NewGetSilence(ctx *middleware.Context, handler GetSilenceHandler) *GetSilence
NewGetSilence creates a new http.Handler for the get silence operation
func (o *GetSilence) ServeHTTP(rw http.ResponseWriter, r *http.Request)
GetSilenceHandler interface for that can handle valid get silence params
type GetSilenceHandler interface { Handle(GetSilenceParams) middleware.Responder }
GetSilenceHandlerFunc turns a function with the right signature into a get silence handler
type GetSilenceHandlerFunc func(GetSilenceParams) middleware.Responder
func (fn GetSilenceHandlerFunc) Handle(params GetSilenceParams) middleware.Responder
Handle executing the request and returning a response
GetSilenceInternalServerError Internal server error
swagger:response getSilenceInternalServerError
type GetSilenceInternalServerError struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewGetSilenceInternalServerError() *GetSilenceInternalServerError
NewGetSilenceInternalServerError creates GetSilenceInternalServerError with default headers values
func (o *GetSilenceInternalServerError) SetPayload(payload string)
SetPayload sets the payload to the get silence internal server error response
func (o *GetSilenceInternalServerError) WithPayload(payload string) *GetSilenceInternalServerError
WithPayload adds the payload to the get silence internal server error response
func (o *GetSilenceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetSilenceNotFound A silence with the specified ID was not found
swagger:response getSilenceNotFound
type GetSilenceNotFound struct { }
func NewGetSilenceNotFound() *GetSilenceNotFound
NewGetSilenceNotFound creates GetSilenceNotFound with default headers values
func (o *GetSilenceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetSilenceOK Get silence response
swagger:response getSilenceOK
type GetSilenceOK struct { /* In: Body */ Payload *models.GettableSilence `json:"body,omitempty"` }
func NewGetSilenceOK() *GetSilenceOK
NewGetSilenceOK creates GetSilenceOK with default headers values
func (o *GetSilenceOK) SetPayload(payload *models.GettableSilence)
SetPayload sets the payload to the get silence o k response
func (o *GetSilenceOK) WithPayload(payload *models.GettableSilence) *GetSilenceOK
WithPayload adds the payload to the get silence o k response
func (o *GetSilenceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetSilenceParams contains all the bound params for the get silence operation typically these are obtained from a http.Request
swagger:parameters getSilence
type GetSilenceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the silence to get Required: true In: path */ SilenceID strfmt.UUID }
func NewGetSilenceParams() GetSilenceParams
NewGetSilenceParams creates a new GetSilenceParams object
There are no default values defined in the spec.
func (o *GetSilenceParams) 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 NewGetSilenceParams() beforehand.
GetSilenceURL generates an URL for the get silence operation
type GetSilenceURL struct { SilenceID strfmt.UUID // contains filtered or unexported fields }
func (o *GetSilenceURL) Build() (*url.URL, error)
Build a url path and query string
func (o *GetSilenceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (o *GetSilenceURL) Must(u *url.URL, err error) *url.URL
Must is a helper function to panic when the url builder returns an error
func (o *GetSilenceURL) 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 *GetSilenceURL) String() string
String returns the string representation of the path with query string
func (o *GetSilenceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (o *GetSilenceURL) WithBasePath(bp string) *GetSilenceURL
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
GetSilences swagger:route GET /silences silence getSilences
Get a list of silences
type GetSilences struct { Context *middleware.Context Handler GetSilencesHandler }
func NewGetSilences(ctx *middleware.Context, handler GetSilencesHandler) *GetSilences
NewGetSilences creates a new http.Handler for the get silences operation
func (o *GetSilences) ServeHTTP(rw http.ResponseWriter, r *http.Request)
GetSilencesHandler interface for that can handle valid get silences params
type GetSilencesHandler interface { Handle(GetSilencesParams) middleware.Responder }
GetSilencesHandlerFunc turns a function with the right signature into a get silences handler
type GetSilencesHandlerFunc func(GetSilencesParams) middleware.Responder
func (fn GetSilencesHandlerFunc) Handle(params GetSilencesParams) middleware.Responder
Handle executing the request and returning a response
GetSilencesInternalServerError Internal server error
swagger:response getSilencesInternalServerError
type GetSilencesInternalServerError struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewGetSilencesInternalServerError() *GetSilencesInternalServerError
NewGetSilencesInternalServerError creates GetSilencesInternalServerError with default headers values
func (o *GetSilencesInternalServerError) SetPayload(payload string)
SetPayload sets the payload to the get silences internal server error response
func (o *GetSilencesInternalServerError) WithPayload(payload string) *GetSilencesInternalServerError
WithPayload adds the payload to the get silences internal server error response
func (o *GetSilencesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetSilencesOK Get silences response
swagger:response getSilencesOK
type GetSilencesOK struct { /* In: Body */ Payload models.GettableSilences `json:"body,omitempty"` }
func NewGetSilencesOK() *GetSilencesOK
NewGetSilencesOK creates GetSilencesOK with default headers values
func (o *GetSilencesOK) SetPayload(payload models.GettableSilences)
SetPayload sets the payload to the get silences o k response
func (o *GetSilencesOK) WithPayload(payload models.GettableSilences) *GetSilencesOK
WithPayload adds the payload to the get silences o k response
func (o *GetSilencesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetSilencesParams contains all the bound params for the get silences operation typically these are obtained from a http.Request
swagger:parameters getSilences
type GetSilencesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A list of matchers to filter silences by In: query Collection Format: multi */ Filter []string }
func NewGetSilencesParams() GetSilencesParams
NewGetSilencesParams creates a new GetSilencesParams object
There are no default values defined in the spec.
func (o *GetSilencesParams) 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 NewGetSilencesParams() beforehand.
GetSilencesURL generates an URL for the get silences operation
type GetSilencesURL struct { Filter []string // contains filtered or unexported fields }
func (o *GetSilencesURL) Build() (*url.URL, error)
Build a url path and query string
func (o *GetSilencesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (o *GetSilencesURL) Must(u *url.URL, err error) *url.URL
Must is a helper function to panic when the url builder returns an error
func (o *GetSilencesURL) 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 *GetSilencesURL) String() string
String returns the string representation of the path with query string
func (o *GetSilencesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (o *GetSilencesURL) WithBasePath(bp string) *GetSilencesURL
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
PostSilences swagger:route POST /silences silence postSilences
Post a new silence or update an existing one
type PostSilences struct { Context *middleware.Context Handler PostSilencesHandler }
func NewPostSilences(ctx *middleware.Context, handler PostSilencesHandler) *PostSilences
NewPostSilences creates a new http.Handler for the post silences operation
func (o *PostSilences) ServeHTTP(rw http.ResponseWriter, r *http.Request)
PostSilencesBadRequest Bad request
swagger:response postSilencesBadRequest
type PostSilencesBadRequest struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewPostSilencesBadRequest() *PostSilencesBadRequest
NewPostSilencesBadRequest creates PostSilencesBadRequest with default headers values
func (o *PostSilencesBadRequest) SetPayload(payload string)
SetPayload sets the payload to the post silences bad request response
func (o *PostSilencesBadRequest) WithPayload(payload string) *PostSilencesBadRequest
WithPayload adds the payload to the post silences bad request response
func (o *PostSilencesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
PostSilencesHandler interface for that can handle valid post silences params
type PostSilencesHandler interface { Handle(PostSilencesParams) middleware.Responder }
PostSilencesHandlerFunc turns a function with the right signature into a post silences handler
type PostSilencesHandlerFunc func(PostSilencesParams) middleware.Responder
func (fn PostSilencesHandlerFunc) Handle(params PostSilencesParams) middleware.Responder
Handle executing the request and returning a response
PostSilencesNotFound A silence with the specified ID was not found
swagger:response postSilencesNotFound
type PostSilencesNotFound struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewPostSilencesNotFound() *PostSilencesNotFound
NewPostSilencesNotFound creates PostSilencesNotFound with default headers values
func (o *PostSilencesNotFound) SetPayload(payload string)
SetPayload sets the payload to the post silences not found response
func (o *PostSilencesNotFound) WithPayload(payload string) *PostSilencesNotFound
WithPayload adds the payload to the post silences not found response
func (o *PostSilencesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
PostSilencesOK Create / update silence response
swagger:response postSilencesOK
type PostSilencesOK struct { /* In: Body */ Payload *PostSilencesOKBody `json:"body,omitempty"` }
func NewPostSilencesOK() *PostSilencesOK
NewPostSilencesOK creates PostSilencesOK with default headers values
func (o *PostSilencesOK) SetPayload(payload *PostSilencesOKBody)
SetPayload sets the payload to the post silences o k response
func (o *PostSilencesOK) WithPayload(payload *PostSilencesOKBody) *PostSilencesOK
WithPayload adds the payload to the post silences o k response
func (o *PostSilencesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
PostSilencesOKBody post silences o k body
swagger:model PostSilencesOKBody
type PostSilencesOKBody struct { // silence ID SilenceID string `json:"silenceID,omitempty"` }
func (o *PostSilencesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post silences o k body based on context it is used
func (o *PostSilencesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (o *PostSilencesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (o *PostSilencesOKBody) Validate(formats strfmt.Registry) error
Validate validates this post silences o k body
PostSilencesParams contains all the bound params for the post silences operation typically these are obtained from a http.Request
swagger:parameters postSilences
type PostSilencesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The silence to create Required: true In: body */ Silence *models.PostableSilence }
func NewPostSilencesParams() PostSilencesParams
NewPostSilencesParams creates a new PostSilencesParams object
There are no default values defined in the spec.
func (o *PostSilencesParams) 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 NewPostSilencesParams() beforehand.
PostSilencesURL generates an URL for the post silences operation
type PostSilencesURL struct {
// contains filtered or unexported fields
}
func (o *PostSilencesURL) Build() (*url.URL, error)
Build a url path and query string
func (o *PostSilencesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (o *PostSilencesURL) Must(u *url.URL, err error) *url.URL
Must is a helper function to panic when the url builder returns an error
func (o *PostSilencesURL) 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 *PostSilencesURL) String() string
String returns the string representation of the path with query string
func (o *PostSilencesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (o *PostSilencesURL) WithBasePath(bp string) *PostSilencesURL
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