monitor

package
v1.0.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 monitor API

func (*Client) CreateMonitor

func (a *Client) CreateMonitor(params *CreateMonitorParams, opts ...ClientOption) (*CreateMonitorOK, error)

CreateMonitor create monitor API

func (*Client) DeleteMonitor

func (a *Client) DeleteMonitor(params *DeleteMonitorParams, opts ...ClientOption) (*DeleteMonitorOK, error)

DeleteMonitor delete monitor API

func (*Client) ListMonitors

func (a *Client) ListMonitors(params *ListMonitorsParams, opts ...ClientOption) (*ListMonitorsOK, error)

ListMonitors list monitors API

func (*Client) ReadMonitor

func (a *Client) ReadMonitor(params *ReadMonitorParams, opts ...ClientOption) (*ReadMonitorOK, error)

ReadMonitor read monitor API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateMonitor

func (a *Client) UpdateMonitor(params *UpdateMonitorParams, opts ...ClientOption) (*UpdateMonitorOK, error)

UpdateMonitor update monitor API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateMonitor(params *CreateMonitorParams, opts ...ClientOption) (*CreateMonitorOK, error)

	DeleteMonitor(params *DeleteMonitorParams, opts ...ClientOption) (*DeleteMonitorOK, error)

	ListMonitors(params *ListMonitorsParams, opts ...ClientOption) (*ListMonitorsOK, error)

	ReadMonitor(params *ReadMonitorParams, opts ...ClientOption) (*ReadMonitorOK, error)

	UpdateMonitor(params *UpdateMonitorParams, opts ...ClientOption) (*UpdateMonitorOK, 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 monitor API client.

type CreateMonitorBadRequest

type CreateMonitorBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the Monitor because the request is invalid.

func NewCreateMonitorBadRequest

func NewCreateMonitorBadRequest() *CreateMonitorBadRequest

NewCreateMonitorBadRequest creates a CreateMonitorBadRequest with default headers values

func (*CreateMonitorBadRequest) Code

func (o *CreateMonitorBadRequest) Code() int

Code gets the status code for the create monitor bad request response

func (*CreateMonitorBadRequest) Error

func (o *CreateMonitorBadRequest) Error() string

func (*CreateMonitorBadRequest) GetPayload

func (o *CreateMonitorBadRequest) GetPayload() *models.APIError

func (*CreateMonitorBadRequest) IsClientError

func (o *CreateMonitorBadRequest) IsClientError() bool

IsClientError returns true when this create monitor bad request response has a 4xx status code

func (*CreateMonitorBadRequest) IsCode

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

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

func (*CreateMonitorBadRequest) IsRedirect

func (o *CreateMonitorBadRequest) IsRedirect() bool

IsRedirect returns true when this create monitor bad request response has a 3xx status code

func (*CreateMonitorBadRequest) IsServerError

func (o *CreateMonitorBadRequest) IsServerError() bool

IsServerError returns true when this create monitor bad request response has a 5xx status code

func (*CreateMonitorBadRequest) IsSuccess

func (o *CreateMonitorBadRequest) IsSuccess() bool

IsSuccess returns true when this create monitor bad request response has a 2xx status code

func (*CreateMonitorBadRequest) String

func (o *CreateMonitorBadRequest) String() string

type CreateMonitorConflict

type CreateMonitorConflict struct {
	Payload *models.APIError
}

CreateMonitorConflict describes a response with status code 409, with default header values.

Cannot create the Monitor because there is a conflict with an existing Monitor.

func NewCreateMonitorConflict

func NewCreateMonitorConflict() *CreateMonitorConflict

NewCreateMonitorConflict creates a CreateMonitorConflict with default headers values

func (*CreateMonitorConflict) Code

func (o *CreateMonitorConflict) Code() int

Code gets the status code for the create monitor conflict response

func (*CreateMonitorConflict) Error

func (o *CreateMonitorConflict) Error() string

func (*CreateMonitorConflict) GetPayload

func (o *CreateMonitorConflict) GetPayload() *models.APIError

func (*CreateMonitorConflict) IsClientError

func (o *CreateMonitorConflict) IsClientError() bool

IsClientError returns true when this create monitor conflict response has a 4xx status code

func (*CreateMonitorConflict) IsCode

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

IsCode returns true when this create monitor conflict response a status code equal to that given

func (*CreateMonitorConflict) IsRedirect

func (o *CreateMonitorConflict) IsRedirect() bool

IsRedirect returns true when this create monitor conflict response has a 3xx status code

func (*CreateMonitorConflict) IsServerError

func (o *CreateMonitorConflict) IsServerError() bool

IsServerError returns true when this create monitor conflict response has a 5xx status code

func (*CreateMonitorConflict) IsSuccess

func (o *CreateMonitorConflict) IsSuccess() bool

IsSuccess returns true when this create monitor conflict response has a 2xx status code

func (*CreateMonitorConflict) String

func (o *CreateMonitorConflict) String() string

type CreateMonitorDefault

type CreateMonitorDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewCreateMonitorDefault

func NewCreateMonitorDefault(code int) *CreateMonitorDefault

NewCreateMonitorDefault creates a CreateMonitorDefault with default headers values

func (*CreateMonitorDefault) Code

func (o *CreateMonitorDefault) Code() int

Code gets the status code for the create monitor default response

func (*CreateMonitorDefault) Error

func (o *CreateMonitorDefault) Error() string

func (*CreateMonitorDefault) GetPayload

func (o *CreateMonitorDefault) GetPayload() models.GenericError

func (*CreateMonitorDefault) IsClientError

func (o *CreateMonitorDefault) IsClientError() bool

IsClientError returns true when this create monitor default response has a 4xx status code

func (*CreateMonitorDefault) IsCode

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

IsCode returns true when this create monitor default response a status code equal to that given

func (*CreateMonitorDefault) IsRedirect

func (o *CreateMonitorDefault) IsRedirect() bool

IsRedirect returns true when this create monitor default response has a 3xx status code

func (*CreateMonitorDefault) IsServerError

func (o *CreateMonitorDefault) IsServerError() bool

IsServerError returns true when this create monitor default response has a 5xx status code

func (*CreateMonitorDefault) IsSuccess

func (o *CreateMonitorDefault) IsSuccess() bool

IsSuccess returns true when this create monitor default response has a 2xx status code

func (*CreateMonitorDefault) String

func (o *CreateMonitorDefault) String() string

type CreateMonitorInternalServerError

type CreateMonitorInternalServerError struct {
	Payload *models.APIError
}

CreateMonitorInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateMonitorInternalServerError

func NewCreateMonitorInternalServerError() *CreateMonitorInternalServerError

NewCreateMonitorInternalServerError creates a CreateMonitorInternalServerError with default headers values

func (*CreateMonitorInternalServerError) Code

Code gets the status code for the create monitor internal server error response

func (*CreateMonitorInternalServerError) Error

func (*CreateMonitorInternalServerError) GetPayload

func (*CreateMonitorInternalServerError) IsClientError

func (o *CreateMonitorInternalServerError) IsClientError() bool

IsClientError returns true when this create monitor internal server error response has a 4xx status code

func (*CreateMonitorInternalServerError) IsCode

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

IsCode returns true when this create monitor internal server error response a status code equal to that given

func (*CreateMonitorInternalServerError) IsRedirect

func (o *CreateMonitorInternalServerError) IsRedirect() bool

IsRedirect returns true when this create monitor internal server error response has a 3xx status code

func (*CreateMonitorInternalServerError) IsServerError

func (o *CreateMonitorInternalServerError) IsServerError() bool

IsServerError returns true when this create monitor internal server error response has a 5xx status code

func (*CreateMonitorInternalServerError) IsSuccess

func (o *CreateMonitorInternalServerError) IsSuccess() bool

IsSuccess returns true when this create monitor internal server error response has a 2xx status code

func (*CreateMonitorInternalServerError) String

type CreateMonitorOK

type CreateMonitorOK struct {
	Payload *models.Configv1CreateMonitorResponse
}

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

A successful response containing the created Monitor.

func NewCreateMonitorOK

func NewCreateMonitorOK() *CreateMonitorOK

NewCreateMonitorOK creates a CreateMonitorOK with default headers values

func (*CreateMonitorOK) Code

func (o *CreateMonitorOK) Code() int

Code gets the status code for the create monitor o k response

func (*CreateMonitorOK) Error

func (o *CreateMonitorOK) Error() string

func (*CreateMonitorOK) GetPayload

func (*CreateMonitorOK) IsClientError

func (o *CreateMonitorOK) IsClientError() bool

IsClientError returns true when this create monitor o k response has a 4xx status code

func (*CreateMonitorOK) IsCode

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

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

func (*CreateMonitorOK) IsRedirect

func (o *CreateMonitorOK) IsRedirect() bool

IsRedirect returns true when this create monitor o k response has a 3xx status code

func (*CreateMonitorOK) IsServerError

func (o *CreateMonitorOK) IsServerError() bool

IsServerError returns true when this create monitor o k response has a 5xx status code

func (*CreateMonitorOK) IsSuccess

func (o *CreateMonitorOK) IsSuccess() bool

IsSuccess returns true when this create monitor o k response has a 2xx status code

func (*CreateMonitorOK) String

func (o *CreateMonitorOK) String() string

type CreateMonitorParams

type CreateMonitorParams struct {

	// Body.
	Body *models.Configv1CreateMonitorRequest

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

CreateMonitorParams contains all the parameters to send to the API endpoint

for the create monitor operation.

Typically these are written to a http.Request.

func NewCreateMonitorParams

func NewCreateMonitorParams() *CreateMonitorParams

NewCreateMonitorParams creates a new CreateMonitorParams 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 NewCreateMonitorParamsWithContext

func NewCreateMonitorParamsWithContext(ctx context.Context) *CreateMonitorParams

NewCreateMonitorParamsWithContext creates a new CreateMonitorParams object with the ability to set a context for a request.

func NewCreateMonitorParamsWithHTTPClient

func NewCreateMonitorParamsWithHTTPClient(client *http.Client) *CreateMonitorParams

NewCreateMonitorParamsWithHTTPClient creates a new CreateMonitorParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMonitorParamsWithTimeout

func NewCreateMonitorParamsWithTimeout(timeout time.Duration) *CreateMonitorParams

NewCreateMonitorParamsWithTimeout creates a new CreateMonitorParams object with the ability to set a timeout on a request.

func (*CreateMonitorParams) SetBody

SetBody adds the body to the create monitor params

func (*CreateMonitorParams) SetContext

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

SetContext adds the context to the create monitor params

func (*CreateMonitorParams) SetDefaults

func (o *CreateMonitorParams) SetDefaults()

SetDefaults hydrates default values in the create monitor params (not the query body).

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

func (*CreateMonitorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create monitor params

func (*CreateMonitorParams) SetTimeout

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

SetTimeout adds the timeout to the create monitor params

func (*CreateMonitorParams) WithBody

WithBody adds the body to the create monitor params

func (*CreateMonitorParams) WithContext

WithContext adds the context to the create monitor params

func (*CreateMonitorParams) WithDefaults

func (o *CreateMonitorParams) WithDefaults() *CreateMonitorParams

WithDefaults hydrates default values in the create monitor params (not the query body).

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

func (*CreateMonitorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create monitor params

func (*CreateMonitorParams) WithTimeout

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

WithTimeout adds the timeout to the create monitor params

func (*CreateMonitorParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateMonitorReader

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

CreateMonitorReader is a Reader for the CreateMonitor structure.

func (*CreateMonitorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMonitorBadRequest

type DeleteMonitorBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the Monitor because it is in use.

func NewDeleteMonitorBadRequest

func NewDeleteMonitorBadRequest() *DeleteMonitorBadRequest

NewDeleteMonitorBadRequest creates a DeleteMonitorBadRequest with default headers values

func (*DeleteMonitorBadRequest) Code

func (o *DeleteMonitorBadRequest) Code() int

Code gets the status code for the delete monitor bad request response

func (*DeleteMonitorBadRequest) Error

func (o *DeleteMonitorBadRequest) Error() string

func (*DeleteMonitorBadRequest) GetPayload

func (o *DeleteMonitorBadRequest) GetPayload() *models.APIError

func (*DeleteMonitorBadRequest) IsClientError

func (o *DeleteMonitorBadRequest) IsClientError() bool

IsClientError returns true when this delete monitor bad request response has a 4xx status code

func (*DeleteMonitorBadRequest) IsCode

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

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

func (*DeleteMonitorBadRequest) IsRedirect

func (o *DeleteMonitorBadRequest) IsRedirect() bool

IsRedirect returns true when this delete monitor bad request response has a 3xx status code

func (*DeleteMonitorBadRequest) IsServerError

func (o *DeleteMonitorBadRequest) IsServerError() bool

IsServerError returns true when this delete monitor bad request response has a 5xx status code

func (*DeleteMonitorBadRequest) IsSuccess

func (o *DeleteMonitorBadRequest) IsSuccess() bool

IsSuccess returns true when this delete monitor bad request response has a 2xx status code

func (*DeleteMonitorBadRequest) String

func (o *DeleteMonitorBadRequest) String() string

type DeleteMonitorDefault

type DeleteMonitorDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewDeleteMonitorDefault

func NewDeleteMonitorDefault(code int) *DeleteMonitorDefault

NewDeleteMonitorDefault creates a DeleteMonitorDefault with default headers values

func (*DeleteMonitorDefault) Code

func (o *DeleteMonitorDefault) Code() int

Code gets the status code for the delete monitor default response

func (*DeleteMonitorDefault) Error

func (o *DeleteMonitorDefault) Error() string

func (*DeleteMonitorDefault) GetPayload

func (o *DeleteMonitorDefault) GetPayload() models.GenericError

func (*DeleteMonitorDefault) IsClientError

func (o *DeleteMonitorDefault) IsClientError() bool

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

func (*DeleteMonitorDefault) IsCode

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

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

func (*DeleteMonitorDefault) IsRedirect

func (o *DeleteMonitorDefault) IsRedirect() bool

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

func (*DeleteMonitorDefault) IsServerError

func (o *DeleteMonitorDefault) IsServerError() bool

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

func (*DeleteMonitorDefault) IsSuccess

func (o *DeleteMonitorDefault) IsSuccess() bool

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

func (*DeleteMonitorDefault) String

func (o *DeleteMonitorDefault) String() string

type DeleteMonitorInternalServerError

type DeleteMonitorInternalServerError struct {
	Payload *models.APIError
}

DeleteMonitorInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteMonitorInternalServerError

func NewDeleteMonitorInternalServerError() *DeleteMonitorInternalServerError

NewDeleteMonitorInternalServerError creates a DeleteMonitorInternalServerError with default headers values

func (*DeleteMonitorInternalServerError) Code

Code gets the status code for the delete monitor internal server error response

func (*DeleteMonitorInternalServerError) Error

func (*DeleteMonitorInternalServerError) GetPayload

func (*DeleteMonitorInternalServerError) IsClientError

func (o *DeleteMonitorInternalServerError) IsClientError() bool

IsClientError returns true when this delete monitor internal server error response has a 4xx status code

func (*DeleteMonitorInternalServerError) IsCode

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

IsCode returns true when this delete monitor internal server error response a status code equal to that given

func (*DeleteMonitorInternalServerError) IsRedirect

func (o *DeleteMonitorInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete monitor internal server error response has a 3xx status code

func (*DeleteMonitorInternalServerError) IsServerError

func (o *DeleteMonitorInternalServerError) IsServerError() bool

IsServerError returns true when this delete monitor internal server error response has a 5xx status code

func (*DeleteMonitorInternalServerError) IsSuccess

func (o *DeleteMonitorInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete monitor internal server error response has a 2xx status code

func (*DeleteMonitorInternalServerError) String

type DeleteMonitorNotFound

type DeleteMonitorNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the Monitor because the slug does not exist.

func NewDeleteMonitorNotFound

func NewDeleteMonitorNotFound() *DeleteMonitorNotFound

NewDeleteMonitorNotFound creates a DeleteMonitorNotFound with default headers values

func (*DeleteMonitorNotFound) Code

func (o *DeleteMonitorNotFound) Code() int

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

func (*DeleteMonitorNotFound) Error

func (o *DeleteMonitorNotFound) Error() string

func (*DeleteMonitorNotFound) GetPayload

func (o *DeleteMonitorNotFound) GetPayload() *models.APIError

func (*DeleteMonitorNotFound) IsClientError

func (o *DeleteMonitorNotFound) IsClientError() bool

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

func (*DeleteMonitorNotFound) IsCode

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

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

func (*DeleteMonitorNotFound) IsRedirect

func (o *DeleteMonitorNotFound) IsRedirect() bool

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

func (*DeleteMonitorNotFound) IsServerError

func (o *DeleteMonitorNotFound) IsServerError() bool

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

func (*DeleteMonitorNotFound) IsSuccess

func (o *DeleteMonitorNotFound) IsSuccess() bool

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

func (*DeleteMonitorNotFound) String

func (o *DeleteMonitorNotFound) String() string

type DeleteMonitorOK

type DeleteMonitorOK struct {
	Payload models.Configv1DeleteMonitorResponse
}

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

A successful response.

func NewDeleteMonitorOK

func NewDeleteMonitorOK() *DeleteMonitorOK

NewDeleteMonitorOK creates a DeleteMonitorOK with default headers values

func (*DeleteMonitorOK) Code

func (o *DeleteMonitorOK) Code() int

Code gets the status code for the delete monitor o k response

func (*DeleteMonitorOK) Error

func (o *DeleteMonitorOK) Error() string

func (*DeleteMonitorOK) GetPayload

func (*DeleteMonitorOK) IsClientError

func (o *DeleteMonitorOK) IsClientError() bool

IsClientError returns true when this delete monitor o k response has a 4xx status code

func (*DeleteMonitorOK) IsCode

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

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

func (*DeleteMonitorOK) IsRedirect

func (o *DeleteMonitorOK) IsRedirect() bool

IsRedirect returns true when this delete monitor o k response has a 3xx status code

func (*DeleteMonitorOK) IsServerError

func (o *DeleteMonitorOK) IsServerError() bool

IsServerError returns true when this delete monitor o k response has a 5xx status code

func (*DeleteMonitorOK) IsSuccess

func (o *DeleteMonitorOK) IsSuccess() bool

IsSuccess returns true when this delete monitor o k response has a 2xx status code

func (*DeleteMonitorOK) String

func (o *DeleteMonitorOK) String() string

type DeleteMonitorParams

type DeleteMonitorParams struct {

	// Slug.
	Slug string

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

DeleteMonitorParams contains all the parameters to send to the API endpoint

for the delete monitor operation.

Typically these are written to a http.Request.

func NewDeleteMonitorParams

func NewDeleteMonitorParams() *DeleteMonitorParams

NewDeleteMonitorParams creates a new DeleteMonitorParams 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 NewDeleteMonitorParamsWithContext

func NewDeleteMonitorParamsWithContext(ctx context.Context) *DeleteMonitorParams

NewDeleteMonitorParamsWithContext creates a new DeleteMonitorParams object with the ability to set a context for a request.

func NewDeleteMonitorParamsWithHTTPClient

func NewDeleteMonitorParamsWithHTTPClient(client *http.Client) *DeleteMonitorParams

NewDeleteMonitorParamsWithHTTPClient creates a new DeleteMonitorParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMonitorParamsWithTimeout

func NewDeleteMonitorParamsWithTimeout(timeout time.Duration) *DeleteMonitorParams

NewDeleteMonitorParamsWithTimeout creates a new DeleteMonitorParams object with the ability to set a timeout on a request.

func (*DeleteMonitorParams) SetContext

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

SetContext adds the context to the delete monitor params

func (*DeleteMonitorParams) SetDefaults

func (o *DeleteMonitorParams) SetDefaults()

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

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

func (*DeleteMonitorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete monitor params

func (*DeleteMonitorParams) SetSlug

func (o *DeleteMonitorParams) SetSlug(slug string)

SetSlug adds the slug to the delete monitor params

func (*DeleteMonitorParams) SetTimeout

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

SetTimeout adds the timeout to the delete monitor params

func (*DeleteMonitorParams) WithContext

WithContext adds the context to the delete monitor params

func (*DeleteMonitorParams) WithDefaults

func (o *DeleteMonitorParams) WithDefaults() *DeleteMonitorParams

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

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

func (*DeleteMonitorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete monitor params

func (*DeleteMonitorParams) WithSlug

func (o *DeleteMonitorParams) WithSlug(slug string) *DeleteMonitorParams

WithSlug adds the slug to the delete monitor params

func (*DeleteMonitorParams) WithTimeout

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

WithTimeout adds the timeout to the delete monitor params

func (*DeleteMonitorParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteMonitorReader

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

DeleteMonitorReader is a Reader for the DeleteMonitor structure.

func (*DeleteMonitorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListMonitorsDefault

type ListMonitorsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewListMonitorsDefault

func NewListMonitorsDefault(code int) *ListMonitorsDefault

NewListMonitorsDefault creates a ListMonitorsDefault with default headers values

func (*ListMonitorsDefault) Code

func (o *ListMonitorsDefault) Code() int

Code gets the status code for the list monitors default response

func (*ListMonitorsDefault) Error

func (o *ListMonitorsDefault) Error() string

func (*ListMonitorsDefault) GetPayload

func (o *ListMonitorsDefault) GetPayload() models.GenericError

func (*ListMonitorsDefault) IsClientError

func (o *ListMonitorsDefault) IsClientError() bool

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

func (*ListMonitorsDefault) IsCode

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

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

func (*ListMonitorsDefault) IsRedirect

func (o *ListMonitorsDefault) IsRedirect() bool

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

func (*ListMonitorsDefault) IsServerError

func (o *ListMonitorsDefault) IsServerError() bool

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

func (*ListMonitorsDefault) IsSuccess

func (o *ListMonitorsDefault) IsSuccess() bool

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

func (*ListMonitorsDefault) String

func (o *ListMonitorsDefault) String() string

type ListMonitorsInternalServerError

type ListMonitorsInternalServerError struct {
	Payload *models.APIError
}

ListMonitorsInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListMonitorsInternalServerError

func NewListMonitorsInternalServerError() *ListMonitorsInternalServerError

NewListMonitorsInternalServerError creates a ListMonitorsInternalServerError with default headers values

func (*ListMonitorsInternalServerError) Code

Code gets the status code for the list monitors internal server error response

func (*ListMonitorsInternalServerError) Error

func (*ListMonitorsInternalServerError) GetPayload

func (*ListMonitorsInternalServerError) IsClientError

func (o *ListMonitorsInternalServerError) IsClientError() bool

IsClientError returns true when this list monitors internal server error response has a 4xx status code

func (*ListMonitorsInternalServerError) IsCode

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

IsCode returns true when this list monitors internal server error response a status code equal to that given

func (*ListMonitorsInternalServerError) IsRedirect

func (o *ListMonitorsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list monitors internal server error response has a 3xx status code

func (*ListMonitorsInternalServerError) IsServerError

func (o *ListMonitorsInternalServerError) IsServerError() bool

IsServerError returns true when this list monitors internal server error response has a 5xx status code

func (*ListMonitorsInternalServerError) IsSuccess

func (o *ListMonitorsInternalServerError) IsSuccess() bool

IsSuccess returns true when this list monitors internal server error response has a 2xx status code

func (*ListMonitorsInternalServerError) String

type ListMonitorsOK

type ListMonitorsOK struct {
	Payload *models.Configv1ListMonitorsResponse
}

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

A successful response.

func NewListMonitorsOK

func NewListMonitorsOK() *ListMonitorsOK

NewListMonitorsOK creates a ListMonitorsOK with default headers values

func (*ListMonitorsOK) Code

func (o *ListMonitorsOK) Code() int

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

func (*ListMonitorsOK) Error

func (o *ListMonitorsOK) Error() string

func (*ListMonitorsOK) GetPayload

func (*ListMonitorsOK) IsClientError

func (o *ListMonitorsOK) IsClientError() bool

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

func (*ListMonitorsOK) IsCode

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

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

func (*ListMonitorsOK) IsRedirect

func (o *ListMonitorsOK) IsRedirect() bool

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

func (*ListMonitorsOK) IsServerError

func (o *ListMonitorsOK) IsServerError() bool

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

func (*ListMonitorsOK) IsSuccess

func (o *ListMonitorsOK) IsSuccess() bool

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

func (*ListMonitorsOK) String

func (o *ListMonitorsOK) String() string

type ListMonitorsParams

type ListMonitorsParams struct {

	/* BucketSlugs.

	   Filters results by bucket_slug, where any Monitor with a matching bucket_slug in the given list (and matches all other filters) is returned.
	*/
	BucketSlugs []string

	/* CollectionSlugs.

	   Filters results by collection_slug, where any Monitor with a matching collection_slug in the given list (and matches all other filters) is returned.
	*/
	CollectionSlugs []string

	/* Names.

	   Filters results by name, where any Monitor with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any Monitor with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	/* TeamSlugs.

	   Filter returned monitors by the teams that own the collections that they belong to.
	*/
	TeamSlugs []string

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

ListMonitorsParams contains all the parameters to send to the API endpoint

for the list monitors operation.

Typically these are written to a http.Request.

func NewListMonitorsParams

func NewListMonitorsParams() *ListMonitorsParams

NewListMonitorsParams creates a new ListMonitorsParams 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 NewListMonitorsParamsWithContext

func NewListMonitorsParamsWithContext(ctx context.Context) *ListMonitorsParams

NewListMonitorsParamsWithContext creates a new ListMonitorsParams object with the ability to set a context for a request.

func NewListMonitorsParamsWithHTTPClient

func NewListMonitorsParamsWithHTTPClient(client *http.Client) *ListMonitorsParams

NewListMonitorsParamsWithHTTPClient creates a new ListMonitorsParams object with the ability to set a custom HTTPClient for a request.

func NewListMonitorsParamsWithTimeout

func NewListMonitorsParamsWithTimeout(timeout time.Duration) *ListMonitorsParams

NewListMonitorsParamsWithTimeout creates a new ListMonitorsParams object with the ability to set a timeout on a request.

func (*ListMonitorsParams) SetBucketSlugs

func (o *ListMonitorsParams) SetBucketSlugs(bucketSlugs []string)

SetBucketSlugs adds the bucketSlugs to the list monitors params

func (*ListMonitorsParams) SetCollectionSlugs

func (o *ListMonitorsParams) SetCollectionSlugs(collectionSlugs []string)

SetCollectionSlugs adds the collectionSlugs to the list monitors params

func (*ListMonitorsParams) SetContext

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

SetContext adds the context to the list monitors params

func (*ListMonitorsParams) SetDefaults

func (o *ListMonitorsParams) SetDefaults()

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

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

func (*ListMonitorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list monitors params

func (*ListMonitorsParams) SetNames

func (o *ListMonitorsParams) SetNames(names []string)

SetNames adds the names to the list monitors params

func (*ListMonitorsParams) SetPageMaxSize

func (o *ListMonitorsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list monitors params

func (*ListMonitorsParams) SetPageToken

func (o *ListMonitorsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list monitors params

func (*ListMonitorsParams) SetSlugs

func (o *ListMonitorsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list monitors params

func (*ListMonitorsParams) SetTeamSlugs

func (o *ListMonitorsParams) SetTeamSlugs(teamSlugs []string)

SetTeamSlugs adds the teamSlugs to the list monitors params

func (*ListMonitorsParams) SetTimeout

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

SetTimeout adds the timeout to the list monitors params

func (*ListMonitorsParams) WithBucketSlugs

func (o *ListMonitorsParams) WithBucketSlugs(bucketSlugs []string) *ListMonitorsParams

WithBucketSlugs adds the bucketSlugs to the list monitors params

func (*ListMonitorsParams) WithCollectionSlugs

func (o *ListMonitorsParams) WithCollectionSlugs(collectionSlugs []string) *ListMonitorsParams

WithCollectionSlugs adds the collectionSlugs to the list monitors params

func (*ListMonitorsParams) WithContext

WithContext adds the context to the list monitors params

func (*ListMonitorsParams) WithDefaults

func (o *ListMonitorsParams) WithDefaults() *ListMonitorsParams

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

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

func (*ListMonitorsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list monitors params

func (*ListMonitorsParams) WithNames

func (o *ListMonitorsParams) WithNames(names []string) *ListMonitorsParams

WithNames adds the names to the list monitors params

func (*ListMonitorsParams) WithPageMaxSize

func (o *ListMonitorsParams) WithPageMaxSize(pageMaxSize *int64) *ListMonitorsParams

WithPageMaxSize adds the pageMaxSize to the list monitors params

func (*ListMonitorsParams) WithPageToken

func (o *ListMonitorsParams) WithPageToken(pageToken *string) *ListMonitorsParams

WithPageToken adds the pageToken to the list monitors params

func (*ListMonitorsParams) WithSlugs

func (o *ListMonitorsParams) WithSlugs(slugs []string) *ListMonitorsParams

WithSlugs adds the slugs to the list monitors params

func (*ListMonitorsParams) WithTeamSlugs

func (o *ListMonitorsParams) WithTeamSlugs(teamSlugs []string) *ListMonitorsParams

WithTeamSlugs adds the teamSlugs to the list monitors params

func (*ListMonitorsParams) WithTimeout

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

WithTimeout adds the timeout to the list monitors params

func (*ListMonitorsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListMonitorsReader

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

ListMonitorsReader is a Reader for the ListMonitors structure.

func (*ListMonitorsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadMonitorDefault

type ReadMonitorDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewReadMonitorDefault

func NewReadMonitorDefault(code int) *ReadMonitorDefault

NewReadMonitorDefault creates a ReadMonitorDefault with default headers values

func (*ReadMonitorDefault) Code

func (o *ReadMonitorDefault) Code() int

Code gets the status code for the read monitor default response

func (*ReadMonitorDefault) Error

func (o *ReadMonitorDefault) Error() string

func (*ReadMonitorDefault) GetPayload

func (o *ReadMonitorDefault) GetPayload() models.GenericError

func (*ReadMonitorDefault) IsClientError

func (o *ReadMonitorDefault) IsClientError() bool

IsClientError returns true when this read monitor default response has a 4xx status code

func (*ReadMonitorDefault) IsCode

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

IsCode returns true when this read monitor default response a status code equal to that given

func (*ReadMonitorDefault) IsRedirect

func (o *ReadMonitorDefault) IsRedirect() bool

IsRedirect returns true when this read monitor default response has a 3xx status code

func (*ReadMonitorDefault) IsServerError

func (o *ReadMonitorDefault) IsServerError() bool

IsServerError returns true when this read monitor default response has a 5xx status code

func (*ReadMonitorDefault) IsSuccess

func (o *ReadMonitorDefault) IsSuccess() bool

IsSuccess returns true when this read monitor default response has a 2xx status code

func (*ReadMonitorDefault) String

func (o *ReadMonitorDefault) String() string

type ReadMonitorInternalServerError

type ReadMonitorInternalServerError struct {
	Payload *models.APIError
}

ReadMonitorInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadMonitorInternalServerError

func NewReadMonitorInternalServerError() *ReadMonitorInternalServerError

NewReadMonitorInternalServerError creates a ReadMonitorInternalServerError with default headers values

func (*ReadMonitorInternalServerError) Code

Code gets the status code for the read monitor internal server error response

func (*ReadMonitorInternalServerError) Error

func (*ReadMonitorInternalServerError) GetPayload

func (*ReadMonitorInternalServerError) IsClientError

func (o *ReadMonitorInternalServerError) IsClientError() bool

IsClientError returns true when this read monitor internal server error response has a 4xx status code

func (*ReadMonitorInternalServerError) IsCode

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

IsCode returns true when this read monitor internal server error response a status code equal to that given

func (*ReadMonitorInternalServerError) IsRedirect

func (o *ReadMonitorInternalServerError) IsRedirect() bool

IsRedirect returns true when this read monitor internal server error response has a 3xx status code

func (*ReadMonitorInternalServerError) IsServerError

func (o *ReadMonitorInternalServerError) IsServerError() bool

IsServerError returns true when this read monitor internal server error response has a 5xx status code

func (*ReadMonitorInternalServerError) IsSuccess

func (o *ReadMonitorInternalServerError) IsSuccess() bool

IsSuccess returns true when this read monitor internal server error response has a 2xx status code

func (*ReadMonitorInternalServerError) String

type ReadMonitorNotFound

type ReadMonitorNotFound struct {
	Payload *models.APIError
}

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

Cannot read the Monitor because the slug does not exist.

func NewReadMonitorNotFound

func NewReadMonitorNotFound() *ReadMonitorNotFound

NewReadMonitorNotFound creates a ReadMonitorNotFound with default headers values

func (*ReadMonitorNotFound) Code

func (o *ReadMonitorNotFound) Code() int

Code gets the status code for the read monitor not found response

func (*ReadMonitorNotFound) Error

func (o *ReadMonitorNotFound) Error() string

func (*ReadMonitorNotFound) GetPayload

func (o *ReadMonitorNotFound) GetPayload() *models.APIError

func (*ReadMonitorNotFound) IsClientError

func (o *ReadMonitorNotFound) IsClientError() bool

IsClientError returns true when this read monitor not found response has a 4xx status code

func (*ReadMonitorNotFound) IsCode

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

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

func (*ReadMonitorNotFound) IsRedirect

func (o *ReadMonitorNotFound) IsRedirect() bool

IsRedirect returns true when this read monitor not found response has a 3xx status code

func (*ReadMonitorNotFound) IsServerError

func (o *ReadMonitorNotFound) IsServerError() bool

IsServerError returns true when this read monitor not found response has a 5xx status code

func (*ReadMonitorNotFound) IsSuccess

func (o *ReadMonitorNotFound) IsSuccess() bool

IsSuccess returns true when this read monitor not found response has a 2xx status code

func (*ReadMonitorNotFound) String

func (o *ReadMonitorNotFound) String() string

type ReadMonitorOK

type ReadMonitorOK struct {
	Payload *models.Configv1ReadMonitorResponse
}

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

A successful response.

func NewReadMonitorOK

func NewReadMonitorOK() *ReadMonitorOK

NewReadMonitorOK creates a ReadMonitorOK with default headers values

func (*ReadMonitorOK) Code

func (o *ReadMonitorOK) Code() int

Code gets the status code for the read monitor o k response

func (*ReadMonitorOK) Error

func (o *ReadMonitorOK) Error() string

func (*ReadMonitorOK) GetPayload

func (*ReadMonitorOK) IsClientError

func (o *ReadMonitorOK) IsClientError() bool

IsClientError returns true when this read monitor o k response has a 4xx status code

func (*ReadMonitorOK) IsCode

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

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

func (*ReadMonitorOK) IsRedirect

func (o *ReadMonitorOK) IsRedirect() bool

IsRedirect returns true when this read monitor o k response has a 3xx status code

func (*ReadMonitorOK) IsServerError

func (o *ReadMonitorOK) IsServerError() bool

IsServerError returns true when this read monitor o k response has a 5xx status code

func (*ReadMonitorOK) IsSuccess

func (o *ReadMonitorOK) IsSuccess() bool

IsSuccess returns true when this read monitor o k response has a 2xx status code

func (*ReadMonitorOK) String

func (o *ReadMonitorOK) String() string

type ReadMonitorParams

type ReadMonitorParams struct {

	// Slug.
	Slug string

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

ReadMonitorParams contains all the parameters to send to the API endpoint

for the read monitor operation.

Typically these are written to a http.Request.

func NewReadMonitorParams

func NewReadMonitorParams() *ReadMonitorParams

NewReadMonitorParams creates a new ReadMonitorParams 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 NewReadMonitorParamsWithContext

func NewReadMonitorParamsWithContext(ctx context.Context) *ReadMonitorParams

NewReadMonitorParamsWithContext creates a new ReadMonitorParams object with the ability to set a context for a request.

func NewReadMonitorParamsWithHTTPClient

func NewReadMonitorParamsWithHTTPClient(client *http.Client) *ReadMonitorParams

NewReadMonitorParamsWithHTTPClient creates a new ReadMonitorParams object with the ability to set a custom HTTPClient for a request.

func NewReadMonitorParamsWithTimeout

func NewReadMonitorParamsWithTimeout(timeout time.Duration) *ReadMonitorParams

NewReadMonitorParamsWithTimeout creates a new ReadMonitorParams object with the ability to set a timeout on a request.

func (*ReadMonitorParams) SetContext

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

SetContext adds the context to the read monitor params

func (*ReadMonitorParams) SetDefaults

func (o *ReadMonitorParams) SetDefaults()

SetDefaults hydrates default values in the read monitor params (not the query body).

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

func (*ReadMonitorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read monitor params

func (*ReadMonitorParams) SetSlug

func (o *ReadMonitorParams) SetSlug(slug string)

SetSlug adds the slug to the read monitor params

func (*ReadMonitorParams) SetTimeout

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

SetTimeout adds the timeout to the read monitor params

func (*ReadMonitorParams) WithContext

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

WithContext adds the context to the read monitor params

func (*ReadMonitorParams) WithDefaults

func (o *ReadMonitorParams) WithDefaults() *ReadMonitorParams

WithDefaults hydrates default values in the read monitor params (not the query body).

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

func (*ReadMonitorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read monitor params

func (*ReadMonitorParams) WithSlug

func (o *ReadMonitorParams) WithSlug(slug string) *ReadMonitorParams

WithSlug adds the slug to the read monitor params

func (*ReadMonitorParams) WithTimeout

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

WithTimeout adds the timeout to the read monitor params

func (*ReadMonitorParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadMonitorReader

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

ReadMonitorReader is a Reader for the ReadMonitor structure.

func (*ReadMonitorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateMonitorBadRequest

type UpdateMonitorBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the Monitor because the request is invalid.

func NewUpdateMonitorBadRequest

func NewUpdateMonitorBadRequest() *UpdateMonitorBadRequest

NewUpdateMonitorBadRequest creates a UpdateMonitorBadRequest with default headers values

func (*UpdateMonitorBadRequest) Code

func (o *UpdateMonitorBadRequest) Code() int

Code gets the status code for the update monitor bad request response

func (*UpdateMonitorBadRequest) Error

func (o *UpdateMonitorBadRequest) Error() string

func (*UpdateMonitorBadRequest) GetPayload

func (o *UpdateMonitorBadRequest) GetPayload() *models.APIError

func (*UpdateMonitorBadRequest) IsClientError

func (o *UpdateMonitorBadRequest) IsClientError() bool

IsClientError returns true when this update monitor bad request response has a 4xx status code

func (*UpdateMonitorBadRequest) IsCode

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

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

func (*UpdateMonitorBadRequest) IsRedirect

func (o *UpdateMonitorBadRequest) IsRedirect() bool

IsRedirect returns true when this update monitor bad request response has a 3xx status code

func (*UpdateMonitorBadRequest) IsServerError

func (o *UpdateMonitorBadRequest) IsServerError() bool

IsServerError returns true when this update monitor bad request response has a 5xx status code

func (*UpdateMonitorBadRequest) IsSuccess

func (o *UpdateMonitorBadRequest) IsSuccess() bool

IsSuccess returns true when this update monitor bad request response has a 2xx status code

func (*UpdateMonitorBadRequest) String

func (o *UpdateMonitorBadRequest) String() string

type UpdateMonitorBody

type UpdateMonitorBody struct {

	// If true, the Monitor will be created if it does not already exist, identified by slug. If false, an error will be returned if the Monitor does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// If true, the Monitor will not be created nor updated, and no response Monitor will be returned. The response will return an error if the given Monitor is invalid.
	DryRun bool `json:"dry_run,omitempty"`

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

UpdateMonitorBody update monitor body swagger:model UpdateMonitorBody

func (*UpdateMonitorBody) ContextValidate

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

ContextValidate validate this update monitor body based on the context it is used

func (*UpdateMonitorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateMonitorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateMonitorBody) Validate

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

Validate validates this update monitor body

type UpdateMonitorConflict

type UpdateMonitorConflict struct {
	Payload *models.APIError
}

UpdateMonitorConflict describes a response with status code 409, with default header values.

Cannot update the Monitor because there is a conflict with an existing Monitor.

func NewUpdateMonitorConflict

func NewUpdateMonitorConflict() *UpdateMonitorConflict

NewUpdateMonitorConflict creates a UpdateMonitorConflict with default headers values

func (*UpdateMonitorConflict) Code

func (o *UpdateMonitorConflict) Code() int

Code gets the status code for the update monitor conflict response

func (*UpdateMonitorConflict) Error

func (o *UpdateMonitorConflict) Error() string

func (*UpdateMonitorConflict) GetPayload

func (o *UpdateMonitorConflict) GetPayload() *models.APIError

func (*UpdateMonitorConflict) IsClientError

func (o *UpdateMonitorConflict) IsClientError() bool

IsClientError returns true when this update monitor conflict response has a 4xx status code

func (*UpdateMonitorConflict) IsCode

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

IsCode returns true when this update monitor conflict response a status code equal to that given

func (*UpdateMonitorConflict) IsRedirect

func (o *UpdateMonitorConflict) IsRedirect() bool

IsRedirect returns true when this update monitor conflict response has a 3xx status code

func (*UpdateMonitorConflict) IsServerError

func (o *UpdateMonitorConflict) IsServerError() bool

IsServerError returns true when this update monitor conflict response has a 5xx status code

func (*UpdateMonitorConflict) IsSuccess

func (o *UpdateMonitorConflict) IsSuccess() bool

IsSuccess returns true when this update monitor conflict response has a 2xx status code

func (*UpdateMonitorConflict) String

func (o *UpdateMonitorConflict) String() string

type UpdateMonitorDefault

type UpdateMonitorDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewUpdateMonitorDefault

func NewUpdateMonitorDefault(code int) *UpdateMonitorDefault

NewUpdateMonitorDefault creates a UpdateMonitorDefault with default headers values

func (*UpdateMonitorDefault) Code

func (o *UpdateMonitorDefault) Code() int

Code gets the status code for the update monitor default response

func (*UpdateMonitorDefault) Error

func (o *UpdateMonitorDefault) Error() string

func (*UpdateMonitorDefault) GetPayload

func (o *UpdateMonitorDefault) GetPayload() models.GenericError

func (*UpdateMonitorDefault) IsClientError

func (o *UpdateMonitorDefault) IsClientError() bool

IsClientError returns true when this update monitor default response has a 4xx status code

func (*UpdateMonitorDefault) IsCode

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

IsCode returns true when this update monitor default response a status code equal to that given

func (*UpdateMonitorDefault) IsRedirect

func (o *UpdateMonitorDefault) IsRedirect() bool

IsRedirect returns true when this update monitor default response has a 3xx status code

func (*UpdateMonitorDefault) IsServerError

func (o *UpdateMonitorDefault) IsServerError() bool

IsServerError returns true when this update monitor default response has a 5xx status code

func (*UpdateMonitorDefault) IsSuccess

func (o *UpdateMonitorDefault) IsSuccess() bool

IsSuccess returns true when this update monitor default response has a 2xx status code

func (*UpdateMonitorDefault) String

func (o *UpdateMonitorDefault) String() string

type UpdateMonitorInternalServerError

type UpdateMonitorInternalServerError struct {
	Payload *models.APIError
}

UpdateMonitorInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateMonitorInternalServerError

func NewUpdateMonitorInternalServerError() *UpdateMonitorInternalServerError

NewUpdateMonitorInternalServerError creates a UpdateMonitorInternalServerError with default headers values

func (*UpdateMonitorInternalServerError) Code

Code gets the status code for the update monitor internal server error response

func (*UpdateMonitorInternalServerError) Error

func (*UpdateMonitorInternalServerError) GetPayload

func (*UpdateMonitorInternalServerError) IsClientError

func (o *UpdateMonitorInternalServerError) IsClientError() bool

IsClientError returns true when this update monitor internal server error response has a 4xx status code

func (*UpdateMonitorInternalServerError) IsCode

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

IsCode returns true when this update monitor internal server error response a status code equal to that given

func (*UpdateMonitorInternalServerError) IsRedirect

func (o *UpdateMonitorInternalServerError) IsRedirect() bool

IsRedirect returns true when this update monitor internal server error response has a 3xx status code

func (*UpdateMonitorInternalServerError) IsServerError

func (o *UpdateMonitorInternalServerError) IsServerError() bool

IsServerError returns true when this update monitor internal server error response has a 5xx status code

func (*UpdateMonitorInternalServerError) IsSuccess

func (o *UpdateMonitorInternalServerError) IsSuccess() bool

IsSuccess returns true when this update monitor internal server error response has a 2xx status code

func (*UpdateMonitorInternalServerError) String

type UpdateMonitorNotFound

type UpdateMonitorNotFound struct {
	Payload *models.APIError
}

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

Cannot update the Monitor because the slug does not exist.

func NewUpdateMonitorNotFound

func NewUpdateMonitorNotFound() *UpdateMonitorNotFound

NewUpdateMonitorNotFound creates a UpdateMonitorNotFound with default headers values

func (*UpdateMonitorNotFound) Code

func (o *UpdateMonitorNotFound) Code() int

Code gets the status code for the update monitor not found response

func (*UpdateMonitorNotFound) Error

func (o *UpdateMonitorNotFound) Error() string

func (*UpdateMonitorNotFound) GetPayload

func (o *UpdateMonitorNotFound) GetPayload() *models.APIError

func (*UpdateMonitorNotFound) IsClientError

func (o *UpdateMonitorNotFound) IsClientError() bool

IsClientError returns true when this update monitor not found response has a 4xx status code

func (*UpdateMonitorNotFound) IsCode

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

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

func (*UpdateMonitorNotFound) IsRedirect

func (o *UpdateMonitorNotFound) IsRedirect() bool

IsRedirect returns true when this update monitor not found response has a 3xx status code

func (*UpdateMonitorNotFound) IsServerError

func (o *UpdateMonitorNotFound) IsServerError() bool

IsServerError returns true when this update monitor not found response has a 5xx status code

func (*UpdateMonitorNotFound) IsSuccess

func (o *UpdateMonitorNotFound) IsSuccess() bool

IsSuccess returns true when this update monitor not found response has a 2xx status code

func (*UpdateMonitorNotFound) String

func (o *UpdateMonitorNotFound) String() string

type UpdateMonitorOK

type UpdateMonitorOK struct {
	Payload *models.Configv1UpdateMonitorResponse
}

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

A successful response containing the updated Monitor.

func NewUpdateMonitorOK

func NewUpdateMonitorOK() *UpdateMonitorOK

NewUpdateMonitorOK creates a UpdateMonitorOK with default headers values

func (*UpdateMonitorOK) Code

func (o *UpdateMonitorOK) Code() int

Code gets the status code for the update monitor o k response

func (*UpdateMonitorOK) Error

func (o *UpdateMonitorOK) Error() string

func (*UpdateMonitorOK) GetPayload

func (*UpdateMonitorOK) IsClientError

func (o *UpdateMonitorOK) IsClientError() bool

IsClientError returns true when this update monitor o k response has a 4xx status code

func (*UpdateMonitorOK) IsCode

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

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

func (*UpdateMonitorOK) IsRedirect

func (o *UpdateMonitorOK) IsRedirect() bool

IsRedirect returns true when this update monitor o k response has a 3xx status code

func (*UpdateMonitorOK) IsServerError

func (o *UpdateMonitorOK) IsServerError() bool

IsServerError returns true when this update monitor o k response has a 5xx status code

func (*UpdateMonitorOK) IsSuccess

func (o *UpdateMonitorOK) IsSuccess() bool

IsSuccess returns true when this update monitor o k response has a 2xx status code

func (*UpdateMonitorOK) String

func (o *UpdateMonitorOK) String() string

type UpdateMonitorParams

type UpdateMonitorParams struct {

	// Body.
	Body UpdateMonitorBody

	// Slug.
	Slug string

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

UpdateMonitorParams contains all the parameters to send to the API endpoint

for the update monitor operation.

Typically these are written to a http.Request.

func NewUpdateMonitorParams

func NewUpdateMonitorParams() *UpdateMonitorParams

NewUpdateMonitorParams creates a new UpdateMonitorParams 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 NewUpdateMonitorParamsWithContext

func NewUpdateMonitorParamsWithContext(ctx context.Context) *UpdateMonitorParams

NewUpdateMonitorParamsWithContext creates a new UpdateMonitorParams object with the ability to set a context for a request.

func NewUpdateMonitorParamsWithHTTPClient

func NewUpdateMonitorParamsWithHTTPClient(client *http.Client) *UpdateMonitorParams

NewUpdateMonitorParamsWithHTTPClient creates a new UpdateMonitorParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateMonitorParamsWithTimeout

func NewUpdateMonitorParamsWithTimeout(timeout time.Duration) *UpdateMonitorParams

NewUpdateMonitorParamsWithTimeout creates a new UpdateMonitorParams object with the ability to set a timeout on a request.

func (*UpdateMonitorParams) SetBody

func (o *UpdateMonitorParams) SetBody(body UpdateMonitorBody)

SetBody adds the body to the update monitor params

func (*UpdateMonitorParams) SetContext

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

SetContext adds the context to the update monitor params

func (*UpdateMonitorParams) SetDefaults

func (o *UpdateMonitorParams) SetDefaults()

SetDefaults hydrates default values in the update monitor params (not the query body).

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

func (*UpdateMonitorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update monitor params

func (*UpdateMonitorParams) SetSlug

func (o *UpdateMonitorParams) SetSlug(slug string)

SetSlug adds the slug to the update monitor params

func (*UpdateMonitorParams) SetTimeout

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

SetTimeout adds the timeout to the update monitor params

func (*UpdateMonitorParams) WithBody

WithBody adds the body to the update monitor params

func (*UpdateMonitorParams) WithContext

WithContext adds the context to the update monitor params

func (*UpdateMonitorParams) WithDefaults

func (o *UpdateMonitorParams) WithDefaults() *UpdateMonitorParams

WithDefaults hydrates default values in the update monitor params (not the query body).

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

func (*UpdateMonitorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update monitor params

func (*UpdateMonitorParams) WithSlug

func (o *UpdateMonitorParams) WithSlug(slug string) *UpdateMonitorParams

WithSlug adds the slug to the update monitor params

func (*UpdateMonitorParams) WithTimeout

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

WithTimeout adds the timeout to the update monitor params

func (*UpdateMonitorParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateMonitorReader

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

UpdateMonitorReader is a Reader for the UpdateMonitor structure.

func (*UpdateMonitorReader) ReadResponse

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