Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateMonitor(params *CreateMonitorParams, opts ...ClientOption) (*CreateMonitorOK, error)
- func (a *Client) DeleteMonitor(params *DeleteMonitorParams, opts ...ClientOption) (*DeleteMonitorOK, error)
- func (a *Client) ListMonitors(params *ListMonitorsParams, opts ...ClientOption) (*ListMonitorsOK, error)
- func (a *Client) ReadMonitor(params *ReadMonitorParams, opts ...ClientOption) (*ReadMonitorOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateMonitor(params *UpdateMonitorParams, opts ...ClientOption) (*UpdateMonitorOK, error)
- type ClientOption
- type ClientService
- type CreateMonitorBadRequest
- func (o *CreateMonitorBadRequest) Code() int
- func (o *CreateMonitorBadRequest) Error() string
- func (o *CreateMonitorBadRequest) GetPayload() *models.APIError
- func (o *CreateMonitorBadRequest) IsClientError() bool
- func (o *CreateMonitorBadRequest) IsCode(code int) bool
- func (o *CreateMonitorBadRequest) IsRedirect() bool
- func (o *CreateMonitorBadRequest) IsServerError() bool
- func (o *CreateMonitorBadRequest) IsSuccess() bool
- func (o *CreateMonitorBadRequest) String() string
- type CreateMonitorConflict
- func (o *CreateMonitorConflict) Code() int
- func (o *CreateMonitorConflict) Error() string
- func (o *CreateMonitorConflict) GetPayload() *models.APIError
- func (o *CreateMonitorConflict) IsClientError() bool
- func (o *CreateMonitorConflict) IsCode(code int) bool
- func (o *CreateMonitorConflict) IsRedirect() bool
- func (o *CreateMonitorConflict) IsServerError() bool
- func (o *CreateMonitorConflict) IsSuccess() bool
- func (o *CreateMonitorConflict) String() string
- type CreateMonitorDefault
- func (o *CreateMonitorDefault) Code() int
- func (o *CreateMonitorDefault) Error() string
- func (o *CreateMonitorDefault) GetPayload() models.GenericError
- func (o *CreateMonitorDefault) IsClientError() bool
- func (o *CreateMonitorDefault) IsCode(code int) bool
- func (o *CreateMonitorDefault) IsRedirect() bool
- func (o *CreateMonitorDefault) IsServerError() bool
- func (o *CreateMonitorDefault) IsSuccess() bool
- func (o *CreateMonitorDefault) String() string
- type CreateMonitorInternalServerError
- func (o *CreateMonitorInternalServerError) Code() int
- func (o *CreateMonitorInternalServerError) Error() string
- func (o *CreateMonitorInternalServerError) GetPayload() *models.APIError
- func (o *CreateMonitorInternalServerError) IsClientError() bool
- func (o *CreateMonitorInternalServerError) IsCode(code int) bool
- func (o *CreateMonitorInternalServerError) IsRedirect() bool
- func (o *CreateMonitorInternalServerError) IsServerError() bool
- func (o *CreateMonitorInternalServerError) IsSuccess() bool
- func (o *CreateMonitorInternalServerError) String() string
- type CreateMonitorOK
- func (o *CreateMonitorOK) Code() int
- func (o *CreateMonitorOK) Error() string
- func (o *CreateMonitorOK) GetPayload() *models.Configv1CreateMonitorResponse
- func (o *CreateMonitorOK) IsClientError() bool
- func (o *CreateMonitorOK) IsCode(code int) bool
- func (o *CreateMonitorOK) IsRedirect() bool
- func (o *CreateMonitorOK) IsServerError() bool
- func (o *CreateMonitorOK) IsSuccess() bool
- func (o *CreateMonitorOK) String() string
- type CreateMonitorParams
- func (o *CreateMonitorParams) SetBody(body *models.Configv1CreateMonitorRequest)
- func (o *CreateMonitorParams) SetContext(ctx context.Context)
- func (o *CreateMonitorParams) SetDefaults()
- func (o *CreateMonitorParams) SetHTTPClient(client *http.Client)
- func (o *CreateMonitorParams) SetTimeout(timeout time.Duration)
- func (o *CreateMonitorParams) WithBody(body *models.Configv1CreateMonitorRequest) *CreateMonitorParams
- func (o *CreateMonitorParams) WithContext(ctx context.Context) *CreateMonitorParams
- func (o *CreateMonitorParams) WithDefaults() *CreateMonitorParams
- func (o *CreateMonitorParams) WithHTTPClient(client *http.Client) *CreateMonitorParams
- func (o *CreateMonitorParams) WithTimeout(timeout time.Duration) *CreateMonitorParams
- func (o *CreateMonitorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMonitorReader
- type DeleteMonitorBadRequest
- func (o *DeleteMonitorBadRequest) Code() int
- func (o *DeleteMonitorBadRequest) Error() string
- func (o *DeleteMonitorBadRequest) GetPayload() *models.APIError
- func (o *DeleteMonitorBadRequest) IsClientError() bool
- func (o *DeleteMonitorBadRequest) IsCode(code int) bool
- func (o *DeleteMonitorBadRequest) IsRedirect() bool
- func (o *DeleteMonitorBadRequest) IsServerError() bool
- func (o *DeleteMonitorBadRequest) IsSuccess() bool
- func (o *DeleteMonitorBadRequest) String() string
- type DeleteMonitorDefault
- func (o *DeleteMonitorDefault) Code() int
- func (o *DeleteMonitorDefault) Error() string
- func (o *DeleteMonitorDefault) GetPayload() models.GenericError
- func (o *DeleteMonitorDefault) IsClientError() bool
- func (o *DeleteMonitorDefault) IsCode(code int) bool
- func (o *DeleteMonitorDefault) IsRedirect() bool
- func (o *DeleteMonitorDefault) IsServerError() bool
- func (o *DeleteMonitorDefault) IsSuccess() bool
- func (o *DeleteMonitorDefault) String() string
- type DeleteMonitorInternalServerError
- func (o *DeleteMonitorInternalServerError) Code() int
- func (o *DeleteMonitorInternalServerError) Error() string
- func (o *DeleteMonitorInternalServerError) GetPayload() *models.APIError
- func (o *DeleteMonitorInternalServerError) IsClientError() bool
- func (o *DeleteMonitorInternalServerError) IsCode(code int) bool
- func (o *DeleteMonitorInternalServerError) IsRedirect() bool
- func (o *DeleteMonitorInternalServerError) IsServerError() bool
- func (o *DeleteMonitorInternalServerError) IsSuccess() bool
- func (o *DeleteMonitorInternalServerError) String() string
- type DeleteMonitorNotFound
- func (o *DeleteMonitorNotFound) Code() int
- func (o *DeleteMonitorNotFound) Error() string
- func (o *DeleteMonitorNotFound) GetPayload() *models.APIError
- func (o *DeleteMonitorNotFound) IsClientError() bool
- func (o *DeleteMonitorNotFound) IsCode(code int) bool
- func (o *DeleteMonitorNotFound) IsRedirect() bool
- func (o *DeleteMonitorNotFound) IsServerError() bool
- func (o *DeleteMonitorNotFound) IsSuccess() bool
- func (o *DeleteMonitorNotFound) String() string
- type DeleteMonitorOK
- func (o *DeleteMonitorOK) Code() int
- func (o *DeleteMonitorOK) Error() string
- func (o *DeleteMonitorOK) GetPayload() models.Configv1DeleteMonitorResponse
- func (o *DeleteMonitorOK) IsClientError() bool
- func (o *DeleteMonitorOK) IsCode(code int) bool
- func (o *DeleteMonitorOK) IsRedirect() bool
- func (o *DeleteMonitorOK) IsServerError() bool
- func (o *DeleteMonitorOK) IsSuccess() bool
- func (o *DeleteMonitorOK) String() string
- type DeleteMonitorParams
- func (o *DeleteMonitorParams) SetContext(ctx context.Context)
- func (o *DeleteMonitorParams) SetDefaults()
- func (o *DeleteMonitorParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMonitorParams) SetSlug(slug string)
- func (o *DeleteMonitorParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMonitorParams) WithContext(ctx context.Context) *DeleteMonitorParams
- func (o *DeleteMonitorParams) WithDefaults() *DeleteMonitorParams
- func (o *DeleteMonitorParams) WithHTTPClient(client *http.Client) *DeleteMonitorParams
- func (o *DeleteMonitorParams) WithSlug(slug string) *DeleteMonitorParams
- func (o *DeleteMonitorParams) WithTimeout(timeout time.Duration) *DeleteMonitorParams
- func (o *DeleteMonitorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMonitorReader
- type ListMonitorsDefault
- func (o *ListMonitorsDefault) Code() int
- func (o *ListMonitorsDefault) Error() string
- func (o *ListMonitorsDefault) GetPayload() models.GenericError
- func (o *ListMonitorsDefault) IsClientError() bool
- func (o *ListMonitorsDefault) IsCode(code int) bool
- func (o *ListMonitorsDefault) IsRedirect() bool
- func (o *ListMonitorsDefault) IsServerError() bool
- func (o *ListMonitorsDefault) IsSuccess() bool
- func (o *ListMonitorsDefault) String() string
- type ListMonitorsInternalServerError
- func (o *ListMonitorsInternalServerError) Code() int
- func (o *ListMonitorsInternalServerError) Error() string
- func (o *ListMonitorsInternalServerError) GetPayload() *models.APIError
- func (o *ListMonitorsInternalServerError) IsClientError() bool
- func (o *ListMonitorsInternalServerError) IsCode(code int) bool
- func (o *ListMonitorsInternalServerError) IsRedirect() bool
- func (o *ListMonitorsInternalServerError) IsServerError() bool
- func (o *ListMonitorsInternalServerError) IsSuccess() bool
- func (o *ListMonitorsInternalServerError) String() string
- type ListMonitorsOK
- func (o *ListMonitorsOK) Code() int
- func (o *ListMonitorsOK) Error() string
- func (o *ListMonitorsOK) GetPayload() *models.Configv1ListMonitorsResponse
- func (o *ListMonitorsOK) IsClientError() bool
- func (o *ListMonitorsOK) IsCode(code int) bool
- func (o *ListMonitorsOK) IsRedirect() bool
- func (o *ListMonitorsOK) IsServerError() bool
- func (o *ListMonitorsOK) IsSuccess() bool
- func (o *ListMonitorsOK) String() string
- type ListMonitorsParams
- func (o *ListMonitorsParams) SetBucketSlugs(bucketSlugs []string)
- func (o *ListMonitorsParams) SetCollectionSlugs(collectionSlugs []string)
- func (o *ListMonitorsParams) SetContext(ctx context.Context)
- func (o *ListMonitorsParams) SetDefaults()
- func (o *ListMonitorsParams) SetHTTPClient(client *http.Client)
- func (o *ListMonitorsParams) SetNames(names []string)
- func (o *ListMonitorsParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListMonitorsParams) SetPageToken(pageToken *string)
- func (o *ListMonitorsParams) SetSlugs(slugs []string)
- func (o *ListMonitorsParams) SetTeamSlugs(teamSlugs []string)
- func (o *ListMonitorsParams) SetTimeout(timeout time.Duration)
- func (o *ListMonitorsParams) WithBucketSlugs(bucketSlugs []string) *ListMonitorsParams
- func (o *ListMonitorsParams) WithCollectionSlugs(collectionSlugs []string) *ListMonitorsParams
- func (o *ListMonitorsParams) WithContext(ctx context.Context) *ListMonitorsParams
- func (o *ListMonitorsParams) WithDefaults() *ListMonitorsParams
- func (o *ListMonitorsParams) WithHTTPClient(client *http.Client) *ListMonitorsParams
- func (o *ListMonitorsParams) WithNames(names []string) *ListMonitorsParams
- func (o *ListMonitorsParams) WithPageMaxSize(pageMaxSize *int64) *ListMonitorsParams
- func (o *ListMonitorsParams) WithPageToken(pageToken *string) *ListMonitorsParams
- func (o *ListMonitorsParams) WithSlugs(slugs []string) *ListMonitorsParams
- func (o *ListMonitorsParams) WithTeamSlugs(teamSlugs []string) *ListMonitorsParams
- func (o *ListMonitorsParams) WithTimeout(timeout time.Duration) *ListMonitorsParams
- func (o *ListMonitorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMonitorsReader
- type ReadMonitorDefault
- func (o *ReadMonitorDefault) Code() int
- func (o *ReadMonitorDefault) Error() string
- func (o *ReadMonitorDefault) GetPayload() models.GenericError
- func (o *ReadMonitorDefault) IsClientError() bool
- func (o *ReadMonitorDefault) IsCode(code int) bool
- func (o *ReadMonitorDefault) IsRedirect() bool
- func (o *ReadMonitorDefault) IsServerError() bool
- func (o *ReadMonitorDefault) IsSuccess() bool
- func (o *ReadMonitorDefault) String() string
- type ReadMonitorInternalServerError
- func (o *ReadMonitorInternalServerError) Code() int
- func (o *ReadMonitorInternalServerError) Error() string
- func (o *ReadMonitorInternalServerError) GetPayload() *models.APIError
- func (o *ReadMonitorInternalServerError) IsClientError() bool
- func (o *ReadMonitorInternalServerError) IsCode(code int) bool
- func (o *ReadMonitorInternalServerError) IsRedirect() bool
- func (o *ReadMonitorInternalServerError) IsServerError() bool
- func (o *ReadMonitorInternalServerError) IsSuccess() bool
- func (o *ReadMonitorInternalServerError) String() string
- type ReadMonitorNotFound
- func (o *ReadMonitorNotFound) Code() int
- func (o *ReadMonitorNotFound) Error() string
- func (o *ReadMonitorNotFound) GetPayload() *models.APIError
- func (o *ReadMonitorNotFound) IsClientError() bool
- func (o *ReadMonitorNotFound) IsCode(code int) bool
- func (o *ReadMonitorNotFound) IsRedirect() bool
- func (o *ReadMonitorNotFound) IsServerError() bool
- func (o *ReadMonitorNotFound) IsSuccess() bool
- func (o *ReadMonitorNotFound) String() string
- type ReadMonitorOK
- func (o *ReadMonitorOK) Code() int
- func (o *ReadMonitorOK) Error() string
- func (o *ReadMonitorOK) GetPayload() *models.Configv1ReadMonitorResponse
- func (o *ReadMonitorOK) IsClientError() bool
- func (o *ReadMonitorOK) IsCode(code int) bool
- func (o *ReadMonitorOK) IsRedirect() bool
- func (o *ReadMonitorOK) IsServerError() bool
- func (o *ReadMonitorOK) IsSuccess() bool
- func (o *ReadMonitorOK) String() string
- type ReadMonitorParams
- func (o *ReadMonitorParams) SetContext(ctx context.Context)
- func (o *ReadMonitorParams) SetDefaults()
- func (o *ReadMonitorParams) SetHTTPClient(client *http.Client)
- func (o *ReadMonitorParams) SetSlug(slug string)
- func (o *ReadMonitorParams) SetTimeout(timeout time.Duration)
- func (o *ReadMonitorParams) WithContext(ctx context.Context) *ReadMonitorParams
- func (o *ReadMonitorParams) WithDefaults() *ReadMonitorParams
- func (o *ReadMonitorParams) WithHTTPClient(client *http.Client) *ReadMonitorParams
- func (o *ReadMonitorParams) WithSlug(slug string) *ReadMonitorParams
- func (o *ReadMonitorParams) WithTimeout(timeout time.Duration) *ReadMonitorParams
- func (o *ReadMonitorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadMonitorReader
- type UpdateMonitorBadRequest
- func (o *UpdateMonitorBadRequest) Code() int
- func (o *UpdateMonitorBadRequest) Error() string
- func (o *UpdateMonitorBadRequest) GetPayload() *models.APIError
- func (o *UpdateMonitorBadRequest) IsClientError() bool
- func (o *UpdateMonitorBadRequest) IsCode(code int) bool
- func (o *UpdateMonitorBadRequest) IsRedirect() bool
- func (o *UpdateMonitorBadRequest) IsServerError() bool
- func (o *UpdateMonitorBadRequest) IsSuccess() bool
- func (o *UpdateMonitorBadRequest) String() string
- type UpdateMonitorConflict
- func (o *UpdateMonitorConflict) Code() int
- func (o *UpdateMonitorConflict) Error() string
- func (o *UpdateMonitorConflict) GetPayload() *models.APIError
- func (o *UpdateMonitorConflict) IsClientError() bool
- func (o *UpdateMonitorConflict) IsCode(code int) bool
- func (o *UpdateMonitorConflict) IsRedirect() bool
- func (o *UpdateMonitorConflict) IsServerError() bool
- func (o *UpdateMonitorConflict) IsSuccess() bool
- func (o *UpdateMonitorConflict) String() string
- type UpdateMonitorDefault
- func (o *UpdateMonitorDefault) Code() int
- func (o *UpdateMonitorDefault) Error() string
- func (o *UpdateMonitorDefault) GetPayload() models.GenericError
- func (o *UpdateMonitorDefault) IsClientError() bool
- func (o *UpdateMonitorDefault) IsCode(code int) bool
- func (o *UpdateMonitorDefault) IsRedirect() bool
- func (o *UpdateMonitorDefault) IsServerError() bool
- func (o *UpdateMonitorDefault) IsSuccess() bool
- func (o *UpdateMonitorDefault) String() string
- type UpdateMonitorInternalServerError
- func (o *UpdateMonitorInternalServerError) Code() int
- func (o *UpdateMonitorInternalServerError) Error() string
- func (o *UpdateMonitorInternalServerError) GetPayload() *models.APIError
- func (o *UpdateMonitorInternalServerError) IsClientError() bool
- func (o *UpdateMonitorInternalServerError) IsCode(code int) bool
- func (o *UpdateMonitorInternalServerError) IsRedirect() bool
- func (o *UpdateMonitorInternalServerError) IsServerError() bool
- func (o *UpdateMonitorInternalServerError) IsSuccess() bool
- func (o *UpdateMonitorInternalServerError) String() string
- type UpdateMonitorNotFound
- func (o *UpdateMonitorNotFound) Code() int
- func (o *UpdateMonitorNotFound) Error() string
- func (o *UpdateMonitorNotFound) GetPayload() *models.APIError
- func (o *UpdateMonitorNotFound) IsClientError() bool
- func (o *UpdateMonitorNotFound) IsCode(code int) bool
- func (o *UpdateMonitorNotFound) IsRedirect() bool
- func (o *UpdateMonitorNotFound) IsServerError() bool
- func (o *UpdateMonitorNotFound) IsSuccess() bool
- func (o *UpdateMonitorNotFound) String() string
- type UpdateMonitorOK
- func (o *UpdateMonitorOK) Code() int
- func (o *UpdateMonitorOK) Error() string
- func (o *UpdateMonitorOK) GetPayload() *models.Configv1UpdateMonitorResponse
- func (o *UpdateMonitorOK) IsClientError() bool
- func (o *UpdateMonitorOK) IsCode(code int) bool
- func (o *UpdateMonitorOK) IsRedirect() bool
- func (o *UpdateMonitorOK) IsServerError() bool
- func (o *UpdateMonitorOK) IsSuccess() bool
- func (o *UpdateMonitorOK) String() string
- type UpdateMonitorParams
- func (o *UpdateMonitorParams) SetBody(body *models.ConfigV1UpdateMonitorBody)
- func (o *UpdateMonitorParams) SetContext(ctx context.Context)
- func (o *UpdateMonitorParams) SetDefaults()
- func (o *UpdateMonitorParams) SetHTTPClient(client *http.Client)
- func (o *UpdateMonitorParams) SetSlug(slug string)
- func (o *UpdateMonitorParams) SetTimeout(timeout time.Duration)
- func (o *UpdateMonitorParams) WithBody(body *models.ConfigV1UpdateMonitorBody) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithContext(ctx context.Context) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithDefaults() *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithHTTPClient(client *http.Client) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithSlug(slug string) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithTimeout(timeout time.Duration) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateMonitorReader
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 ¶
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 ¶
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 ¶
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 ¶
func (o *CreateMonitorInternalServerError) Code() int
Code gets the status code for the create monitor internal server error response
func (*CreateMonitorInternalServerError) Error ¶
func (o *CreateMonitorInternalServerError) Error() string
func (*CreateMonitorInternalServerError) GetPayload ¶
func (o *CreateMonitorInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *CreateMonitorInternalServerError) String() 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 (o *CreateMonitorOK) GetPayload() *models.Configv1CreateMonitorResponse
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 ¶
func (o *CreateMonitorParams) SetBody(body *models.Configv1CreateMonitorRequest)
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 ¶
func (o *CreateMonitorParams) WithBody(body *models.Configv1CreateMonitorRequest) *CreateMonitorParams
WithBody adds the body to the create monitor params
func (*CreateMonitorParams) WithContext ¶
func (o *CreateMonitorParams) WithContext(ctx context.Context) *CreateMonitorParams
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 ¶
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 ¶
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 ¶
func (o *DeleteMonitorInternalServerError) Code() int
Code gets the status code for the delete monitor internal server error response
func (*DeleteMonitorInternalServerError) Error ¶
func (o *DeleteMonitorInternalServerError) Error() string
func (*DeleteMonitorInternalServerError) GetPayload ¶
func (o *DeleteMonitorInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *DeleteMonitorInternalServerError) String() string
type DeleteMonitorNotFound ¶
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 (o *DeleteMonitorOK) GetPayload() models.Configv1DeleteMonitorResponse
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 ¶
func (o *DeleteMonitorParams) WithContext(ctx context.Context) *DeleteMonitorParams
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 ¶
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 ¶
func (o *ListMonitorsInternalServerError) Code() int
Code gets the status code for the list monitors internal server error response
func (*ListMonitorsInternalServerError) Error ¶
func (o *ListMonitorsInternalServerError) Error() string
func (*ListMonitorsInternalServerError) GetPayload ¶
func (o *ListMonitorsInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ListMonitorsInternalServerError) String() 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 (o *ListMonitorsOK) GetPayload() *models.Configv1ListMonitorsResponse
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 ¶
func (o *ListMonitorsParams) WithContext(ctx context.Context) *ListMonitorsParams
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 ¶
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 ¶
func (o *ReadMonitorInternalServerError) Code() int
Code gets the status code for the read monitor internal server error response
func (*ReadMonitorInternalServerError) Error ¶
func (o *ReadMonitorInternalServerError) Error() string
func (*ReadMonitorInternalServerError) GetPayload ¶
func (o *ReadMonitorInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ReadMonitorInternalServerError) String() string
type ReadMonitorNotFound ¶
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 (o *ReadMonitorOK) GetPayload() *models.Configv1ReadMonitorResponse
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 ¶
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 UpdateMonitorConflict ¶
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 ¶
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 ¶
func (o *UpdateMonitorInternalServerError) Code() int
Code gets the status code for the update monitor internal server error response
func (*UpdateMonitorInternalServerError) Error ¶
func (o *UpdateMonitorInternalServerError) Error() string
func (*UpdateMonitorInternalServerError) GetPayload ¶
func (o *UpdateMonitorInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *UpdateMonitorInternalServerError) String() string
type UpdateMonitorNotFound ¶
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 (o *UpdateMonitorOK) GetPayload() *models.Configv1UpdateMonitorResponse
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 *models.ConfigV1UpdateMonitorBody // 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 *models.ConfigV1UpdateMonitorBody)
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 ¶
func (o *UpdateMonitorParams) WithBody(body *models.ConfigV1UpdateMonitorBody) *UpdateMonitorParams
WithBody adds the body to the update monitor params
func (*UpdateMonitorParams) WithContext ¶
func (o *UpdateMonitorParams) WithContext(ctx context.Context) *UpdateMonitorParams
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.