operations

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for operations API

func (*Client) Echo

func (a *Client) Echo(params *EchoParams, opts ...ClientOption) (*EchoOK, error)

Echo echo API

func (*Client) ListMonitorStatuses added in v1.14.0

func (a *Client) ListMonitorStatuses(params *ListMonitorStatusesParams, opts ...ClientOption) (*ListMonitorStatusesOK, error)

ListMonitorStatuses list monitor statuses API

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 {
	Echo(params *EchoParams, opts ...ClientOption) (*EchoOK, error)

	ListMonitorStatuses(params *ListMonitorStatusesParams, opts ...ClientOption) (*ListMonitorStatusesOK, 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 operations API client.

type EchoDefault

type EchoDefault struct {
	Payload *models.APIError
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewEchoDefault

func NewEchoDefault(code int) *EchoDefault

NewEchoDefault creates a EchoDefault with default headers values

func (*EchoDefault) Code

func (o *EchoDefault) Code() int

Code gets the status code for the echo default response

func (*EchoDefault) Error

func (o *EchoDefault) Error() string

func (*EchoDefault) GetPayload

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

func (*EchoDefault) IsClientError

func (o *EchoDefault) IsClientError() bool

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

func (*EchoDefault) IsCode

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

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

func (*EchoDefault) IsRedirect

func (o *EchoDefault) IsRedirect() bool

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

func (*EchoDefault) IsServerError

func (o *EchoDefault) IsServerError() bool

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

func (*EchoDefault) IsSuccess

func (o *EchoDefault) IsSuccess() bool

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

func (*EchoDefault) String

func (o *EchoDefault) String() string

type EchoOK

type EchoOK struct {
	Payload *models.StateunstableEchoResponse
}

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

A successful response.

func NewEchoOK

func NewEchoOK() *EchoOK

NewEchoOK creates a EchoOK with default headers values

func (*EchoOK) Code

func (o *EchoOK) Code() int

Code gets the status code for the echo o k response

func (*EchoOK) Error

func (o *EchoOK) Error() string

func (*EchoOK) GetPayload

func (o *EchoOK) GetPayload() *models.StateunstableEchoResponse

func (*EchoOK) IsClientError

func (o *EchoOK) IsClientError() bool

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

func (*EchoOK) IsCode

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

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

func (*EchoOK) IsRedirect

func (o *EchoOK) IsRedirect() bool

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

func (*EchoOK) IsServerError

func (o *EchoOK) IsServerError() bool

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

func (*EchoOK) IsSuccess

func (o *EchoOK) IsSuccess() bool

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

func (*EchoOK) String

func (o *EchoOK) String() string

type EchoParams

type EchoParams struct {

	// Message.
	Message *string

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

EchoParams contains all the parameters to send to the API endpoint

for the echo operation.

Typically these are written to a http.Request.

func NewEchoParams

func NewEchoParams() *EchoParams

NewEchoParams creates a new EchoParams 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 NewEchoParamsWithContext

func NewEchoParamsWithContext(ctx context.Context) *EchoParams

NewEchoParamsWithContext creates a new EchoParams object with the ability to set a context for a request.

func NewEchoParamsWithHTTPClient

func NewEchoParamsWithHTTPClient(client *http.Client) *EchoParams

NewEchoParamsWithHTTPClient creates a new EchoParams object with the ability to set a custom HTTPClient for a request.

func NewEchoParamsWithTimeout

func NewEchoParamsWithTimeout(timeout time.Duration) *EchoParams

NewEchoParamsWithTimeout creates a new EchoParams object with the ability to set a timeout on a request.

func (*EchoParams) SetContext

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

SetContext adds the context to the echo params

func (*EchoParams) SetDefaults

func (o *EchoParams) SetDefaults()

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

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

func (*EchoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the echo params

func (*EchoParams) SetMessage

func (o *EchoParams) SetMessage(message *string)

SetMessage adds the message to the echo params

func (*EchoParams) SetTimeout

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

SetTimeout adds the timeout to the echo params

func (*EchoParams) WithContext

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

WithContext adds the context to the echo params

func (*EchoParams) WithDefaults

func (o *EchoParams) WithDefaults() *EchoParams

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

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

func (*EchoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the echo params

func (*EchoParams) WithMessage

func (o *EchoParams) WithMessage(message *string) *EchoParams

WithMessage adds the message to the echo params

func (*EchoParams) WithTimeout

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

WithTimeout adds the timeout to the echo params

func (*EchoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EchoReader

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

EchoReader is a Reader for the Echo structure.

func (*EchoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListMonitorStatusesDefault added in v1.14.0

type ListMonitorStatusesDefault struct {
	Payload *models.APIError
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewListMonitorStatusesDefault added in v1.14.0

func NewListMonitorStatusesDefault(code int) *ListMonitorStatusesDefault

NewListMonitorStatusesDefault creates a ListMonitorStatusesDefault with default headers values

func (*ListMonitorStatusesDefault) Code added in v1.14.0

func (o *ListMonitorStatusesDefault) Code() int

Code gets the status code for the list monitor statuses default response

func (*ListMonitorStatusesDefault) Error added in v1.14.0

func (*ListMonitorStatusesDefault) GetPayload added in v1.14.0

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

func (*ListMonitorStatusesDefault) IsClientError added in v1.14.0

func (o *ListMonitorStatusesDefault) IsClientError() bool

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

func (*ListMonitorStatusesDefault) IsCode added in v1.14.0

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

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

func (*ListMonitorStatusesDefault) IsRedirect added in v1.14.0

func (o *ListMonitorStatusesDefault) IsRedirect() bool

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

func (*ListMonitorStatusesDefault) IsServerError added in v1.14.0

func (o *ListMonitorStatusesDefault) IsServerError() bool

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

func (*ListMonitorStatusesDefault) IsSuccess added in v1.14.0

func (o *ListMonitorStatusesDefault) IsSuccess() bool

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

func (*ListMonitorStatusesDefault) String added in v1.14.0

func (o *ListMonitorStatusesDefault) String() string

type ListMonitorStatusesOK added in v1.14.0

type ListMonitorStatusesOK struct {
	Payload *models.StateunstableListMonitorStatusesResponse
}

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

A successful response.

func NewListMonitorStatusesOK added in v1.14.0

func NewListMonitorStatusesOK() *ListMonitorStatusesOK

NewListMonitorStatusesOK creates a ListMonitorStatusesOK with default headers values

func (*ListMonitorStatusesOK) Code added in v1.14.0

func (o *ListMonitorStatusesOK) Code() int

Code gets the status code for the list monitor statuses o k response

func (*ListMonitorStatusesOK) Error added in v1.14.0

func (o *ListMonitorStatusesOK) Error() string

func (*ListMonitorStatusesOK) GetPayload added in v1.14.0

func (*ListMonitorStatusesOK) IsClientError added in v1.14.0

func (o *ListMonitorStatusesOK) IsClientError() bool

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

func (*ListMonitorStatusesOK) IsCode added in v1.14.0

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

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

func (*ListMonitorStatusesOK) IsRedirect added in v1.14.0

func (o *ListMonitorStatusesOK) IsRedirect() bool

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

func (*ListMonitorStatusesOK) IsServerError added in v1.14.0

func (o *ListMonitorStatusesOK) IsServerError() bool

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

func (*ListMonitorStatusesOK) IsSuccess added in v1.14.0

func (o *ListMonitorStatusesOK) IsSuccess() bool

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

func (*ListMonitorStatusesOK) String added in v1.14.0

func (o *ListMonitorStatusesOK) String() string

type ListMonitorStatusesParams added in v1.14.0

type ListMonitorStatusesParams struct {

	/* CollectionSlugs.

	   Filter monitor state by owning collection.
	*/
	CollectionSlugs []string

	/* IncludeSeriesStatuses.

	   include_signal_statuses must be true for include_series_statuses to be true.
	*/
	IncludeSeriesStatuses *bool

	/* IncludeSignalStatuses.

	   include_signal_statuses must be true for include_series_statuses to be true.
	*/
	IncludeSignalStatuses *bool

	/* MonitorSlugs.

	     Filter by monitor slug.
	If all filters are empty, return status for all monitors.
	*/
	MonitorSlugs []string

	// SortBy.
	SortBy *string

	/* TeamSlugs.

	   Filter monitor state by owning team.
	*/
	TeamSlugs []string

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

ListMonitorStatusesParams contains all the parameters to send to the API endpoint

for the list monitor statuses operation.

Typically these are written to a http.Request.

func NewListMonitorStatusesParams added in v1.14.0

func NewListMonitorStatusesParams() *ListMonitorStatusesParams

NewListMonitorStatusesParams creates a new ListMonitorStatusesParams 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 NewListMonitorStatusesParamsWithContext added in v1.14.0

func NewListMonitorStatusesParamsWithContext(ctx context.Context) *ListMonitorStatusesParams

NewListMonitorStatusesParamsWithContext creates a new ListMonitorStatusesParams object with the ability to set a context for a request.

func NewListMonitorStatusesParamsWithHTTPClient added in v1.14.0

func NewListMonitorStatusesParamsWithHTTPClient(client *http.Client) *ListMonitorStatusesParams

NewListMonitorStatusesParamsWithHTTPClient creates a new ListMonitorStatusesParams object with the ability to set a custom HTTPClient for a request.

func NewListMonitorStatusesParamsWithTimeout added in v1.14.0

func NewListMonitorStatusesParamsWithTimeout(timeout time.Duration) *ListMonitorStatusesParams

NewListMonitorStatusesParamsWithTimeout creates a new ListMonitorStatusesParams object with the ability to set a timeout on a request.

func (*ListMonitorStatusesParams) SetCollectionSlugs added in v1.14.0

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

SetCollectionSlugs adds the collectionSlugs to the list monitor statuses params

func (*ListMonitorStatusesParams) SetContext added in v1.14.0

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

SetContext adds the context to the list monitor statuses params

func (*ListMonitorStatusesParams) SetDefaults added in v1.14.0

func (o *ListMonitorStatusesParams) SetDefaults()

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

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

func (*ListMonitorStatusesParams) SetHTTPClient added in v1.14.0

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

SetHTTPClient adds the HTTPClient to the list monitor statuses params

func (*ListMonitorStatusesParams) SetIncludeSeriesStatuses added in v1.14.0

func (o *ListMonitorStatusesParams) SetIncludeSeriesStatuses(includeSeriesStatuses *bool)

SetIncludeSeriesStatuses adds the includeSeriesStatuses to the list monitor statuses params

func (*ListMonitorStatusesParams) SetIncludeSignalStatuses added in v1.14.0

func (o *ListMonitorStatusesParams) SetIncludeSignalStatuses(includeSignalStatuses *bool)

SetIncludeSignalStatuses adds the includeSignalStatuses to the list monitor statuses params

func (*ListMonitorStatusesParams) SetMonitorSlugs added in v1.14.0

func (o *ListMonitorStatusesParams) SetMonitorSlugs(monitorSlugs []string)

SetMonitorSlugs adds the monitorSlugs to the list monitor statuses params

func (*ListMonitorStatusesParams) SetSortBy added in v1.14.0

func (o *ListMonitorStatusesParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the list monitor statuses params

func (*ListMonitorStatusesParams) SetTeamSlugs added in v1.14.0

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

SetTeamSlugs adds the teamSlugs to the list monitor statuses params

func (*ListMonitorStatusesParams) SetTimeout added in v1.14.0

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

SetTimeout adds the timeout to the list monitor statuses params

func (*ListMonitorStatusesParams) WithCollectionSlugs added in v1.14.0

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

WithCollectionSlugs adds the collectionSlugs to the list monitor statuses params

func (*ListMonitorStatusesParams) WithContext added in v1.14.0

WithContext adds the context to the list monitor statuses params

func (*ListMonitorStatusesParams) WithDefaults added in v1.14.0

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

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

func (*ListMonitorStatusesParams) WithHTTPClient added in v1.14.0

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

WithHTTPClient adds the HTTPClient to the list monitor statuses params

func (*ListMonitorStatusesParams) WithIncludeSeriesStatuses added in v1.14.0

func (o *ListMonitorStatusesParams) WithIncludeSeriesStatuses(includeSeriesStatuses *bool) *ListMonitorStatusesParams

WithIncludeSeriesStatuses adds the includeSeriesStatuses to the list monitor statuses params

func (*ListMonitorStatusesParams) WithIncludeSignalStatuses added in v1.14.0

func (o *ListMonitorStatusesParams) WithIncludeSignalStatuses(includeSignalStatuses *bool) *ListMonitorStatusesParams

WithIncludeSignalStatuses adds the includeSignalStatuses to the list monitor statuses params

func (*ListMonitorStatusesParams) WithMonitorSlugs added in v1.14.0

func (o *ListMonitorStatusesParams) WithMonitorSlugs(monitorSlugs []string) *ListMonitorStatusesParams

WithMonitorSlugs adds the monitorSlugs to the list monitor statuses params

func (*ListMonitorStatusesParams) WithSortBy added in v1.14.0

WithSortBy adds the sortBy to the list monitor statuses params

func (*ListMonitorStatusesParams) WithTeamSlugs added in v1.14.0

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

WithTeamSlugs adds the teamSlugs to the list monitor statuses params

func (*ListMonitorStatusesParams) WithTimeout added in v1.14.0

WithTimeout adds the timeout to the list monitor statuses params

func (*ListMonitorStatusesParams) WriteToRequest added in v1.14.0

WriteToRequest writes these params to a swagger request

type ListMonitorStatusesReader added in v1.14.0

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

ListMonitorStatusesReader is a Reader for the ListMonitorStatuses structure.

func (*ListMonitorStatusesReader) ReadResponse added in v1.14.0

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