monitoring

package
v0.0.0-...-3e15a49 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 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 monitoring API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnsecuredPing

func (a *Client) UnsecuredPing(params *UnsecuredPingParams, opts ...ClientOption) (*UnsecuredPingOK, error)

UnsecuredPing checks API health and retrieves ping result

checks API health and retrieves ping result

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	UnsecuredPing(params *UnsecuredPingParams, opts ...ClientOption) (*UnsecuredPingOK, 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 monitoring API client.

type UnsecuredPingDefault

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

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

default error response

func NewUnsecuredPingDefault

func NewUnsecuredPingDefault(code int) *UnsecuredPingDefault

NewUnsecuredPingDefault creates a UnsecuredPingDefault with default headers values

func (*UnsecuredPingDefault) Code

func (o *UnsecuredPingDefault) Code() int

Code gets the status code for the unsecured ping default response

func (*UnsecuredPingDefault) Error

func (o *UnsecuredPingDefault) Error() string

func (*UnsecuredPingDefault) GetPayload

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

func (*UnsecuredPingDefault) IsClientError

func (o *UnsecuredPingDefault) IsClientError() bool

IsClientError returns true when this unsecured ping default response has a 4xx status code

func (*UnsecuredPingDefault) IsCode

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

IsCode returns true when this unsecured ping default response a status code equal to that given

func (*UnsecuredPingDefault) IsRedirect

func (o *UnsecuredPingDefault) IsRedirect() bool

IsRedirect returns true when this unsecured ping default response has a 3xx status code

func (*UnsecuredPingDefault) IsServerError

func (o *UnsecuredPingDefault) IsServerError() bool

IsServerError returns true when this unsecured ping default response has a 5xx status code

func (*UnsecuredPingDefault) IsSuccess

func (o *UnsecuredPingDefault) IsSuccess() bool

IsSuccess returns true when this unsecured ping default response has a 2xx status code

func (*UnsecuredPingDefault) String

func (o *UnsecuredPingDefault) String() string

type UnsecuredPingOK

type UnsecuredPingOK struct {
	Payload *models.UnsecuredPing
}

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

success response returning ping results

func NewUnsecuredPingOK

func NewUnsecuredPingOK() *UnsecuredPingOK

NewUnsecuredPingOK creates a UnsecuredPingOK with default headers values

func (*UnsecuredPingOK) Code

func (o *UnsecuredPingOK) Code() int

Code gets the status code for the unsecured ping o k response

func (*UnsecuredPingOK) Error

func (o *UnsecuredPingOK) Error() string

func (*UnsecuredPingOK) GetPayload

func (o *UnsecuredPingOK) GetPayload() *models.UnsecuredPing

func (*UnsecuredPingOK) IsClientError

func (o *UnsecuredPingOK) IsClientError() bool

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

func (*UnsecuredPingOK) IsCode

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

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

func (*UnsecuredPingOK) IsRedirect

func (o *UnsecuredPingOK) IsRedirect() bool

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

func (*UnsecuredPingOK) IsServerError

func (o *UnsecuredPingOK) IsServerError() bool

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

func (*UnsecuredPingOK) IsSuccess

func (o *UnsecuredPingOK) IsSuccess() bool

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

func (*UnsecuredPingOK) String

func (o *UnsecuredPingOK) String() string

type UnsecuredPingParams

type UnsecuredPingParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UnsecuredPingParams contains all the parameters to send to the API endpoint

for the unsecured ping operation.

Typically these are written to a http.Request.

func NewUnsecuredPingParams

func NewUnsecuredPingParams() *UnsecuredPingParams

NewUnsecuredPingParams creates a new UnsecuredPingParams 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 NewUnsecuredPingParamsWithContext

func NewUnsecuredPingParamsWithContext(ctx context.Context) *UnsecuredPingParams

NewUnsecuredPingParamsWithContext creates a new UnsecuredPingParams object with the ability to set a context for a request.

func NewUnsecuredPingParamsWithHTTPClient

func NewUnsecuredPingParamsWithHTTPClient(client *http.Client) *UnsecuredPingParams

NewUnsecuredPingParamsWithHTTPClient creates a new UnsecuredPingParams object with the ability to set a custom HTTPClient for a request.

func NewUnsecuredPingParamsWithTimeout

func NewUnsecuredPingParamsWithTimeout(timeout time.Duration) *UnsecuredPingParams

NewUnsecuredPingParamsWithTimeout creates a new UnsecuredPingParams object with the ability to set a timeout on a request.

func (*UnsecuredPingParams) SetContext

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

SetContext adds the context to the unsecured ping params

func (*UnsecuredPingParams) SetDefaults

func (o *UnsecuredPingParams) SetDefaults()

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

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

func (*UnsecuredPingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unsecured ping params

func (*UnsecuredPingParams) SetTimeout

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

SetTimeout adds the timeout to the unsecured ping params

func (*UnsecuredPingParams) WithContext

WithContext adds the context to the unsecured ping params

func (*UnsecuredPingParams) WithDefaults

func (o *UnsecuredPingParams) WithDefaults() *UnsecuredPingParams

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

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

func (*UnsecuredPingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unsecured ping params

func (*UnsecuredPingParams) WithTimeout

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

WithTimeout adds the timeout to the unsecured ping params

func (*UnsecuredPingParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnsecuredPingReader

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

UnsecuredPingReader is a Reader for the UnsecuredPing structure.

func (*UnsecuredPingReader) ReadResponse

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