monitor

package
v0.0.0-...-553ec8c Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 10 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) Process

func (a *Client) Process(params *ProcessParams, opts ...ClientOption) (*ProcessOK, error)

Process thes method is used to process request

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Process(params *ProcessParams, opts ...ClientOption) (*ProcessOK, 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 ProcessBadRequest

type ProcessBadRequest struct {
	Payload *models.ErrorResponse
}

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

Validation error.

func NewProcessBadRequest

func NewProcessBadRequest() *ProcessBadRequest

NewProcessBadRequest creates a ProcessBadRequest with default headers values

func (*ProcessBadRequest) Code

func (o *ProcessBadRequest) Code() int

Code gets the status code for the process bad request response

func (*ProcessBadRequest) Error

func (o *ProcessBadRequest) Error() string

func (*ProcessBadRequest) GetPayload

func (o *ProcessBadRequest) GetPayload() *models.ErrorResponse

func (*ProcessBadRequest) IsClientError

func (o *ProcessBadRequest) IsClientError() bool

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

func (*ProcessBadRequest) IsCode

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

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

func (*ProcessBadRequest) IsRedirect

func (o *ProcessBadRequest) IsRedirect() bool

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

func (*ProcessBadRequest) IsServerError

func (o *ProcessBadRequest) IsServerError() bool

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

func (*ProcessBadRequest) IsSuccess

func (o *ProcessBadRequest) IsSuccess() bool

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

func (*ProcessBadRequest) String

func (o *ProcessBadRequest) String() string

type ProcessForbidden

type ProcessForbidden struct {
	Payload *models.ErrorResponse
}

ProcessForbidden describes a response with status code 403, with default header values.

Forbidden error.

func NewProcessForbidden

func NewProcessForbidden() *ProcessForbidden

NewProcessForbidden creates a ProcessForbidden with default headers values

func (*ProcessForbidden) Code

func (o *ProcessForbidden) Code() int

Code gets the status code for the process forbidden response

func (*ProcessForbidden) Error

func (o *ProcessForbidden) Error() string

func (*ProcessForbidden) GetPayload

func (o *ProcessForbidden) GetPayload() *models.ErrorResponse

func (*ProcessForbidden) IsClientError

func (o *ProcessForbidden) IsClientError() bool

IsClientError returns true when this process forbidden response has a 4xx status code

func (*ProcessForbidden) IsCode

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

IsCode returns true when this process forbidden response a status code equal to that given

func (*ProcessForbidden) IsRedirect

func (o *ProcessForbidden) IsRedirect() bool

IsRedirect returns true when this process forbidden response has a 3xx status code

func (*ProcessForbidden) IsServerError

func (o *ProcessForbidden) IsServerError() bool

IsServerError returns true when this process forbidden response has a 5xx status code

func (*ProcessForbidden) IsSuccess

func (o *ProcessForbidden) IsSuccess() bool

IsSuccess returns true when this process forbidden response has a 2xx status code

func (*ProcessForbidden) String

func (o *ProcessForbidden) String() string

type ProcessInternalServerError

type ProcessInternalServerError struct {
	Payload *models.ErrorResponse
}

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

Internal server error.

func NewProcessInternalServerError

func NewProcessInternalServerError() *ProcessInternalServerError

NewProcessInternalServerError creates a ProcessInternalServerError with default headers values

func (*ProcessInternalServerError) Code

func (o *ProcessInternalServerError) Code() int

Code gets the status code for the process internal server error response

func (*ProcessInternalServerError) Error

func (*ProcessInternalServerError) GetPayload

func (*ProcessInternalServerError) IsClientError

func (o *ProcessInternalServerError) IsClientError() bool

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

func (*ProcessInternalServerError) IsCode

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

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

func (*ProcessInternalServerError) IsRedirect

func (o *ProcessInternalServerError) IsRedirect() bool

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

func (*ProcessInternalServerError) IsServerError

func (o *ProcessInternalServerError) IsServerError() bool

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

func (*ProcessInternalServerError) IsSuccess

func (o *ProcessInternalServerError) IsSuccess() bool

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

func (*ProcessInternalServerError) String

func (o *ProcessInternalServerError) String() string

type ProcessOK

type ProcessOK struct {
	Payload models.ProcessResponse
}

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

Request successfully processed.

func NewProcessOK

func NewProcessOK() *ProcessOK

NewProcessOK creates a ProcessOK with default headers values

func (*ProcessOK) Code

func (o *ProcessOK) Code() int

Code gets the status code for the process o k response

func (*ProcessOK) Error

func (o *ProcessOK) Error() string

func (*ProcessOK) GetPayload

func (o *ProcessOK) GetPayload() models.ProcessResponse

func (*ProcessOK) IsClientError

func (o *ProcessOK) IsClientError() bool

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

func (*ProcessOK) IsCode

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

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

func (*ProcessOK) IsRedirect

func (o *ProcessOK) IsRedirect() bool

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

func (*ProcessOK) IsServerError

func (o *ProcessOK) IsServerError() bool

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

func (*ProcessOK) IsSuccess

func (o *ProcessOK) IsSuccess() bool

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

func (*ProcessOK) String

func (o *ProcessOK) String() string

type ProcessParams

type ProcessParams struct {

	/* Body.

	   Information required to process a request.
	*/
	Body *models.ProcessRequest

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

ProcessParams contains all the parameters to send to the API endpoint

for the process operation.

Typically these are written to a http.Request.

func NewProcessParams

func NewProcessParams() *ProcessParams

NewProcessParams creates a new ProcessParams 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 NewProcessParamsWithContext

func NewProcessParamsWithContext(ctx context.Context) *ProcessParams

NewProcessParamsWithContext creates a new ProcessParams object with the ability to set a context for a request.

func NewProcessParamsWithHTTPClient

func NewProcessParamsWithHTTPClient(client *http.Client) *ProcessParams

NewProcessParamsWithHTTPClient creates a new ProcessParams object with the ability to set a custom HTTPClient for a request.

func NewProcessParamsWithTimeout

func NewProcessParamsWithTimeout(timeout time.Duration) *ProcessParams

NewProcessParamsWithTimeout creates a new ProcessParams object with the ability to set a timeout on a request.

func (*ProcessParams) SetBody

func (o *ProcessParams) SetBody(body *models.ProcessRequest)

SetBody adds the body to the process params

func (*ProcessParams) SetContext

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

SetContext adds the context to the process params

func (*ProcessParams) SetDefaults

func (o *ProcessParams) SetDefaults()

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

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

func (*ProcessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the process params

func (*ProcessParams) SetTimeout

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

SetTimeout adds the timeout to the process params

func (*ProcessParams) WithBody

func (o *ProcessParams) WithBody(body *models.ProcessRequest) *ProcessParams

WithBody adds the body to the process params

func (*ProcessParams) WithContext

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

WithContext adds the context to the process params

func (*ProcessParams) WithDefaults

func (o *ProcessParams) WithDefaults() *ProcessParams

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

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

func (*ProcessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the process params

func (*ProcessParams) WithTimeout

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

WithTimeout adds the timeout to the process params

func (*ProcessParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProcessReader

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

ProcessReader is a Reader for the Process structure.

func (*ProcessReader) ReadResponse

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