Documentation
¶
Index ¶
- Constants
- type UpdateMonitor
- type UpdateMonitorDefault
- func (o *UpdateMonitorDefault) SetPayload(payload *models.Error)
- func (o *UpdateMonitorDefault) SetStatusCode(code int)
- func (o *UpdateMonitorDefault) WithPayload(payload *models.Error) *UpdateMonitorDefault
- func (o *UpdateMonitorDefault) WithStatusCode(code int) *UpdateMonitorDefault
- func (o *UpdateMonitorDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMonitorHandler
- type UpdateMonitorHandlerFunc
- type UpdateMonitorOK
- type UpdateMonitorParams
- type UpdateMonitorURL
- func (o *UpdateMonitorURL) Build() (*url.URL, error)
- func (o *UpdateMonitorURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateMonitorURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateMonitorURL) SetBasePath(bp string)
- func (o *UpdateMonitorURL) String() string
- func (o *UpdateMonitorURL) StringFull(scheme, host string) string
- func (o *UpdateMonitorURL) WithBasePath(bp string) *UpdateMonitorURL
Constants ¶
const UpdateMonitorOKCode int = 200
UpdateMonitorOKCode is the HTTP code returned for type UpdateMonitorOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdateMonitor ¶
type UpdateMonitor struct { Context *middleware.Context Handler UpdateMonitorHandler }
UpdateMonitor swagger:route PUT /monitors Monitors updateMonitor
Update monitor settings for the requested probe
func NewUpdateMonitor ¶
func NewUpdateMonitor(ctx *middleware.Context, handler UpdateMonitorHandler) *UpdateMonitor
NewUpdateMonitor creates a new http.Handler for the update monitor operation
func (*UpdateMonitor) ServeHTTP ¶
func (o *UpdateMonitor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateMonitorDefault ¶
type UpdateMonitorDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateMonitorDefault Unexpected error
swagger:response updateMonitorDefault
func NewUpdateMonitorDefault ¶
func NewUpdateMonitorDefault(code int) *UpdateMonitorDefault
NewUpdateMonitorDefault creates UpdateMonitorDefault with default headers values
func (*UpdateMonitorDefault) SetPayload ¶
func (o *UpdateMonitorDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update monitor default response
func (*UpdateMonitorDefault) SetStatusCode ¶
func (o *UpdateMonitorDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update monitor default response
func (*UpdateMonitorDefault) WithPayload ¶
func (o *UpdateMonitorDefault) WithPayload(payload *models.Error) *UpdateMonitorDefault
WithPayload adds the payload to the update monitor default response
func (*UpdateMonitorDefault) WithStatusCode ¶
func (o *UpdateMonitorDefault) WithStatusCode(code int) *UpdateMonitorDefault
WithStatusCode adds the status to the update monitor default response
func (*UpdateMonitorDefault) WriteResponse ¶
func (o *UpdateMonitorDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMonitorHandler ¶
type UpdateMonitorHandler interface {
Handle(UpdateMonitorParams) middleware.Responder
}
UpdateMonitorHandler interface for that can handle valid update monitor params
type UpdateMonitorHandlerFunc ¶
type UpdateMonitorHandlerFunc func(UpdateMonitorParams) middleware.Responder
UpdateMonitorHandlerFunc turns a function with the right signature into a update monitor handler
func (UpdateMonitorHandlerFunc) Handle ¶
func (fn UpdateMonitorHandlerFunc) Handle(params UpdateMonitorParams) middleware.Responder
Handle executing the request and returning a response
type UpdateMonitorOK ¶
type UpdateMonitorOK struct { }
UpdateMonitorOK The monitor was created successfully
swagger:response updateMonitorOK
func NewUpdateMonitorOK ¶
func NewUpdateMonitorOK() *UpdateMonitorOK
NewUpdateMonitorOK creates UpdateMonitorOK with default headers values
func (*UpdateMonitorOK) WriteResponse ¶
func (o *UpdateMonitorOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMonitorParams ¶
type UpdateMonitorParams struct { // HTTP Request Object HTTPRequest *http.Request /*The maximium temperature, above which an alert will be generated Required: true In: query */ Max int32 /*The minimum temperature, below which an alert will be generated Required: true In: query */ Min int32 /* Required: true Maximum: 3 Minimum: 0 In: query */ Probe int32 /*The temperature scale Required: true In: query */ Scale string }
UpdateMonitorParams contains all the bound params for the update monitor operation typically these are obtained from a http.Request
swagger:parameters updateMonitor
func NewUpdateMonitorParams ¶
func NewUpdateMonitorParams() UpdateMonitorParams
NewUpdateMonitorParams creates a new UpdateMonitorParams object with the default values initialized.
func (*UpdateMonitorParams) BindRequest ¶
func (o *UpdateMonitorParams) 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
type UpdateMonitorURL ¶
type UpdateMonitorURL struct { Max int32 Min int32 Probe int32 Scale string // contains filtered or unexported fields }
UpdateMonitorURL generates an URL for the update monitor operation
func (*UpdateMonitorURL) Build ¶
func (o *UpdateMonitorURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateMonitorURL) BuildFull ¶
func (o *UpdateMonitorURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateMonitorURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateMonitorURL) SetBasePath ¶
func (o *UpdateMonitorURL) 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 (*UpdateMonitorURL) String ¶
func (o *UpdateMonitorURL) String() string
String returns the string representation of the path with query string
func (*UpdateMonitorURL) StringFull ¶
func (o *UpdateMonitorURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateMonitorURL) WithBasePath ¶
func (o *UpdateMonitorURL) WithBasePath(bp string) *UpdateMonitorURL
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