alerts

package
v0.0.0-...-13dad8c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const UpdateAlertOKCode int = 200

UpdateAlertOKCode is the HTTP code returned for type UpdateAlertOK

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateAlert

type UpdateAlert struct {
	Context *middleware.Context
	Handler UpdateAlertHandler
}

UpdateAlert swagger:route PUT /alerts Alerts updateAlert

Clear alert warning for a probe

func NewUpdateAlert

func NewUpdateAlert(ctx *middleware.Context, handler UpdateAlertHandler) *UpdateAlert

NewUpdateAlert creates a new http.Handler for the update alert operation

func (*UpdateAlert) ServeHTTP

func (o *UpdateAlert) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateAlertDefault

type UpdateAlertDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateAlertDefault Unexpected error

swagger:response updateAlertDefault

func NewUpdateAlertDefault

func NewUpdateAlertDefault(code int) *UpdateAlertDefault

NewUpdateAlertDefault creates UpdateAlertDefault with default headers values

func (*UpdateAlertDefault) SetPayload

func (o *UpdateAlertDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update alert default response

func (*UpdateAlertDefault) SetStatusCode

func (o *UpdateAlertDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update alert default response

func (*UpdateAlertDefault) WithPayload

func (o *UpdateAlertDefault) WithPayload(payload *models.Error) *UpdateAlertDefault

WithPayload adds the payload to the update alert default response

func (*UpdateAlertDefault) WithStatusCode

func (o *UpdateAlertDefault) WithStatusCode(code int) *UpdateAlertDefault

WithStatusCode adds the status to the update alert default response

func (*UpdateAlertDefault) WriteResponse

func (o *UpdateAlertDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateAlertHandler

type UpdateAlertHandler interface {
	Handle(UpdateAlertParams) middleware.Responder
}

UpdateAlertHandler interface for that can handle valid update alert params

type UpdateAlertHandlerFunc

type UpdateAlertHandlerFunc func(UpdateAlertParams) middleware.Responder

UpdateAlertHandlerFunc turns a function with the right signature into a update alert handler

func (UpdateAlertHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateAlertOK

type UpdateAlertOK struct {
}

UpdateAlertOK The monitor was created successfully

swagger:response updateAlertOK

func NewUpdateAlertOK

func NewUpdateAlertOK() *UpdateAlertOK

NewUpdateAlertOK creates UpdateAlertOK with default headers values

func (*UpdateAlertOK) WriteResponse

func (o *UpdateAlertOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateAlertParams

type UpdateAlertParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  Maximum: 3
	  Minimum: 0
	  In: query
	*/
	Probe int64
}

UpdateAlertParams contains all the bound params for the update alert operation typically these are obtained from a http.Request

swagger:parameters updateAlert

func NewUpdateAlertParams

func NewUpdateAlertParams() UpdateAlertParams

NewUpdateAlertParams creates a new UpdateAlertParams object with the default values initialized.

func (*UpdateAlertParams) BindRequest

func (o *UpdateAlertParams) 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 UpdateAlertURL

type UpdateAlertURL struct {
	Probe int64
	// contains filtered or unexported fields
}

UpdateAlertURL generates an URL for the update alert operation

func (*UpdateAlertURL) Build

func (o *UpdateAlertURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateAlertURL) BuildFull

func (o *UpdateAlertURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateAlertURL) Must

func (o *UpdateAlertURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateAlertURL) SetBasePath

func (o *UpdateAlertURL) 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 (*UpdateAlertURL) String

func (o *UpdateAlertURL) String() string

String returns the string representation of the path with query string

func (*UpdateAlertURL) StringFull

func (o *UpdateAlertURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateAlertURL) WithBasePath

func (o *UpdateAlertURL) WithBasePath(bp string) *UpdateAlertURL

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

Jump to

Keyboard shortcuts

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