monitors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for monitors API

func (*Client) DeleteMonitorsMonitorID

func (a *Client) DeleteMonitorsMonitorID(params *DeleteMonitorsMonitorIDParams, opts ...ClientOption) (*DeleteMonitorsMonitorIDNoContent, error)

DeleteMonitorsMonitorID deletes a monitor

func (*Client) GetMonitors

func (a *Client) GetMonitors(params *GetMonitorsParams, opts ...ClientOption) (*GetMonitorsOK, error)

GetMonitors lists monitors

func (*Client) GetMonitorsMonitorID

func (a *Client) GetMonitorsMonitorID(params *GetMonitorsMonitorIDParams, opts ...ClientOption) (*GetMonitorsMonitorIDOK, error)

GetMonitorsMonitorID shows monitor detail

func (*Client) PostMonitors

func (a *Client) PostMonitors(params *PostMonitorsParams, opts ...ClientOption) (*PostMonitorsCreated, error)

PostMonitors creates new monitor

func (*Client) PutMonitorsMonitorID

func (a *Client) PutMonitorsMonitorID(params *PutMonitorsMonitorIDParams, opts ...ClientOption) (*PutMonitorsMonitorIDAccepted, error)

PutMonitorsMonitorID updates a monitor

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteMonitorsMonitorID(params *DeleteMonitorsMonitorIDParams, opts ...ClientOption) (*DeleteMonitorsMonitorIDNoContent, error)

	GetMonitors(params *GetMonitorsParams, opts ...ClientOption) (*GetMonitorsOK, error)

	GetMonitorsMonitorID(params *GetMonitorsMonitorIDParams, opts ...ClientOption) (*GetMonitorsMonitorIDOK, error)

	PostMonitors(params *PostMonitorsParams, opts ...ClientOption) (*PostMonitorsCreated, error)

	PutMonitorsMonitorID(params *PutMonitorsMonitorIDParams, opts ...ClientOption) (*PutMonitorsMonitorIDAccepted, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new monitors API client.

type DeleteMonitorsMonitorIDDefault

type DeleteMonitorsMonitorIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteMonitorsMonitorIDDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewDeleteMonitorsMonitorIDDefault

func NewDeleteMonitorsMonitorIDDefault(code int) *DeleteMonitorsMonitorIDDefault

NewDeleteMonitorsMonitorIDDefault creates a DeleteMonitorsMonitorIDDefault with default headers values

func (*DeleteMonitorsMonitorIDDefault) Code

Code gets the status code for the delete monitors monitor ID default response

func (*DeleteMonitorsMonitorIDDefault) Error

func (*DeleteMonitorsMonitorIDDefault) GetPayload

func (o *DeleteMonitorsMonitorIDDefault) GetPayload() *models.Error

func (*DeleteMonitorsMonitorIDDefault) IsClientError

func (o *DeleteMonitorsMonitorIDDefault) IsClientError() bool

IsClientError returns true when this delete monitors monitor ID default response has a 4xx status code

func (*DeleteMonitorsMonitorIDDefault) IsCode

func (o *DeleteMonitorsMonitorIDDefault) IsCode(code int) bool

IsCode returns true when this delete monitors monitor ID default response a status code equal to that given

func (*DeleteMonitorsMonitorIDDefault) IsRedirect

func (o *DeleteMonitorsMonitorIDDefault) IsRedirect() bool

IsRedirect returns true when this delete monitors monitor ID default response has a 3xx status code

func (*DeleteMonitorsMonitorIDDefault) IsServerError

func (o *DeleteMonitorsMonitorIDDefault) IsServerError() bool

IsServerError returns true when this delete monitors monitor ID default response has a 5xx status code

func (*DeleteMonitorsMonitorIDDefault) IsSuccess

func (o *DeleteMonitorsMonitorIDDefault) IsSuccess() bool

IsSuccess returns true when this delete monitors monitor ID default response has a 2xx status code

func (*DeleteMonitorsMonitorIDDefault) String

type DeleteMonitorsMonitorIDNoContent

type DeleteMonitorsMonitorIDNoContent struct {
}

DeleteMonitorsMonitorIDNoContent describes a response with status code 204, with default header values.

Resource successfully deleted.

func NewDeleteMonitorsMonitorIDNoContent

func NewDeleteMonitorsMonitorIDNoContent() *DeleteMonitorsMonitorIDNoContent

NewDeleteMonitorsMonitorIDNoContent creates a DeleteMonitorsMonitorIDNoContent with default headers values

func (*DeleteMonitorsMonitorIDNoContent) Code

Code gets the status code for the delete monitors monitor Id no content response

func (*DeleteMonitorsMonitorIDNoContent) Error

func (*DeleteMonitorsMonitorIDNoContent) IsClientError

func (o *DeleteMonitorsMonitorIDNoContent) IsClientError() bool

IsClientError returns true when this delete monitors monitor Id no content response has a 4xx status code

func (*DeleteMonitorsMonitorIDNoContent) IsCode

func (o *DeleteMonitorsMonitorIDNoContent) IsCode(code int) bool

IsCode returns true when this delete monitors monitor Id no content response a status code equal to that given

func (*DeleteMonitorsMonitorIDNoContent) IsRedirect

func (o *DeleteMonitorsMonitorIDNoContent) IsRedirect() bool

IsRedirect returns true when this delete monitors monitor Id no content response has a 3xx status code

func (*DeleteMonitorsMonitorIDNoContent) IsServerError

func (o *DeleteMonitorsMonitorIDNoContent) IsServerError() bool

IsServerError returns true when this delete monitors monitor Id no content response has a 5xx status code

func (*DeleteMonitorsMonitorIDNoContent) IsSuccess

func (o *DeleteMonitorsMonitorIDNoContent) IsSuccess() bool

IsSuccess returns true when this delete monitors monitor Id no content response has a 2xx status code

func (*DeleteMonitorsMonitorIDNoContent) String

type DeleteMonitorsMonitorIDNotFound

type DeleteMonitorsMonitorIDNotFound struct {
	Payload *models.Error
}

DeleteMonitorsMonitorIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteMonitorsMonitorIDNotFound

func NewDeleteMonitorsMonitorIDNotFound() *DeleteMonitorsMonitorIDNotFound

NewDeleteMonitorsMonitorIDNotFound creates a DeleteMonitorsMonitorIDNotFound with default headers values

func (*DeleteMonitorsMonitorIDNotFound) Code

Code gets the status code for the delete monitors monitor Id not found response

func (*DeleteMonitorsMonitorIDNotFound) Error

func (*DeleteMonitorsMonitorIDNotFound) GetPayload

func (o *DeleteMonitorsMonitorIDNotFound) GetPayload() *models.Error

func (*DeleteMonitorsMonitorIDNotFound) IsClientError

func (o *DeleteMonitorsMonitorIDNotFound) IsClientError() bool

IsClientError returns true when this delete monitors monitor Id not found response has a 4xx status code

func (*DeleteMonitorsMonitorIDNotFound) IsCode

func (o *DeleteMonitorsMonitorIDNotFound) IsCode(code int) bool

IsCode returns true when this delete monitors monitor Id not found response a status code equal to that given

func (*DeleteMonitorsMonitorIDNotFound) IsRedirect

func (o *DeleteMonitorsMonitorIDNotFound) IsRedirect() bool

IsRedirect returns true when this delete monitors monitor Id not found response has a 3xx status code

func (*DeleteMonitorsMonitorIDNotFound) IsServerError

func (o *DeleteMonitorsMonitorIDNotFound) IsServerError() bool

IsServerError returns true when this delete monitors monitor Id not found response has a 5xx status code

func (*DeleteMonitorsMonitorIDNotFound) IsSuccess

func (o *DeleteMonitorsMonitorIDNotFound) IsSuccess() bool

IsSuccess returns true when this delete monitors monitor Id not found response has a 2xx status code

func (*DeleteMonitorsMonitorIDNotFound) String

type DeleteMonitorsMonitorIDParams

type DeleteMonitorsMonitorIDParams struct {

	/* MonitorID.

	   The UUID of the monitor

	   Format: uuid
	*/
	MonitorID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteMonitorsMonitorIDParams contains all the parameters to send to the API endpoint

for the delete monitors monitor ID operation.

Typically these are written to a http.Request.

func NewDeleteMonitorsMonitorIDParams

func NewDeleteMonitorsMonitorIDParams() *DeleteMonitorsMonitorIDParams

NewDeleteMonitorsMonitorIDParams creates a new DeleteMonitorsMonitorIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteMonitorsMonitorIDParamsWithContext

func NewDeleteMonitorsMonitorIDParamsWithContext(ctx context.Context) *DeleteMonitorsMonitorIDParams

NewDeleteMonitorsMonitorIDParamsWithContext creates a new DeleteMonitorsMonitorIDParams object with the ability to set a context for a request.

func NewDeleteMonitorsMonitorIDParamsWithHTTPClient

func NewDeleteMonitorsMonitorIDParamsWithHTTPClient(client *http.Client) *DeleteMonitorsMonitorIDParams

NewDeleteMonitorsMonitorIDParamsWithHTTPClient creates a new DeleteMonitorsMonitorIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMonitorsMonitorIDParamsWithTimeout

func NewDeleteMonitorsMonitorIDParamsWithTimeout(timeout time.Duration) *DeleteMonitorsMonitorIDParams

NewDeleteMonitorsMonitorIDParamsWithTimeout creates a new DeleteMonitorsMonitorIDParams object with the ability to set a timeout on a request.

func (*DeleteMonitorsMonitorIDParams) SetContext

func (o *DeleteMonitorsMonitorIDParams) SetContext(ctx context.Context)

SetContext adds the context to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) SetDefaults

func (o *DeleteMonitorsMonitorIDParams) SetDefaults()

SetDefaults hydrates default values in the delete monitors monitor ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteMonitorsMonitorIDParams) SetHTTPClient

func (o *DeleteMonitorsMonitorIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) SetMonitorID

func (o *DeleteMonitorsMonitorIDParams) SetMonitorID(monitorID strfmt.UUID)

SetMonitorID adds the monitorId to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) SetTimeout

func (o *DeleteMonitorsMonitorIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) WithContext

WithContext adds the context to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) WithDefaults

WithDefaults hydrates default values in the delete monitors monitor ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteMonitorsMonitorIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) WithMonitorID

WithMonitorID adds the monitorID to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) WithTimeout

WithTimeout adds the timeout to the delete monitors monitor ID params

func (*DeleteMonitorsMonitorIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMonitorsMonitorIDReader

type DeleteMonitorsMonitorIDReader struct {
	// contains filtered or unexported fields
}

DeleteMonitorsMonitorIDReader is a Reader for the DeleteMonitorsMonitorID structure.

func (*DeleteMonitorsMonitorIDReader) ReadResponse

func (o *DeleteMonitorsMonitorIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMonitorsBadRequest

type GetMonitorsBadRequest struct {
	Payload *models.Error
}

GetMonitorsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetMonitorsBadRequest

func NewGetMonitorsBadRequest() *GetMonitorsBadRequest

NewGetMonitorsBadRequest creates a GetMonitorsBadRequest with default headers values

func (*GetMonitorsBadRequest) Code

func (o *GetMonitorsBadRequest) Code() int

Code gets the status code for the get monitors bad request response

func (*GetMonitorsBadRequest) Error

func (o *GetMonitorsBadRequest) Error() string

func (*GetMonitorsBadRequest) GetPayload

func (o *GetMonitorsBadRequest) GetPayload() *models.Error

func (*GetMonitorsBadRequest) IsClientError

func (o *GetMonitorsBadRequest) IsClientError() bool

IsClientError returns true when this get monitors bad request response has a 4xx status code

func (*GetMonitorsBadRequest) IsCode

func (o *GetMonitorsBadRequest) IsCode(code int) bool

IsCode returns true when this get monitors bad request response a status code equal to that given

func (*GetMonitorsBadRequest) IsRedirect

func (o *GetMonitorsBadRequest) IsRedirect() bool

IsRedirect returns true when this get monitors bad request response has a 3xx status code

func (*GetMonitorsBadRequest) IsServerError

func (o *GetMonitorsBadRequest) IsServerError() bool

IsServerError returns true when this get monitors bad request response has a 5xx status code

func (*GetMonitorsBadRequest) IsSuccess

func (o *GetMonitorsBadRequest) IsSuccess() bool

IsSuccess returns true when this get monitors bad request response has a 2xx status code

func (*GetMonitorsBadRequest) String

func (o *GetMonitorsBadRequest) String() string

type GetMonitorsDefault

type GetMonitorsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetMonitorsDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewGetMonitorsDefault

func NewGetMonitorsDefault(code int) *GetMonitorsDefault

NewGetMonitorsDefault creates a GetMonitorsDefault with default headers values

func (*GetMonitorsDefault) Code

func (o *GetMonitorsDefault) Code() int

Code gets the status code for the get monitors default response

func (*GetMonitorsDefault) Error

func (o *GetMonitorsDefault) Error() string

func (*GetMonitorsDefault) GetPayload

func (o *GetMonitorsDefault) GetPayload() *models.Error

func (*GetMonitorsDefault) IsClientError

func (o *GetMonitorsDefault) IsClientError() bool

IsClientError returns true when this get monitors default response has a 4xx status code

func (*GetMonitorsDefault) IsCode

func (o *GetMonitorsDefault) IsCode(code int) bool

IsCode returns true when this get monitors default response a status code equal to that given

func (*GetMonitorsDefault) IsRedirect

func (o *GetMonitorsDefault) IsRedirect() bool

IsRedirect returns true when this get monitors default response has a 3xx status code

func (*GetMonitorsDefault) IsServerError

func (o *GetMonitorsDefault) IsServerError() bool

IsServerError returns true when this get monitors default response has a 5xx status code

func (*GetMonitorsDefault) IsSuccess

func (o *GetMonitorsDefault) IsSuccess() bool

IsSuccess returns true when this get monitors default response has a 2xx status code

func (*GetMonitorsDefault) String

func (o *GetMonitorsDefault) String() string

type GetMonitorsMonitorIDDefault

type GetMonitorsMonitorIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetMonitorsMonitorIDDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewGetMonitorsMonitorIDDefault

func NewGetMonitorsMonitorIDDefault(code int) *GetMonitorsMonitorIDDefault

NewGetMonitorsMonitorIDDefault creates a GetMonitorsMonitorIDDefault with default headers values

func (*GetMonitorsMonitorIDDefault) Code

func (o *GetMonitorsMonitorIDDefault) Code() int

Code gets the status code for the get monitors monitor ID default response

func (*GetMonitorsMonitorIDDefault) Error

func (*GetMonitorsMonitorIDDefault) GetPayload

func (o *GetMonitorsMonitorIDDefault) GetPayload() *models.Error

func (*GetMonitorsMonitorIDDefault) IsClientError

func (o *GetMonitorsMonitorIDDefault) IsClientError() bool

IsClientError returns true when this get monitors monitor ID default response has a 4xx status code

func (*GetMonitorsMonitorIDDefault) IsCode

func (o *GetMonitorsMonitorIDDefault) IsCode(code int) bool

IsCode returns true when this get monitors monitor ID default response a status code equal to that given

func (*GetMonitorsMonitorIDDefault) IsRedirect

func (o *GetMonitorsMonitorIDDefault) IsRedirect() bool

IsRedirect returns true when this get monitors monitor ID default response has a 3xx status code

func (*GetMonitorsMonitorIDDefault) IsServerError

func (o *GetMonitorsMonitorIDDefault) IsServerError() bool

IsServerError returns true when this get monitors monitor ID default response has a 5xx status code

func (*GetMonitorsMonitorIDDefault) IsSuccess

func (o *GetMonitorsMonitorIDDefault) IsSuccess() bool

IsSuccess returns true when this get monitors monitor ID default response has a 2xx status code

func (*GetMonitorsMonitorIDDefault) String

func (o *GetMonitorsMonitorIDDefault) String() string

type GetMonitorsMonitorIDNotFound

type GetMonitorsMonitorIDNotFound struct {
	Payload *models.Error
}

GetMonitorsMonitorIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetMonitorsMonitorIDNotFound

func NewGetMonitorsMonitorIDNotFound() *GetMonitorsMonitorIDNotFound

NewGetMonitorsMonitorIDNotFound creates a GetMonitorsMonitorIDNotFound with default headers values

func (*GetMonitorsMonitorIDNotFound) Code

Code gets the status code for the get monitors monitor Id not found response

func (*GetMonitorsMonitorIDNotFound) Error

func (*GetMonitorsMonitorIDNotFound) GetPayload

func (o *GetMonitorsMonitorIDNotFound) GetPayload() *models.Error

func (*GetMonitorsMonitorIDNotFound) IsClientError

func (o *GetMonitorsMonitorIDNotFound) IsClientError() bool

IsClientError returns true when this get monitors monitor Id not found response has a 4xx status code

func (*GetMonitorsMonitorIDNotFound) IsCode

func (o *GetMonitorsMonitorIDNotFound) IsCode(code int) bool

IsCode returns true when this get monitors monitor Id not found response a status code equal to that given

func (*GetMonitorsMonitorIDNotFound) IsRedirect

func (o *GetMonitorsMonitorIDNotFound) IsRedirect() bool

IsRedirect returns true when this get monitors monitor Id not found response has a 3xx status code

func (*GetMonitorsMonitorIDNotFound) IsServerError

func (o *GetMonitorsMonitorIDNotFound) IsServerError() bool

IsServerError returns true when this get monitors monitor Id not found response has a 5xx status code

func (*GetMonitorsMonitorIDNotFound) IsSuccess

func (o *GetMonitorsMonitorIDNotFound) IsSuccess() bool

IsSuccess returns true when this get monitors monitor Id not found response has a 2xx status code

func (*GetMonitorsMonitorIDNotFound) String

type GetMonitorsMonitorIDOK

type GetMonitorsMonitorIDOK struct {
	Payload *GetMonitorsMonitorIDOKBody
}

GetMonitorsMonitorIDOK describes a response with status code 200, with default header values.

Shows the details of a specific monitor.

func NewGetMonitorsMonitorIDOK

func NewGetMonitorsMonitorIDOK() *GetMonitorsMonitorIDOK

NewGetMonitorsMonitorIDOK creates a GetMonitorsMonitorIDOK with default headers values

func (*GetMonitorsMonitorIDOK) Code

func (o *GetMonitorsMonitorIDOK) Code() int

Code gets the status code for the get monitors monitor Id o k response

func (*GetMonitorsMonitorIDOK) Error

func (o *GetMonitorsMonitorIDOK) Error() string

func (*GetMonitorsMonitorIDOK) GetPayload

func (*GetMonitorsMonitorIDOK) IsClientError

func (o *GetMonitorsMonitorIDOK) IsClientError() bool

IsClientError returns true when this get monitors monitor Id o k response has a 4xx status code

func (*GetMonitorsMonitorIDOK) IsCode

func (o *GetMonitorsMonitorIDOK) IsCode(code int) bool

IsCode returns true when this get monitors monitor Id o k response a status code equal to that given

func (*GetMonitorsMonitorIDOK) IsRedirect

func (o *GetMonitorsMonitorIDOK) IsRedirect() bool

IsRedirect returns true when this get monitors monitor Id o k response has a 3xx status code

func (*GetMonitorsMonitorIDOK) IsServerError

func (o *GetMonitorsMonitorIDOK) IsServerError() bool

IsServerError returns true when this get monitors monitor Id o k response has a 5xx status code

func (*GetMonitorsMonitorIDOK) IsSuccess

func (o *GetMonitorsMonitorIDOK) IsSuccess() bool

IsSuccess returns true when this get monitors monitor Id o k response has a 2xx status code

func (*GetMonitorsMonitorIDOK) String

func (o *GetMonitorsMonitorIDOK) String() string

type GetMonitorsMonitorIDOKBody

type GetMonitorsMonitorIDOKBody struct {

	// monitor
	Monitor *models.Monitor `json:"monitor,omitempty"`
}

GetMonitorsMonitorIDOKBody get monitors monitor ID o k body swagger:model GetMonitorsMonitorIDOKBody

func (*GetMonitorsMonitorIDOKBody) ContextValidate

func (o *GetMonitorsMonitorIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get monitors monitor ID o k body based on the context it is used

func (*GetMonitorsMonitorIDOKBody) MarshalBinary

func (o *GetMonitorsMonitorIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMonitorsMonitorIDOKBody) UnmarshalBinary

func (o *GetMonitorsMonitorIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMonitorsMonitorIDOKBody) Validate

func (o *GetMonitorsMonitorIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get monitors monitor ID o k body

type GetMonitorsMonitorIDParams

type GetMonitorsMonitorIDParams struct {

	/* MonitorID.

	   The UUID of the monitor

	   Format: uuid
	*/
	MonitorID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMonitorsMonitorIDParams contains all the parameters to send to the API endpoint

for the get monitors monitor ID operation.

Typically these are written to a http.Request.

func NewGetMonitorsMonitorIDParams

func NewGetMonitorsMonitorIDParams() *GetMonitorsMonitorIDParams

NewGetMonitorsMonitorIDParams creates a new GetMonitorsMonitorIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetMonitorsMonitorIDParamsWithContext

func NewGetMonitorsMonitorIDParamsWithContext(ctx context.Context) *GetMonitorsMonitorIDParams

NewGetMonitorsMonitorIDParamsWithContext creates a new GetMonitorsMonitorIDParams object with the ability to set a context for a request.

func NewGetMonitorsMonitorIDParamsWithHTTPClient

func NewGetMonitorsMonitorIDParamsWithHTTPClient(client *http.Client) *GetMonitorsMonitorIDParams

NewGetMonitorsMonitorIDParamsWithHTTPClient creates a new GetMonitorsMonitorIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetMonitorsMonitorIDParamsWithTimeout

func NewGetMonitorsMonitorIDParamsWithTimeout(timeout time.Duration) *GetMonitorsMonitorIDParams

NewGetMonitorsMonitorIDParamsWithTimeout creates a new GetMonitorsMonitorIDParams object with the ability to set a timeout on a request.

func (*GetMonitorsMonitorIDParams) SetContext

func (o *GetMonitorsMonitorIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) SetDefaults

func (o *GetMonitorsMonitorIDParams) SetDefaults()

SetDefaults hydrates default values in the get monitors monitor ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetMonitorsMonitorIDParams) SetHTTPClient

func (o *GetMonitorsMonitorIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) SetMonitorID

func (o *GetMonitorsMonitorIDParams) SetMonitorID(monitorID strfmt.UUID)

SetMonitorID adds the monitorId to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) SetTimeout

func (o *GetMonitorsMonitorIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) WithContext

WithContext adds the context to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) WithDefaults

WithDefaults hydrates default values in the get monitors monitor ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetMonitorsMonitorIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) WithMonitorID

WithMonitorID adds the monitorID to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) WithTimeout

WithTimeout adds the timeout to the get monitors monitor ID params

func (*GetMonitorsMonitorIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMonitorsMonitorIDReader

type GetMonitorsMonitorIDReader struct {
	// contains filtered or unexported fields
}

GetMonitorsMonitorIDReader is a Reader for the GetMonitorsMonitorID structure.

func (*GetMonitorsMonitorIDReader) ReadResponse

func (o *GetMonitorsMonitorIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMonitorsOK

type GetMonitorsOK struct {
	Payload *GetMonitorsOKBody
}

GetMonitorsOK describes a response with status code 200, with default header values.

A JSON array of monitors

func NewGetMonitorsOK

func NewGetMonitorsOK() *GetMonitorsOK

NewGetMonitorsOK creates a GetMonitorsOK with default headers values

func (*GetMonitorsOK) Code

func (o *GetMonitorsOK) Code() int

Code gets the status code for the get monitors o k response

func (*GetMonitorsOK) Error

func (o *GetMonitorsOK) Error() string

func (*GetMonitorsOK) GetPayload

func (o *GetMonitorsOK) GetPayload() *GetMonitorsOKBody

func (*GetMonitorsOK) IsClientError

func (o *GetMonitorsOK) IsClientError() bool

IsClientError returns true when this get monitors o k response has a 4xx status code

func (*GetMonitorsOK) IsCode

func (o *GetMonitorsOK) IsCode(code int) bool

IsCode returns true when this get monitors o k response a status code equal to that given

func (*GetMonitorsOK) IsRedirect

func (o *GetMonitorsOK) IsRedirect() bool

IsRedirect returns true when this get monitors o k response has a 3xx status code

func (*GetMonitorsOK) IsServerError

func (o *GetMonitorsOK) IsServerError() bool

IsServerError returns true when this get monitors o k response has a 5xx status code

func (*GetMonitorsOK) IsSuccess

func (o *GetMonitorsOK) IsSuccess() bool

IsSuccess returns true when this get monitors o k response has a 2xx status code

func (*GetMonitorsOK) String

func (o *GetMonitorsOK) String() string

type GetMonitorsOKBody

type GetMonitorsOKBody struct {

	// links
	Links []*models.Link `json:"links,omitempty"`

	// monitors
	Monitors []*models.Monitor `json:"monitors"`
}

GetMonitorsOKBody get monitors o k body swagger:model GetMonitorsOKBody

func (*GetMonitorsOKBody) ContextValidate

func (o *GetMonitorsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get monitors o k body based on the context it is used

func (*GetMonitorsOKBody) MarshalBinary

func (o *GetMonitorsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMonitorsOKBody) UnmarshalBinary

func (o *GetMonitorsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMonitorsOKBody) Validate

func (o *GetMonitorsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get monitors o k body

type GetMonitorsParams

type GetMonitorsParams struct {

	/* Limit.

	   Sets the page size.
	*/
	Limit *int64

	/* Marker.

	   Pagination ID of the last item in the previous list.

	   Format: uuid
	*/
	Marker *strfmt.UUID

	/* NotTags.

	     Filter for resources not having tags, multiple not-tags are considered as logical AND.
	Should be provided in a comma separated list.

	*/
	NotTags []string

	/* NotTagsAny.

	     Filter for resources not having tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	*/
	NotTagsAny []string

	/* PageReverse.

	   Sets the page direction.
	*/
	PageReverse *bool

	/* PoolID.

	   Pool ID of the monitors to fetch

	   Format: uuid
	*/
	PoolID *strfmt.UUID

	/* Sort.

	   Comma-separated list of sort keys, optinally prefix with - to reverse sort order.
	*/
	Sort *string

	/* Tags.

	     Filter for tags, multiple tags are considered as logical AND.
	Should be provided in a comma separated list.

	*/
	Tags []string

	/* TagsAny.

	     Filter for tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	*/
	TagsAny []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMonitorsParams contains all the parameters to send to the API endpoint

for the get monitors operation.

Typically these are written to a http.Request.

func NewGetMonitorsParams

func NewGetMonitorsParams() *GetMonitorsParams

NewGetMonitorsParams creates a new GetMonitorsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetMonitorsParamsWithContext

func NewGetMonitorsParamsWithContext(ctx context.Context) *GetMonitorsParams

NewGetMonitorsParamsWithContext creates a new GetMonitorsParams object with the ability to set a context for a request.

func NewGetMonitorsParamsWithHTTPClient

func NewGetMonitorsParamsWithHTTPClient(client *http.Client) *GetMonitorsParams

NewGetMonitorsParamsWithHTTPClient creates a new GetMonitorsParams object with the ability to set a custom HTTPClient for a request.

func NewGetMonitorsParamsWithTimeout

func NewGetMonitorsParamsWithTimeout(timeout time.Duration) *GetMonitorsParams

NewGetMonitorsParamsWithTimeout creates a new GetMonitorsParams object with the ability to set a timeout on a request.

func (*GetMonitorsParams) SetContext

func (o *GetMonitorsParams) SetContext(ctx context.Context)

SetContext adds the context to the get monitors params

func (*GetMonitorsParams) SetDefaults

func (o *GetMonitorsParams) SetDefaults()

SetDefaults hydrates default values in the get monitors params (not the query body).

All values with no default are reset to their zero value.

func (*GetMonitorsParams) SetHTTPClient

func (o *GetMonitorsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get monitors params

func (*GetMonitorsParams) SetLimit

func (o *GetMonitorsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get monitors params

func (*GetMonitorsParams) SetMarker

func (o *GetMonitorsParams) SetMarker(marker *strfmt.UUID)

SetMarker adds the marker to the get monitors params

func (*GetMonitorsParams) SetNotTags

func (o *GetMonitorsParams) SetNotTags(notTags []string)

SetNotTags adds the notTags to the get monitors params

func (*GetMonitorsParams) SetNotTagsAny

func (o *GetMonitorsParams) SetNotTagsAny(notTagsAny []string)

SetNotTagsAny adds the notTagsAny to the get monitors params

func (*GetMonitorsParams) SetPageReverse

func (o *GetMonitorsParams) SetPageReverse(pageReverse *bool)

SetPageReverse adds the pageReverse to the get monitors params

func (*GetMonitorsParams) SetPoolID

func (o *GetMonitorsParams) SetPoolID(poolID *strfmt.UUID)

SetPoolID adds the poolId to the get monitors params

func (*GetMonitorsParams) SetSort

func (o *GetMonitorsParams) SetSort(sort *string)

SetSort adds the sort to the get monitors params

func (*GetMonitorsParams) SetTags

func (o *GetMonitorsParams) SetTags(tags []string)

SetTags adds the tags to the get monitors params

func (*GetMonitorsParams) SetTagsAny

func (o *GetMonitorsParams) SetTagsAny(tagsAny []string)

SetTagsAny adds the tagsAny to the get monitors params

func (*GetMonitorsParams) SetTimeout

func (o *GetMonitorsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get monitors params

func (*GetMonitorsParams) WithContext

func (o *GetMonitorsParams) WithContext(ctx context.Context) *GetMonitorsParams

WithContext adds the context to the get monitors params

func (*GetMonitorsParams) WithDefaults

func (o *GetMonitorsParams) WithDefaults() *GetMonitorsParams

WithDefaults hydrates default values in the get monitors params (not the query body).

All values with no default are reset to their zero value.

func (*GetMonitorsParams) WithHTTPClient

func (o *GetMonitorsParams) WithHTTPClient(client *http.Client) *GetMonitorsParams

WithHTTPClient adds the HTTPClient to the get monitors params

func (*GetMonitorsParams) WithLimit

func (o *GetMonitorsParams) WithLimit(limit *int64) *GetMonitorsParams

WithLimit adds the limit to the get monitors params

func (*GetMonitorsParams) WithMarker

func (o *GetMonitorsParams) WithMarker(marker *strfmt.UUID) *GetMonitorsParams

WithMarker adds the marker to the get monitors params

func (*GetMonitorsParams) WithNotTags

func (o *GetMonitorsParams) WithNotTags(notTags []string) *GetMonitorsParams

WithNotTags adds the notTags to the get monitors params

func (*GetMonitorsParams) WithNotTagsAny

func (o *GetMonitorsParams) WithNotTagsAny(notTagsAny []string) *GetMonitorsParams

WithNotTagsAny adds the notTagsAny to the get monitors params

func (*GetMonitorsParams) WithPageReverse

func (o *GetMonitorsParams) WithPageReverse(pageReverse *bool) *GetMonitorsParams

WithPageReverse adds the pageReverse to the get monitors params

func (*GetMonitorsParams) WithPoolID

func (o *GetMonitorsParams) WithPoolID(poolID *strfmt.UUID) *GetMonitorsParams

WithPoolID adds the poolID to the get monitors params

func (*GetMonitorsParams) WithSort

func (o *GetMonitorsParams) WithSort(sort *string) *GetMonitorsParams

WithSort adds the sort to the get monitors params

func (*GetMonitorsParams) WithTags

func (o *GetMonitorsParams) WithTags(tags []string) *GetMonitorsParams

WithTags adds the tags to the get monitors params

func (*GetMonitorsParams) WithTagsAny

func (o *GetMonitorsParams) WithTagsAny(tagsAny []string) *GetMonitorsParams

WithTagsAny adds the tagsAny to the get monitors params

func (*GetMonitorsParams) WithTimeout

func (o *GetMonitorsParams) WithTimeout(timeout time.Duration) *GetMonitorsParams

WithTimeout adds the timeout to the get monitors params

func (*GetMonitorsParams) WriteToRequest

func (o *GetMonitorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetMonitorsReader

type GetMonitorsReader struct {
	// contains filtered or unexported fields
}

GetMonitorsReader is a Reader for the GetMonitors structure.

func (*GetMonitorsReader) ReadResponse

func (o *GetMonitorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostMonitorsBadRequest

type PostMonitorsBadRequest struct {
	Payload *models.Error
}

PostMonitorsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPostMonitorsBadRequest

func NewPostMonitorsBadRequest() *PostMonitorsBadRequest

NewPostMonitorsBadRequest creates a PostMonitorsBadRequest with default headers values

func (*PostMonitorsBadRequest) Code

func (o *PostMonitorsBadRequest) Code() int

Code gets the status code for the post monitors bad request response

func (*PostMonitorsBadRequest) Error

func (o *PostMonitorsBadRequest) Error() string

func (*PostMonitorsBadRequest) GetPayload

func (o *PostMonitorsBadRequest) GetPayload() *models.Error

func (*PostMonitorsBadRequest) IsClientError

func (o *PostMonitorsBadRequest) IsClientError() bool

IsClientError returns true when this post monitors bad request response has a 4xx status code

func (*PostMonitorsBadRequest) IsCode

func (o *PostMonitorsBadRequest) IsCode(code int) bool

IsCode returns true when this post monitors bad request response a status code equal to that given

func (*PostMonitorsBadRequest) IsRedirect

func (o *PostMonitorsBadRequest) IsRedirect() bool

IsRedirect returns true when this post monitors bad request response has a 3xx status code

func (*PostMonitorsBadRequest) IsServerError

func (o *PostMonitorsBadRequest) IsServerError() bool

IsServerError returns true when this post monitors bad request response has a 5xx status code

func (*PostMonitorsBadRequest) IsSuccess

func (o *PostMonitorsBadRequest) IsSuccess() bool

IsSuccess returns true when this post monitors bad request response has a 2xx status code

func (*PostMonitorsBadRequest) String

func (o *PostMonitorsBadRequest) String() string

type PostMonitorsBody

type PostMonitorsBody struct {

	// monitor
	// Required: true
	Monitor *models.Monitor `json:"monitor"`
}

PostMonitorsBody post monitors body swagger:model PostMonitorsBody

func (*PostMonitorsBody) ContextValidate

func (o *PostMonitorsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post monitors body based on the context it is used

func (*PostMonitorsBody) MarshalBinary

func (o *PostMonitorsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostMonitorsBody) UnmarshalBinary

func (o *PostMonitorsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostMonitorsBody) Validate

func (o *PostMonitorsBody) Validate(formats strfmt.Registry) error

Validate validates this post monitors body

type PostMonitorsCreated

type PostMonitorsCreated struct {
	Payload *PostMonitorsCreatedBody
}

PostMonitorsCreated describes a response with status code 201, with default header values.

Created monitor.

func NewPostMonitorsCreated

func NewPostMonitorsCreated() *PostMonitorsCreated

NewPostMonitorsCreated creates a PostMonitorsCreated with default headers values

func (*PostMonitorsCreated) Code

func (o *PostMonitorsCreated) Code() int

Code gets the status code for the post monitors created response

func (*PostMonitorsCreated) Error

func (o *PostMonitorsCreated) Error() string

func (*PostMonitorsCreated) GetPayload

func (*PostMonitorsCreated) IsClientError

func (o *PostMonitorsCreated) IsClientError() bool

IsClientError returns true when this post monitors created response has a 4xx status code

func (*PostMonitorsCreated) IsCode

func (o *PostMonitorsCreated) IsCode(code int) bool

IsCode returns true when this post monitors created response a status code equal to that given

func (*PostMonitorsCreated) IsRedirect

func (o *PostMonitorsCreated) IsRedirect() bool

IsRedirect returns true when this post monitors created response has a 3xx status code

func (*PostMonitorsCreated) IsServerError

func (o *PostMonitorsCreated) IsServerError() bool

IsServerError returns true when this post monitors created response has a 5xx status code

func (*PostMonitorsCreated) IsSuccess

func (o *PostMonitorsCreated) IsSuccess() bool

IsSuccess returns true when this post monitors created response has a 2xx status code

func (*PostMonitorsCreated) String

func (o *PostMonitorsCreated) String() string

type PostMonitorsCreatedBody

type PostMonitorsCreatedBody struct {

	// monitor
	Monitor *models.Monitor `json:"monitor,omitempty"`
}

PostMonitorsCreatedBody post monitors created body swagger:model PostMonitorsCreatedBody

func (*PostMonitorsCreatedBody) ContextValidate

func (o *PostMonitorsCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post monitors created body based on the context it is used

func (*PostMonitorsCreatedBody) MarshalBinary

func (o *PostMonitorsCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostMonitorsCreatedBody) UnmarshalBinary

func (o *PostMonitorsCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostMonitorsCreatedBody) Validate

func (o *PostMonitorsCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this post monitors created body

type PostMonitorsDefault

type PostMonitorsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PostMonitorsDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewPostMonitorsDefault

func NewPostMonitorsDefault(code int) *PostMonitorsDefault

NewPostMonitorsDefault creates a PostMonitorsDefault with default headers values

func (*PostMonitorsDefault) Code

func (o *PostMonitorsDefault) Code() int

Code gets the status code for the post monitors default response

func (*PostMonitorsDefault) Error

func (o *PostMonitorsDefault) Error() string

func (*PostMonitorsDefault) GetPayload

func (o *PostMonitorsDefault) GetPayload() *models.Error

func (*PostMonitorsDefault) IsClientError

func (o *PostMonitorsDefault) IsClientError() bool

IsClientError returns true when this post monitors default response has a 4xx status code

func (*PostMonitorsDefault) IsCode

func (o *PostMonitorsDefault) IsCode(code int) bool

IsCode returns true when this post monitors default response a status code equal to that given

func (*PostMonitorsDefault) IsRedirect

func (o *PostMonitorsDefault) IsRedirect() bool

IsRedirect returns true when this post monitors default response has a 3xx status code

func (*PostMonitorsDefault) IsServerError

func (o *PostMonitorsDefault) IsServerError() bool

IsServerError returns true when this post monitors default response has a 5xx status code

func (*PostMonitorsDefault) IsSuccess

func (o *PostMonitorsDefault) IsSuccess() bool

IsSuccess returns true when this post monitors default response has a 2xx status code

func (*PostMonitorsDefault) String

func (o *PostMonitorsDefault) String() string

type PostMonitorsNotFound

type PostMonitorsNotFound struct {
	Payload *models.Error
}

PostMonitorsNotFound describes a response with status code 404, with default header values.

Not Found

func NewPostMonitorsNotFound

func NewPostMonitorsNotFound() *PostMonitorsNotFound

NewPostMonitorsNotFound creates a PostMonitorsNotFound with default headers values

func (*PostMonitorsNotFound) Code

func (o *PostMonitorsNotFound) Code() int

Code gets the status code for the post monitors not found response

func (*PostMonitorsNotFound) Error

func (o *PostMonitorsNotFound) Error() string

func (*PostMonitorsNotFound) GetPayload

func (o *PostMonitorsNotFound) GetPayload() *models.Error

func (*PostMonitorsNotFound) IsClientError

func (o *PostMonitorsNotFound) IsClientError() bool

IsClientError returns true when this post monitors not found response has a 4xx status code

func (*PostMonitorsNotFound) IsCode

func (o *PostMonitorsNotFound) IsCode(code int) bool

IsCode returns true when this post monitors not found response a status code equal to that given

func (*PostMonitorsNotFound) IsRedirect

func (o *PostMonitorsNotFound) IsRedirect() bool

IsRedirect returns true when this post monitors not found response has a 3xx status code

func (*PostMonitorsNotFound) IsServerError

func (o *PostMonitorsNotFound) IsServerError() bool

IsServerError returns true when this post monitors not found response has a 5xx status code

func (*PostMonitorsNotFound) IsSuccess

func (o *PostMonitorsNotFound) IsSuccess() bool

IsSuccess returns true when this post monitors not found response has a 2xx status code

func (*PostMonitorsNotFound) String

func (o *PostMonitorsNotFound) String() string

type PostMonitorsParams

type PostMonitorsParams struct {

	// Monitor.
	Monitor PostMonitorsBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostMonitorsParams contains all the parameters to send to the API endpoint

for the post monitors operation.

Typically these are written to a http.Request.

func NewPostMonitorsParams

func NewPostMonitorsParams() *PostMonitorsParams

NewPostMonitorsParams creates a new PostMonitorsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostMonitorsParamsWithContext

func NewPostMonitorsParamsWithContext(ctx context.Context) *PostMonitorsParams

NewPostMonitorsParamsWithContext creates a new PostMonitorsParams object with the ability to set a context for a request.

func NewPostMonitorsParamsWithHTTPClient

func NewPostMonitorsParamsWithHTTPClient(client *http.Client) *PostMonitorsParams

NewPostMonitorsParamsWithHTTPClient creates a new PostMonitorsParams object with the ability to set a custom HTTPClient for a request.

func NewPostMonitorsParamsWithTimeout

func NewPostMonitorsParamsWithTimeout(timeout time.Duration) *PostMonitorsParams

NewPostMonitorsParamsWithTimeout creates a new PostMonitorsParams object with the ability to set a timeout on a request.

func (*PostMonitorsParams) SetContext

func (o *PostMonitorsParams) SetContext(ctx context.Context)

SetContext adds the context to the post monitors params

func (*PostMonitorsParams) SetDefaults

func (o *PostMonitorsParams) SetDefaults()

SetDefaults hydrates default values in the post monitors params (not the query body).

All values with no default are reset to their zero value.

func (*PostMonitorsParams) SetHTTPClient

func (o *PostMonitorsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post monitors params

func (*PostMonitorsParams) SetMonitor

func (o *PostMonitorsParams) SetMonitor(monitor PostMonitorsBody)

SetMonitor adds the monitor to the post monitors params

func (*PostMonitorsParams) SetTimeout

func (o *PostMonitorsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post monitors params

func (*PostMonitorsParams) WithContext

WithContext adds the context to the post monitors params

func (*PostMonitorsParams) WithDefaults

func (o *PostMonitorsParams) WithDefaults() *PostMonitorsParams

WithDefaults hydrates default values in the post monitors params (not the query body).

All values with no default are reset to their zero value.

func (*PostMonitorsParams) WithHTTPClient

func (o *PostMonitorsParams) WithHTTPClient(client *http.Client) *PostMonitorsParams

WithHTTPClient adds the HTTPClient to the post monitors params

func (*PostMonitorsParams) WithMonitor

func (o *PostMonitorsParams) WithMonitor(monitor PostMonitorsBody) *PostMonitorsParams

WithMonitor adds the monitor to the post monitors params

func (*PostMonitorsParams) WithTimeout

func (o *PostMonitorsParams) WithTimeout(timeout time.Duration) *PostMonitorsParams

WithTimeout adds the timeout to the post monitors params

func (*PostMonitorsParams) WriteToRequest

func (o *PostMonitorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostMonitorsReader

type PostMonitorsReader struct {
	// contains filtered or unexported fields
}

PostMonitorsReader is a Reader for the PostMonitors structure.

func (*PostMonitorsReader) ReadResponse

func (o *PostMonitorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutMonitorsMonitorIDAccepted

type PutMonitorsMonitorIDAccepted struct {
	Payload *PutMonitorsMonitorIDAcceptedBody
}

PutMonitorsMonitorIDAccepted describes a response with status code 202, with default header values.

Updated monitor.

func NewPutMonitorsMonitorIDAccepted

func NewPutMonitorsMonitorIDAccepted() *PutMonitorsMonitorIDAccepted

NewPutMonitorsMonitorIDAccepted creates a PutMonitorsMonitorIDAccepted with default headers values

func (*PutMonitorsMonitorIDAccepted) Code

Code gets the status code for the put monitors monitor Id accepted response

func (*PutMonitorsMonitorIDAccepted) Error

func (*PutMonitorsMonitorIDAccepted) GetPayload

func (*PutMonitorsMonitorIDAccepted) IsClientError

func (o *PutMonitorsMonitorIDAccepted) IsClientError() bool

IsClientError returns true when this put monitors monitor Id accepted response has a 4xx status code

func (*PutMonitorsMonitorIDAccepted) IsCode

func (o *PutMonitorsMonitorIDAccepted) IsCode(code int) bool

IsCode returns true when this put monitors monitor Id accepted response a status code equal to that given

func (*PutMonitorsMonitorIDAccepted) IsRedirect

func (o *PutMonitorsMonitorIDAccepted) IsRedirect() bool

IsRedirect returns true when this put monitors monitor Id accepted response has a 3xx status code

func (*PutMonitorsMonitorIDAccepted) IsServerError

func (o *PutMonitorsMonitorIDAccepted) IsServerError() bool

IsServerError returns true when this put monitors monitor Id accepted response has a 5xx status code

func (*PutMonitorsMonitorIDAccepted) IsSuccess

func (o *PutMonitorsMonitorIDAccepted) IsSuccess() bool

IsSuccess returns true when this put monitors monitor Id accepted response has a 2xx status code

func (*PutMonitorsMonitorIDAccepted) String

type PutMonitorsMonitorIDAcceptedBody

type PutMonitorsMonitorIDAcceptedBody struct {

	// monitor
	Monitor *models.Monitor `json:"monitor,omitempty"`
}

PutMonitorsMonitorIDAcceptedBody put monitors monitor ID accepted body swagger:model PutMonitorsMonitorIDAcceptedBody

func (*PutMonitorsMonitorIDAcceptedBody) ContextValidate

func (o *PutMonitorsMonitorIDAcceptedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put monitors monitor ID accepted body based on the context it is used

func (*PutMonitorsMonitorIDAcceptedBody) MarshalBinary

func (o *PutMonitorsMonitorIDAcceptedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutMonitorsMonitorIDAcceptedBody) UnmarshalBinary

func (o *PutMonitorsMonitorIDAcceptedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutMonitorsMonitorIDAcceptedBody) Validate

Validate validates this put monitors monitor ID accepted body

type PutMonitorsMonitorIDBadRequest

type PutMonitorsMonitorIDBadRequest struct {
	Payload *models.Error
}

PutMonitorsMonitorIDBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPutMonitorsMonitorIDBadRequest

func NewPutMonitorsMonitorIDBadRequest() *PutMonitorsMonitorIDBadRequest

NewPutMonitorsMonitorIDBadRequest creates a PutMonitorsMonitorIDBadRequest with default headers values

func (*PutMonitorsMonitorIDBadRequest) Code

Code gets the status code for the put monitors monitor Id bad request response

func (*PutMonitorsMonitorIDBadRequest) Error

func (*PutMonitorsMonitorIDBadRequest) GetPayload

func (o *PutMonitorsMonitorIDBadRequest) GetPayload() *models.Error

func (*PutMonitorsMonitorIDBadRequest) IsClientError

func (o *PutMonitorsMonitorIDBadRequest) IsClientError() bool

IsClientError returns true when this put monitors monitor Id bad request response has a 4xx status code

func (*PutMonitorsMonitorIDBadRequest) IsCode

func (o *PutMonitorsMonitorIDBadRequest) IsCode(code int) bool

IsCode returns true when this put monitors monitor Id bad request response a status code equal to that given

func (*PutMonitorsMonitorIDBadRequest) IsRedirect

func (o *PutMonitorsMonitorIDBadRequest) IsRedirect() bool

IsRedirect returns true when this put monitors monitor Id bad request response has a 3xx status code

func (*PutMonitorsMonitorIDBadRequest) IsServerError

func (o *PutMonitorsMonitorIDBadRequest) IsServerError() bool

IsServerError returns true when this put monitors monitor Id bad request response has a 5xx status code

func (*PutMonitorsMonitorIDBadRequest) IsSuccess

func (o *PutMonitorsMonitorIDBadRequest) IsSuccess() bool

IsSuccess returns true when this put monitors monitor Id bad request response has a 2xx status code

func (*PutMonitorsMonitorIDBadRequest) String

type PutMonitorsMonitorIDBody

type PutMonitorsMonitorIDBody struct {

	// monitor
	// Required: true
	Monitor *models.Monitor `json:"monitor"`
}

PutMonitorsMonitorIDBody put monitors monitor ID body swagger:model PutMonitorsMonitorIDBody

func (*PutMonitorsMonitorIDBody) ContextValidate

func (o *PutMonitorsMonitorIDBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put monitors monitor ID body based on the context it is used

func (*PutMonitorsMonitorIDBody) MarshalBinary

func (o *PutMonitorsMonitorIDBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutMonitorsMonitorIDBody) UnmarshalBinary

func (o *PutMonitorsMonitorIDBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutMonitorsMonitorIDBody) Validate

func (o *PutMonitorsMonitorIDBody) Validate(formats strfmt.Registry) error

Validate validates this put monitors monitor ID body

type PutMonitorsMonitorIDDefault

type PutMonitorsMonitorIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PutMonitorsMonitorIDDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewPutMonitorsMonitorIDDefault

func NewPutMonitorsMonitorIDDefault(code int) *PutMonitorsMonitorIDDefault

NewPutMonitorsMonitorIDDefault creates a PutMonitorsMonitorIDDefault with default headers values

func (*PutMonitorsMonitorIDDefault) Code

func (o *PutMonitorsMonitorIDDefault) Code() int

Code gets the status code for the put monitors monitor ID default response

func (*PutMonitorsMonitorIDDefault) Error

func (*PutMonitorsMonitorIDDefault) GetPayload

func (o *PutMonitorsMonitorIDDefault) GetPayload() *models.Error

func (*PutMonitorsMonitorIDDefault) IsClientError

func (o *PutMonitorsMonitorIDDefault) IsClientError() bool

IsClientError returns true when this put monitors monitor ID default response has a 4xx status code

func (*PutMonitorsMonitorIDDefault) IsCode

func (o *PutMonitorsMonitorIDDefault) IsCode(code int) bool

IsCode returns true when this put monitors monitor ID default response a status code equal to that given

func (*PutMonitorsMonitorIDDefault) IsRedirect

func (o *PutMonitorsMonitorIDDefault) IsRedirect() bool

IsRedirect returns true when this put monitors monitor ID default response has a 3xx status code

func (*PutMonitorsMonitorIDDefault) IsServerError

func (o *PutMonitorsMonitorIDDefault) IsServerError() bool

IsServerError returns true when this put monitors monitor ID default response has a 5xx status code

func (*PutMonitorsMonitorIDDefault) IsSuccess

func (o *PutMonitorsMonitorIDDefault) IsSuccess() bool

IsSuccess returns true when this put monitors monitor ID default response has a 2xx status code

func (*PutMonitorsMonitorIDDefault) String

func (o *PutMonitorsMonitorIDDefault) String() string

type PutMonitorsMonitorIDNotFound

type PutMonitorsMonitorIDNotFound struct {
	Payload *models.Error
}

PutMonitorsMonitorIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewPutMonitorsMonitorIDNotFound

func NewPutMonitorsMonitorIDNotFound() *PutMonitorsMonitorIDNotFound

NewPutMonitorsMonitorIDNotFound creates a PutMonitorsMonitorIDNotFound with default headers values

func (*PutMonitorsMonitorIDNotFound) Code

Code gets the status code for the put monitors monitor Id not found response

func (*PutMonitorsMonitorIDNotFound) Error

func (*PutMonitorsMonitorIDNotFound) GetPayload

func (o *PutMonitorsMonitorIDNotFound) GetPayload() *models.Error

func (*PutMonitorsMonitorIDNotFound) IsClientError

func (o *PutMonitorsMonitorIDNotFound) IsClientError() bool

IsClientError returns true when this put monitors monitor Id not found response has a 4xx status code

func (*PutMonitorsMonitorIDNotFound) IsCode

func (o *PutMonitorsMonitorIDNotFound) IsCode(code int) bool

IsCode returns true when this put monitors monitor Id not found response a status code equal to that given

func (*PutMonitorsMonitorIDNotFound) IsRedirect

func (o *PutMonitorsMonitorIDNotFound) IsRedirect() bool

IsRedirect returns true when this put monitors monitor Id not found response has a 3xx status code

func (*PutMonitorsMonitorIDNotFound) IsServerError

func (o *PutMonitorsMonitorIDNotFound) IsServerError() bool

IsServerError returns true when this put monitors monitor Id not found response has a 5xx status code

func (*PutMonitorsMonitorIDNotFound) IsSuccess

func (o *PutMonitorsMonitorIDNotFound) IsSuccess() bool

IsSuccess returns true when this put monitors monitor Id not found response has a 2xx status code

func (*PutMonitorsMonitorIDNotFound) String

type PutMonitorsMonitorIDParams

type PutMonitorsMonitorIDParams struct {

	// Monitor.
	Monitor PutMonitorsMonitorIDBody

	/* MonitorID.

	   The UUID of the monitor

	   Format: uuid
	*/
	MonitorID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutMonitorsMonitorIDParams contains all the parameters to send to the API endpoint

for the put monitors monitor ID operation.

Typically these are written to a http.Request.

func NewPutMonitorsMonitorIDParams

func NewPutMonitorsMonitorIDParams() *PutMonitorsMonitorIDParams

NewPutMonitorsMonitorIDParams creates a new PutMonitorsMonitorIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutMonitorsMonitorIDParamsWithContext

func NewPutMonitorsMonitorIDParamsWithContext(ctx context.Context) *PutMonitorsMonitorIDParams

NewPutMonitorsMonitorIDParamsWithContext creates a new PutMonitorsMonitorIDParams object with the ability to set a context for a request.

func NewPutMonitorsMonitorIDParamsWithHTTPClient

func NewPutMonitorsMonitorIDParamsWithHTTPClient(client *http.Client) *PutMonitorsMonitorIDParams

NewPutMonitorsMonitorIDParamsWithHTTPClient creates a new PutMonitorsMonitorIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutMonitorsMonitorIDParamsWithTimeout

func NewPutMonitorsMonitorIDParamsWithTimeout(timeout time.Duration) *PutMonitorsMonitorIDParams

NewPutMonitorsMonitorIDParamsWithTimeout creates a new PutMonitorsMonitorIDParams object with the ability to set a timeout on a request.

func (*PutMonitorsMonitorIDParams) SetContext

func (o *PutMonitorsMonitorIDParams) SetContext(ctx context.Context)

SetContext adds the context to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) SetDefaults

func (o *PutMonitorsMonitorIDParams) SetDefaults()

SetDefaults hydrates default values in the put monitors monitor ID params (not the query body).

All values with no default are reset to their zero value.

func (*PutMonitorsMonitorIDParams) SetHTTPClient

func (o *PutMonitorsMonitorIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) SetMonitor

SetMonitor adds the monitor to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) SetMonitorID

func (o *PutMonitorsMonitorIDParams) SetMonitorID(monitorID strfmt.UUID)

SetMonitorID adds the monitorId to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) SetTimeout

func (o *PutMonitorsMonitorIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) WithContext

WithContext adds the context to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) WithDefaults

WithDefaults hydrates default values in the put monitors monitor ID params (not the query body).

All values with no default are reset to their zero value.

func (*PutMonitorsMonitorIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) WithMonitor

WithMonitor adds the monitor to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) WithMonitorID

WithMonitorID adds the monitorID to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) WithTimeout

WithTimeout adds the timeout to the put monitors monitor ID params

func (*PutMonitorsMonitorIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutMonitorsMonitorIDReader

type PutMonitorsMonitorIDReader struct {
	// contains filtered or unexported fields
}

PutMonitorsMonitorIDReader is a Reader for the PutMonitorsMonitorID structure.

func (*PutMonitorsMonitorIDReader) ReadResponse

func (o *PutMonitorsMonitorIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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