correlations

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 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 correlations API

func (*Client) CreateCorrelation

func (a *Client) CreateCorrelation(params *CreateCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCorrelationOK, error)

CreateCorrelation adds correlation

func (*Client) DeleteCorrelation

func (a *Client) DeleteCorrelation(params *DeleteCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCorrelationOK, error)

DeleteCorrelation deletes a correlation

func (*Client) GetCorrelation

func (a *Client) GetCorrelation(params *GetCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCorrelationOK, error)

GetCorrelation gets a correlation

func (*Client) GetCorrelations

func (a *Client) GetCorrelations(params *GetCorrelationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCorrelationsOK, error)

GetCorrelations gets all correlations

func (*Client) GetCorrelationsBySourceUID

func (a *Client) GetCorrelationsBySourceUID(params *GetCorrelationsBySourceUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCorrelationsBySourceUIDOK, error)

GetCorrelationsBySourceUID gets all correlations originating from the given data source

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCorrelation

func (a *Client) UpdateCorrelation(params *UpdateCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCorrelationOK, error)

UpdateCorrelation updates a correlation

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateCorrelation(params *CreateCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCorrelationOK, error)

	DeleteCorrelation(params *DeleteCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCorrelationOK, error)

	GetCorrelation(params *GetCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCorrelationOK, error)

	GetCorrelations(params *GetCorrelationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCorrelationsOK, error)

	GetCorrelationsBySourceUID(params *GetCorrelationsBySourceUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCorrelationsBySourceUIDOK, error)

	UpdateCorrelation(params *UpdateCorrelationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCorrelationOK, 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 correlations API client.

type CreateCorrelationBadRequest

type CreateCorrelationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewCreateCorrelationBadRequest

func NewCreateCorrelationBadRequest() *CreateCorrelationBadRequest

NewCreateCorrelationBadRequest creates a CreateCorrelationBadRequest with default headers values

func (*CreateCorrelationBadRequest) Error

func (*CreateCorrelationBadRequest) GetPayload

type CreateCorrelationForbidden

type CreateCorrelationForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewCreateCorrelationForbidden

func NewCreateCorrelationForbidden() *CreateCorrelationForbidden

NewCreateCorrelationForbidden creates a CreateCorrelationForbidden with default headers values

func (*CreateCorrelationForbidden) Error

func (*CreateCorrelationForbidden) GetPayload

type CreateCorrelationInternalServerError

type CreateCorrelationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewCreateCorrelationInternalServerError

func NewCreateCorrelationInternalServerError() *CreateCorrelationInternalServerError

NewCreateCorrelationInternalServerError creates a CreateCorrelationInternalServerError with default headers values

func (*CreateCorrelationInternalServerError) Error

func (*CreateCorrelationInternalServerError) GetPayload

type CreateCorrelationNotFound

type CreateCorrelationNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewCreateCorrelationNotFound

func NewCreateCorrelationNotFound() *CreateCorrelationNotFound

NewCreateCorrelationNotFound creates a CreateCorrelationNotFound with default headers values

func (*CreateCorrelationNotFound) Error

func (o *CreateCorrelationNotFound) Error() string

func (*CreateCorrelationNotFound) GetPayload

type CreateCorrelationOK

type CreateCorrelationOK struct {
	Payload *models.CreateCorrelationResponseBody
}

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

(empty)

func NewCreateCorrelationOK

func NewCreateCorrelationOK() *CreateCorrelationOK

NewCreateCorrelationOK creates a CreateCorrelationOK with default headers values

func (*CreateCorrelationOK) Error

func (o *CreateCorrelationOK) Error() string

func (*CreateCorrelationOK) GetPayload

type CreateCorrelationParams

type CreateCorrelationParams struct {

	// Body.
	Body *models.CreateCorrelationCommand

	// SourceUID.
	SourceUID string

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

CreateCorrelationParams contains all the parameters to send to the API endpoint

for the create correlation operation.

Typically these are written to a http.Request.

func NewCreateCorrelationParams

func NewCreateCorrelationParams() *CreateCorrelationParams

NewCreateCorrelationParams creates a new CreateCorrelationParams 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 NewCreateCorrelationParamsWithContext

func NewCreateCorrelationParamsWithContext(ctx context.Context) *CreateCorrelationParams

NewCreateCorrelationParamsWithContext creates a new CreateCorrelationParams object with the ability to set a context for a request.

func NewCreateCorrelationParamsWithHTTPClient

func NewCreateCorrelationParamsWithHTTPClient(client *http.Client) *CreateCorrelationParams

NewCreateCorrelationParamsWithHTTPClient creates a new CreateCorrelationParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCorrelationParamsWithTimeout

func NewCreateCorrelationParamsWithTimeout(timeout time.Duration) *CreateCorrelationParams

NewCreateCorrelationParamsWithTimeout creates a new CreateCorrelationParams object with the ability to set a timeout on a request.

func (*CreateCorrelationParams) SetBody

SetBody adds the body to the create correlation params

func (*CreateCorrelationParams) SetContext

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

SetContext adds the context to the create correlation params

func (*CreateCorrelationParams) SetDefaults

func (o *CreateCorrelationParams) SetDefaults()

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

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

func (*CreateCorrelationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create correlation params

func (*CreateCorrelationParams) SetSourceUID

func (o *CreateCorrelationParams) SetSourceUID(sourceUID string)

SetSourceUID adds the sourceUid to the create correlation params

func (*CreateCorrelationParams) SetTimeout

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

SetTimeout adds the timeout to the create correlation params

func (*CreateCorrelationParams) WithBody

WithBody adds the body to the create correlation params

func (*CreateCorrelationParams) WithContext

WithContext adds the context to the create correlation params

func (*CreateCorrelationParams) WithDefaults

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

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

func (*CreateCorrelationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create correlation params

func (*CreateCorrelationParams) WithSourceUID

func (o *CreateCorrelationParams) WithSourceUID(sourceUID string) *CreateCorrelationParams

WithSourceUID adds the sourceUID to the create correlation params

func (*CreateCorrelationParams) WithTimeout

WithTimeout adds the timeout to the create correlation params

func (*CreateCorrelationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateCorrelationReader

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

CreateCorrelationReader is a Reader for the CreateCorrelation structure.

func (*CreateCorrelationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateCorrelationUnauthorized

type CreateCorrelationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

CreateCorrelationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewCreateCorrelationUnauthorized

func NewCreateCorrelationUnauthorized() *CreateCorrelationUnauthorized

NewCreateCorrelationUnauthorized creates a CreateCorrelationUnauthorized with default headers values

func (*CreateCorrelationUnauthorized) Error

func (*CreateCorrelationUnauthorized) GetPayload

type DeleteCorrelationForbidden

type DeleteCorrelationForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewDeleteCorrelationForbidden

func NewDeleteCorrelationForbidden() *DeleteCorrelationForbidden

NewDeleteCorrelationForbidden creates a DeleteCorrelationForbidden with default headers values

func (*DeleteCorrelationForbidden) Error

func (*DeleteCorrelationForbidden) GetPayload

type DeleteCorrelationInternalServerError

type DeleteCorrelationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteCorrelationInternalServerError

func NewDeleteCorrelationInternalServerError() *DeleteCorrelationInternalServerError

NewDeleteCorrelationInternalServerError creates a DeleteCorrelationInternalServerError with default headers values

func (*DeleteCorrelationInternalServerError) Error

func (*DeleteCorrelationInternalServerError) GetPayload

type DeleteCorrelationNotFound

type DeleteCorrelationNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewDeleteCorrelationNotFound

func NewDeleteCorrelationNotFound() *DeleteCorrelationNotFound

NewDeleteCorrelationNotFound creates a DeleteCorrelationNotFound with default headers values

func (*DeleteCorrelationNotFound) Error

func (o *DeleteCorrelationNotFound) Error() string

func (*DeleteCorrelationNotFound) GetPayload

type DeleteCorrelationOK

type DeleteCorrelationOK struct {
	Payload *models.DeleteCorrelationResponseBody
}

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

(empty)

func NewDeleteCorrelationOK

func NewDeleteCorrelationOK() *DeleteCorrelationOK

NewDeleteCorrelationOK creates a DeleteCorrelationOK with default headers values

func (*DeleteCorrelationOK) Error

func (o *DeleteCorrelationOK) Error() string

func (*DeleteCorrelationOK) GetPayload

type DeleteCorrelationParams

type DeleteCorrelationParams struct {

	// CorrelationUID.
	CorrelationUID string

	// UID.
	UID string

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

DeleteCorrelationParams contains all the parameters to send to the API endpoint

for the delete correlation operation.

Typically these are written to a http.Request.

func NewDeleteCorrelationParams

func NewDeleteCorrelationParams() *DeleteCorrelationParams

NewDeleteCorrelationParams creates a new DeleteCorrelationParams 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 NewDeleteCorrelationParamsWithContext

func NewDeleteCorrelationParamsWithContext(ctx context.Context) *DeleteCorrelationParams

NewDeleteCorrelationParamsWithContext creates a new DeleteCorrelationParams object with the ability to set a context for a request.

func NewDeleteCorrelationParamsWithHTTPClient

func NewDeleteCorrelationParamsWithHTTPClient(client *http.Client) *DeleteCorrelationParams

NewDeleteCorrelationParamsWithHTTPClient creates a new DeleteCorrelationParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCorrelationParamsWithTimeout

func NewDeleteCorrelationParamsWithTimeout(timeout time.Duration) *DeleteCorrelationParams

NewDeleteCorrelationParamsWithTimeout creates a new DeleteCorrelationParams object with the ability to set a timeout on a request.

func (*DeleteCorrelationParams) SetContext

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

SetContext adds the context to the delete correlation params

func (*DeleteCorrelationParams) SetCorrelationUID

func (o *DeleteCorrelationParams) SetCorrelationUID(correlationUID string)

SetCorrelationUID adds the correlationUid to the delete correlation params

func (*DeleteCorrelationParams) SetDefaults

func (o *DeleteCorrelationParams) SetDefaults()

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

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

func (*DeleteCorrelationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete correlation params

func (*DeleteCorrelationParams) SetTimeout

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

SetTimeout adds the timeout to the delete correlation params

func (*DeleteCorrelationParams) SetUID

func (o *DeleteCorrelationParams) SetUID(uid string)

SetUID adds the uid to the delete correlation params

func (*DeleteCorrelationParams) WithContext

WithContext adds the context to the delete correlation params

func (*DeleteCorrelationParams) WithCorrelationUID

func (o *DeleteCorrelationParams) WithCorrelationUID(correlationUID string) *DeleteCorrelationParams

WithCorrelationUID adds the correlationUID to the delete correlation params

func (*DeleteCorrelationParams) WithDefaults

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

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

func (*DeleteCorrelationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete correlation params

func (*DeleteCorrelationParams) WithTimeout

WithTimeout adds the timeout to the delete correlation params

func (*DeleteCorrelationParams) WithUID

WithUID adds the uid to the delete correlation params

func (*DeleteCorrelationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCorrelationReader

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

DeleteCorrelationReader is a Reader for the DeleteCorrelation structure.

func (*DeleteCorrelationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCorrelationUnauthorized

type DeleteCorrelationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

DeleteCorrelationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteCorrelationUnauthorized

func NewDeleteCorrelationUnauthorized() *DeleteCorrelationUnauthorized

NewDeleteCorrelationUnauthorized creates a DeleteCorrelationUnauthorized with default headers values

func (*DeleteCorrelationUnauthorized) Error

func (*DeleteCorrelationUnauthorized) GetPayload

type GetCorrelationInternalServerError

type GetCorrelationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetCorrelationInternalServerError

func NewGetCorrelationInternalServerError() *GetCorrelationInternalServerError

NewGetCorrelationInternalServerError creates a GetCorrelationInternalServerError with default headers values

func (*GetCorrelationInternalServerError) Error

func (*GetCorrelationInternalServerError) GetPayload

type GetCorrelationNotFound

type GetCorrelationNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetCorrelationNotFound

func NewGetCorrelationNotFound() *GetCorrelationNotFound

NewGetCorrelationNotFound creates a GetCorrelationNotFound with default headers values

func (*GetCorrelationNotFound) Error

func (o *GetCorrelationNotFound) Error() string

func (*GetCorrelationNotFound) GetPayload

type GetCorrelationOK

type GetCorrelationOK struct {
	Payload *models.Correlation
}

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

(empty)

func NewGetCorrelationOK

func NewGetCorrelationOK() *GetCorrelationOK

NewGetCorrelationOK creates a GetCorrelationOK with default headers values

func (*GetCorrelationOK) Error

func (o *GetCorrelationOK) Error() string

func (*GetCorrelationOK) GetPayload

func (o *GetCorrelationOK) GetPayload() *models.Correlation

type GetCorrelationParams

type GetCorrelationParams struct {

	// CorrelationUID.
	CorrelationUID string

	// SourceUID.
	SourceUID string

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

GetCorrelationParams contains all the parameters to send to the API endpoint

for the get correlation operation.

Typically these are written to a http.Request.

func NewGetCorrelationParams

func NewGetCorrelationParams() *GetCorrelationParams

NewGetCorrelationParams creates a new GetCorrelationParams 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 NewGetCorrelationParamsWithContext

func NewGetCorrelationParamsWithContext(ctx context.Context) *GetCorrelationParams

NewGetCorrelationParamsWithContext creates a new GetCorrelationParams object with the ability to set a context for a request.

func NewGetCorrelationParamsWithHTTPClient

func NewGetCorrelationParamsWithHTTPClient(client *http.Client) *GetCorrelationParams

NewGetCorrelationParamsWithHTTPClient creates a new GetCorrelationParams object with the ability to set a custom HTTPClient for a request.

func NewGetCorrelationParamsWithTimeout

func NewGetCorrelationParamsWithTimeout(timeout time.Duration) *GetCorrelationParams

NewGetCorrelationParamsWithTimeout creates a new GetCorrelationParams object with the ability to set a timeout on a request.

func (*GetCorrelationParams) SetContext

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

SetContext adds the context to the get correlation params

func (*GetCorrelationParams) SetCorrelationUID

func (o *GetCorrelationParams) SetCorrelationUID(correlationUID string)

SetCorrelationUID adds the correlationUid to the get correlation params

func (*GetCorrelationParams) SetDefaults

func (o *GetCorrelationParams) SetDefaults()

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

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

func (*GetCorrelationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get correlation params

func (*GetCorrelationParams) SetSourceUID

func (o *GetCorrelationParams) SetSourceUID(sourceUID string)

SetSourceUID adds the sourceUid to the get correlation params

func (*GetCorrelationParams) SetTimeout

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

SetTimeout adds the timeout to the get correlation params

func (*GetCorrelationParams) WithContext

WithContext adds the context to the get correlation params

func (*GetCorrelationParams) WithCorrelationUID

func (o *GetCorrelationParams) WithCorrelationUID(correlationUID string) *GetCorrelationParams

WithCorrelationUID adds the correlationUID to the get correlation params

func (*GetCorrelationParams) WithDefaults

func (o *GetCorrelationParams) WithDefaults() *GetCorrelationParams

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

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

func (*GetCorrelationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get correlation params

func (*GetCorrelationParams) WithSourceUID

func (o *GetCorrelationParams) WithSourceUID(sourceUID string) *GetCorrelationParams

WithSourceUID adds the sourceUID to the get correlation params

func (*GetCorrelationParams) WithTimeout

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

WithTimeout adds the timeout to the get correlation params

func (*GetCorrelationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCorrelationReader

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

GetCorrelationReader is a Reader for the GetCorrelation structure.

func (*GetCorrelationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCorrelationUnauthorized

type GetCorrelationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetCorrelationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetCorrelationUnauthorized

func NewGetCorrelationUnauthorized() *GetCorrelationUnauthorized

NewGetCorrelationUnauthorized creates a GetCorrelationUnauthorized with default headers values

func (*GetCorrelationUnauthorized) Error

func (*GetCorrelationUnauthorized) GetPayload

type GetCorrelationsBySourceUIDInternalServerError

type GetCorrelationsBySourceUIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetCorrelationsBySourceUIDInternalServerError

func NewGetCorrelationsBySourceUIDInternalServerError() *GetCorrelationsBySourceUIDInternalServerError

NewGetCorrelationsBySourceUIDInternalServerError creates a GetCorrelationsBySourceUIDInternalServerError with default headers values

func (*GetCorrelationsBySourceUIDInternalServerError) Error

func (*GetCorrelationsBySourceUIDInternalServerError) GetPayload

type GetCorrelationsBySourceUIDNotFound

type GetCorrelationsBySourceUIDNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetCorrelationsBySourceUIDNotFound

func NewGetCorrelationsBySourceUIDNotFound() *GetCorrelationsBySourceUIDNotFound

NewGetCorrelationsBySourceUIDNotFound creates a GetCorrelationsBySourceUIDNotFound with default headers values

func (*GetCorrelationsBySourceUIDNotFound) Error

func (*GetCorrelationsBySourceUIDNotFound) GetPayload

type GetCorrelationsBySourceUIDOK

type GetCorrelationsBySourceUIDOK struct {
	Payload []*models.Correlation
}

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

(empty)

func NewGetCorrelationsBySourceUIDOK

func NewGetCorrelationsBySourceUIDOK() *GetCorrelationsBySourceUIDOK

NewGetCorrelationsBySourceUIDOK creates a GetCorrelationsBySourceUIDOK with default headers values

func (*GetCorrelationsBySourceUIDOK) Error

func (*GetCorrelationsBySourceUIDOK) GetPayload

func (o *GetCorrelationsBySourceUIDOK) GetPayload() []*models.Correlation

type GetCorrelationsBySourceUIDParams

type GetCorrelationsBySourceUIDParams struct {

	// SourceUID.
	SourceUID string

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

GetCorrelationsBySourceUIDParams contains all the parameters to send to the API endpoint

for the get correlations by source UID operation.

Typically these are written to a http.Request.

func NewGetCorrelationsBySourceUIDParams

func NewGetCorrelationsBySourceUIDParams() *GetCorrelationsBySourceUIDParams

NewGetCorrelationsBySourceUIDParams creates a new GetCorrelationsBySourceUIDParams 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 NewGetCorrelationsBySourceUIDParamsWithContext

func NewGetCorrelationsBySourceUIDParamsWithContext(ctx context.Context) *GetCorrelationsBySourceUIDParams

NewGetCorrelationsBySourceUIDParamsWithContext creates a new GetCorrelationsBySourceUIDParams object with the ability to set a context for a request.

func NewGetCorrelationsBySourceUIDParamsWithHTTPClient

func NewGetCorrelationsBySourceUIDParamsWithHTTPClient(client *http.Client) *GetCorrelationsBySourceUIDParams

NewGetCorrelationsBySourceUIDParamsWithHTTPClient creates a new GetCorrelationsBySourceUIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetCorrelationsBySourceUIDParamsWithTimeout

func NewGetCorrelationsBySourceUIDParamsWithTimeout(timeout time.Duration) *GetCorrelationsBySourceUIDParams

NewGetCorrelationsBySourceUIDParamsWithTimeout creates a new GetCorrelationsBySourceUIDParams object with the ability to set a timeout on a request.

func (*GetCorrelationsBySourceUIDParams) SetContext

SetContext adds the context to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) SetDefaults

func (o *GetCorrelationsBySourceUIDParams) SetDefaults()

SetDefaults hydrates default values in the get correlations by source UID params (not the query body).

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

func (*GetCorrelationsBySourceUIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) SetSourceUID

func (o *GetCorrelationsBySourceUIDParams) SetSourceUID(sourceUID string)

SetSourceUID adds the sourceUid to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) SetTimeout

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

SetTimeout adds the timeout to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) WithContext

WithContext adds the context to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) WithDefaults

WithDefaults hydrates default values in the get correlations by source UID params (not the query body).

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

func (*GetCorrelationsBySourceUIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) WithSourceUID

WithSourceUID adds the sourceUID to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) WithTimeout

WithTimeout adds the timeout to the get correlations by source UID params

func (*GetCorrelationsBySourceUIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCorrelationsBySourceUIDReader

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

GetCorrelationsBySourceUIDReader is a Reader for the GetCorrelationsBySourceUID structure.

func (*GetCorrelationsBySourceUIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCorrelationsBySourceUIDUnauthorized

type GetCorrelationsBySourceUIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetCorrelationsBySourceUIDUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetCorrelationsBySourceUIDUnauthorized

func NewGetCorrelationsBySourceUIDUnauthorized() *GetCorrelationsBySourceUIDUnauthorized

NewGetCorrelationsBySourceUIDUnauthorized creates a GetCorrelationsBySourceUIDUnauthorized with default headers values

func (*GetCorrelationsBySourceUIDUnauthorized) Error

func (*GetCorrelationsBySourceUIDUnauthorized) GetPayload

type GetCorrelationsInternalServerError

type GetCorrelationsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetCorrelationsInternalServerError

func NewGetCorrelationsInternalServerError() *GetCorrelationsInternalServerError

NewGetCorrelationsInternalServerError creates a GetCorrelationsInternalServerError with default headers values

func (*GetCorrelationsInternalServerError) Error

func (*GetCorrelationsInternalServerError) GetPayload

type GetCorrelationsNotFound

type GetCorrelationsNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetCorrelationsNotFound

func NewGetCorrelationsNotFound() *GetCorrelationsNotFound

NewGetCorrelationsNotFound creates a GetCorrelationsNotFound with default headers values

func (*GetCorrelationsNotFound) Error

func (o *GetCorrelationsNotFound) Error() string

func (*GetCorrelationsNotFound) GetPayload

type GetCorrelationsOK

type GetCorrelationsOK struct {
	Payload []*models.Correlation
}

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

(empty)

func NewGetCorrelationsOK

func NewGetCorrelationsOK() *GetCorrelationsOK

NewGetCorrelationsOK creates a GetCorrelationsOK with default headers values

func (*GetCorrelationsOK) Error

func (o *GetCorrelationsOK) Error() string

func (*GetCorrelationsOK) GetPayload

func (o *GetCorrelationsOK) GetPayload() []*models.Correlation

type GetCorrelationsParams

type GetCorrelationsParams struct {

	/* Limit.

	   Limit the maximum number of correlations to return per page

	   Format: int64
	   Default: 100
	*/
	Limit *int64

	/* Page.

	   Page index for starting fetching correlations

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* SourceUID.

	   Source datasource UID filter to be applied to correlations
	*/
	SourceUID []string

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

GetCorrelationsParams contains all the parameters to send to the API endpoint

for the get correlations operation.

Typically these are written to a http.Request.

func NewGetCorrelationsParams

func NewGetCorrelationsParams() *GetCorrelationsParams

NewGetCorrelationsParams creates a new GetCorrelationsParams 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 NewGetCorrelationsParamsWithContext

func NewGetCorrelationsParamsWithContext(ctx context.Context) *GetCorrelationsParams

NewGetCorrelationsParamsWithContext creates a new GetCorrelationsParams object with the ability to set a context for a request.

func NewGetCorrelationsParamsWithHTTPClient

func NewGetCorrelationsParamsWithHTTPClient(client *http.Client) *GetCorrelationsParams

NewGetCorrelationsParamsWithHTTPClient creates a new GetCorrelationsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCorrelationsParamsWithTimeout

func NewGetCorrelationsParamsWithTimeout(timeout time.Duration) *GetCorrelationsParams

NewGetCorrelationsParamsWithTimeout creates a new GetCorrelationsParams object with the ability to set a timeout on a request.

func (*GetCorrelationsParams) SetContext

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

SetContext adds the context to the get correlations params

func (*GetCorrelationsParams) SetDefaults

func (o *GetCorrelationsParams) SetDefaults()

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

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

func (*GetCorrelationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get correlations params

func (*GetCorrelationsParams) SetLimit

func (o *GetCorrelationsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get correlations params

func (*GetCorrelationsParams) SetPage

func (o *GetCorrelationsParams) SetPage(page *int64)

SetPage adds the page to the get correlations params

func (*GetCorrelationsParams) SetSourceUID

func (o *GetCorrelationsParams) SetSourceUID(sourceUID []string)

SetSourceUID adds the sourceUid to the get correlations params

func (*GetCorrelationsParams) SetTimeout

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

SetTimeout adds the timeout to the get correlations params

func (*GetCorrelationsParams) WithContext

WithContext adds the context to the get correlations params

func (*GetCorrelationsParams) WithDefaults

func (o *GetCorrelationsParams) WithDefaults() *GetCorrelationsParams

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

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

func (*GetCorrelationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get correlations params

func (*GetCorrelationsParams) WithLimit

func (o *GetCorrelationsParams) WithLimit(limit *int64) *GetCorrelationsParams

WithLimit adds the limit to the get correlations params

func (*GetCorrelationsParams) WithPage

WithPage adds the page to the get correlations params

func (*GetCorrelationsParams) WithSourceUID

func (o *GetCorrelationsParams) WithSourceUID(sourceUID []string) *GetCorrelationsParams

WithSourceUID adds the sourceUID to the get correlations params

func (*GetCorrelationsParams) WithTimeout

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

WithTimeout adds the timeout to the get correlations params

func (*GetCorrelationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCorrelationsReader

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

GetCorrelationsReader is a Reader for the GetCorrelations structure.

func (*GetCorrelationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCorrelationsUnauthorized

type GetCorrelationsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetCorrelationsUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetCorrelationsUnauthorized

func NewGetCorrelationsUnauthorized() *GetCorrelationsUnauthorized

NewGetCorrelationsUnauthorized creates a GetCorrelationsUnauthorized with default headers values

func (*GetCorrelationsUnauthorized) Error

func (*GetCorrelationsUnauthorized) GetPayload

type UpdateCorrelationBadRequest

type UpdateCorrelationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewUpdateCorrelationBadRequest

func NewUpdateCorrelationBadRequest() *UpdateCorrelationBadRequest

NewUpdateCorrelationBadRequest creates a UpdateCorrelationBadRequest with default headers values

func (*UpdateCorrelationBadRequest) Error

func (*UpdateCorrelationBadRequest) GetPayload

type UpdateCorrelationForbidden

type UpdateCorrelationForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewUpdateCorrelationForbidden

func NewUpdateCorrelationForbidden() *UpdateCorrelationForbidden

NewUpdateCorrelationForbidden creates a UpdateCorrelationForbidden with default headers values

func (*UpdateCorrelationForbidden) Error

func (*UpdateCorrelationForbidden) GetPayload

type UpdateCorrelationInternalServerError

type UpdateCorrelationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateCorrelationInternalServerError

func NewUpdateCorrelationInternalServerError() *UpdateCorrelationInternalServerError

NewUpdateCorrelationInternalServerError creates a UpdateCorrelationInternalServerError with default headers values

func (*UpdateCorrelationInternalServerError) Error

func (*UpdateCorrelationInternalServerError) GetPayload

type UpdateCorrelationNotFound

type UpdateCorrelationNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewUpdateCorrelationNotFound

func NewUpdateCorrelationNotFound() *UpdateCorrelationNotFound

NewUpdateCorrelationNotFound creates a UpdateCorrelationNotFound with default headers values

func (*UpdateCorrelationNotFound) Error

func (o *UpdateCorrelationNotFound) Error() string

func (*UpdateCorrelationNotFound) GetPayload

type UpdateCorrelationOK

type UpdateCorrelationOK struct {
	Payload *models.UpdateCorrelationResponseBody
}

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

(empty)

func NewUpdateCorrelationOK

func NewUpdateCorrelationOK() *UpdateCorrelationOK

NewUpdateCorrelationOK creates a UpdateCorrelationOK with default headers values

func (*UpdateCorrelationOK) Error

func (o *UpdateCorrelationOK) Error() string

func (*UpdateCorrelationOK) GetPayload

type UpdateCorrelationParams

type UpdateCorrelationParams struct {

	// Body.
	Body *models.UpdateCorrelationCommand

	// CorrelationUID.
	CorrelationUID string

	// SourceUID.
	SourceUID string

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

UpdateCorrelationParams contains all the parameters to send to the API endpoint

for the update correlation operation.

Typically these are written to a http.Request.

func NewUpdateCorrelationParams

func NewUpdateCorrelationParams() *UpdateCorrelationParams

NewUpdateCorrelationParams creates a new UpdateCorrelationParams 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 NewUpdateCorrelationParamsWithContext

func NewUpdateCorrelationParamsWithContext(ctx context.Context) *UpdateCorrelationParams

NewUpdateCorrelationParamsWithContext creates a new UpdateCorrelationParams object with the ability to set a context for a request.

func NewUpdateCorrelationParamsWithHTTPClient

func NewUpdateCorrelationParamsWithHTTPClient(client *http.Client) *UpdateCorrelationParams

NewUpdateCorrelationParamsWithHTTPClient creates a new UpdateCorrelationParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCorrelationParamsWithTimeout

func NewUpdateCorrelationParamsWithTimeout(timeout time.Duration) *UpdateCorrelationParams

NewUpdateCorrelationParamsWithTimeout creates a new UpdateCorrelationParams object with the ability to set a timeout on a request.

func (*UpdateCorrelationParams) SetBody

SetBody adds the body to the update correlation params

func (*UpdateCorrelationParams) SetContext

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

SetContext adds the context to the update correlation params

func (*UpdateCorrelationParams) SetCorrelationUID

func (o *UpdateCorrelationParams) SetCorrelationUID(correlationUID string)

SetCorrelationUID adds the correlationUid to the update correlation params

func (*UpdateCorrelationParams) SetDefaults

func (o *UpdateCorrelationParams) SetDefaults()

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

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

func (*UpdateCorrelationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update correlation params

func (*UpdateCorrelationParams) SetSourceUID

func (o *UpdateCorrelationParams) SetSourceUID(sourceUID string)

SetSourceUID adds the sourceUid to the update correlation params

func (*UpdateCorrelationParams) SetTimeout

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

SetTimeout adds the timeout to the update correlation params

func (*UpdateCorrelationParams) WithBody

WithBody adds the body to the update correlation params

func (*UpdateCorrelationParams) WithContext

WithContext adds the context to the update correlation params

func (*UpdateCorrelationParams) WithCorrelationUID

func (o *UpdateCorrelationParams) WithCorrelationUID(correlationUID string) *UpdateCorrelationParams

WithCorrelationUID adds the correlationUID to the update correlation params

func (*UpdateCorrelationParams) WithDefaults

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

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

func (*UpdateCorrelationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update correlation params

func (*UpdateCorrelationParams) WithSourceUID

func (o *UpdateCorrelationParams) WithSourceUID(sourceUID string) *UpdateCorrelationParams

WithSourceUID adds the sourceUID to the update correlation params

func (*UpdateCorrelationParams) WithTimeout

WithTimeout adds the timeout to the update correlation params

func (*UpdateCorrelationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCorrelationReader

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

UpdateCorrelationReader is a Reader for the UpdateCorrelation structure.

func (*UpdateCorrelationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCorrelationUnauthorized

type UpdateCorrelationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UpdateCorrelationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateCorrelationUnauthorized

func NewUpdateCorrelationUnauthorized() *UpdateCorrelationUnauthorized

NewUpdateCorrelationUnauthorized creates a UpdateCorrelationUnauthorized with default headers values

func (*UpdateCorrelationUnauthorized) Error

func (*UpdateCorrelationUnauthorized) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL