anomaly_alerts

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT 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 anomaly alerts API

func (*Client) GetAnomalyAlert

func (a *Client) GetAnomalyAlert(params *GetAnomalyAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnomalyAlertOK, error)

GetAnomalyAlert Return an AnomalyAlert that the current API token has access to.

func (*Client) GetAnomalyAlerts

func (a *Client) GetAnomalyAlerts(params *GetAnomalyAlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnomalyAlertsOK, error)

GetAnomalyAlerts Return all Anomaly Alerts that the current API token has access to.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAnomalyAlert

func (a *Client) UpdateAnomalyAlert(params *UpdateAnomalyAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAnomalyAlertOK, error)

UpdateAnomalyAlert Update an AnomalyAlert.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAnomalyAlert(params *GetAnomalyAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnomalyAlertOK, error)

	GetAnomalyAlerts(params *GetAnomalyAlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnomalyAlertsOK, error)

	UpdateAnomalyAlert(params *UpdateAnomalyAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAnomalyAlertOK, 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 anomaly alerts API client.

type GetAnomalyAlertNotFound

type GetAnomalyAlertNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewGetAnomalyAlertNotFound

func NewGetAnomalyAlertNotFound() *GetAnomalyAlertNotFound

NewGetAnomalyAlertNotFound creates a GetAnomalyAlertNotFound with default headers values

func (*GetAnomalyAlertNotFound) Code

func (o *GetAnomalyAlertNotFound) Code() int

Code gets the status code for the get anomaly alert not found response

func (*GetAnomalyAlertNotFound) Error

func (o *GetAnomalyAlertNotFound) Error() string

func (*GetAnomalyAlertNotFound) GetPayload

func (o *GetAnomalyAlertNotFound) GetPayload() *models.Errors

func (*GetAnomalyAlertNotFound) IsClientError

func (o *GetAnomalyAlertNotFound) IsClientError() bool

IsClientError returns true when this get anomaly alert not found response has a 4xx status code

func (*GetAnomalyAlertNotFound) IsCode

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

IsCode returns true when this get anomaly alert not found response a status code equal to that given

func (*GetAnomalyAlertNotFound) IsRedirect

func (o *GetAnomalyAlertNotFound) IsRedirect() bool

IsRedirect returns true when this get anomaly alert not found response has a 3xx status code

func (*GetAnomalyAlertNotFound) IsServerError

func (o *GetAnomalyAlertNotFound) IsServerError() bool

IsServerError returns true when this get anomaly alert not found response has a 5xx status code

func (*GetAnomalyAlertNotFound) IsSuccess

func (o *GetAnomalyAlertNotFound) IsSuccess() bool

IsSuccess returns true when this get anomaly alert not found response has a 2xx status code

func (*GetAnomalyAlertNotFound) String

func (o *GetAnomalyAlertNotFound) String() string

type GetAnomalyAlertOK

type GetAnomalyAlertOK struct {
	Payload *models.AnomalyAlert
}

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

GetAnomalyAlertOK get anomaly alert o k

func NewGetAnomalyAlertOK

func NewGetAnomalyAlertOK() *GetAnomalyAlertOK

NewGetAnomalyAlertOK creates a GetAnomalyAlertOK with default headers values

func (*GetAnomalyAlertOK) Code

func (o *GetAnomalyAlertOK) Code() int

Code gets the status code for the get anomaly alert o k response

func (*GetAnomalyAlertOK) Error

func (o *GetAnomalyAlertOK) Error() string

func (*GetAnomalyAlertOK) GetPayload

func (o *GetAnomalyAlertOK) GetPayload() *models.AnomalyAlert

func (*GetAnomalyAlertOK) IsClientError

func (o *GetAnomalyAlertOK) IsClientError() bool

IsClientError returns true when this get anomaly alert o k response has a 4xx status code

func (*GetAnomalyAlertOK) IsCode

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

IsCode returns true when this get anomaly alert o k response a status code equal to that given

func (*GetAnomalyAlertOK) IsRedirect

func (o *GetAnomalyAlertOK) IsRedirect() bool

IsRedirect returns true when this get anomaly alert o k response has a 3xx status code

func (*GetAnomalyAlertOK) IsServerError

func (o *GetAnomalyAlertOK) IsServerError() bool

IsServerError returns true when this get anomaly alert o k response has a 5xx status code

func (*GetAnomalyAlertOK) IsSuccess

func (o *GetAnomalyAlertOK) IsSuccess() bool

IsSuccess returns true when this get anomaly alert o k response has a 2xx status code

func (*GetAnomalyAlertOK) String

func (o *GetAnomalyAlertOK) String() string

type GetAnomalyAlertParams

type GetAnomalyAlertParams struct {

	// AnomalyAlertToken.
	AnomalyAlertToken string

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

GetAnomalyAlertParams contains all the parameters to send to the API endpoint

for the get anomaly alert operation.

Typically these are written to a http.Request.

func NewGetAnomalyAlertParams

func NewGetAnomalyAlertParams() *GetAnomalyAlertParams

NewGetAnomalyAlertParams creates a new GetAnomalyAlertParams 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 NewGetAnomalyAlertParamsWithContext

func NewGetAnomalyAlertParamsWithContext(ctx context.Context) *GetAnomalyAlertParams

NewGetAnomalyAlertParamsWithContext creates a new GetAnomalyAlertParams object with the ability to set a context for a request.

func NewGetAnomalyAlertParamsWithHTTPClient

func NewGetAnomalyAlertParamsWithHTTPClient(client *http.Client) *GetAnomalyAlertParams

NewGetAnomalyAlertParamsWithHTTPClient creates a new GetAnomalyAlertParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnomalyAlertParamsWithTimeout

func NewGetAnomalyAlertParamsWithTimeout(timeout time.Duration) *GetAnomalyAlertParams

NewGetAnomalyAlertParamsWithTimeout creates a new GetAnomalyAlertParams object with the ability to set a timeout on a request.

func (*GetAnomalyAlertParams) SetAnomalyAlertToken

func (o *GetAnomalyAlertParams) SetAnomalyAlertToken(anomalyAlertToken string)

SetAnomalyAlertToken adds the anomalyAlertToken to the get anomaly alert params

func (*GetAnomalyAlertParams) SetContext

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

SetContext adds the context to the get anomaly alert params

func (*GetAnomalyAlertParams) SetDefaults

func (o *GetAnomalyAlertParams) SetDefaults()

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

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

func (*GetAnomalyAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get anomaly alert params

func (*GetAnomalyAlertParams) SetTimeout

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

SetTimeout adds the timeout to the get anomaly alert params

func (*GetAnomalyAlertParams) WithAnomalyAlertToken

func (o *GetAnomalyAlertParams) WithAnomalyAlertToken(anomalyAlertToken string) *GetAnomalyAlertParams

WithAnomalyAlertToken adds the anomalyAlertToken to the get anomaly alert params

func (*GetAnomalyAlertParams) WithContext

WithContext adds the context to the get anomaly alert params

func (*GetAnomalyAlertParams) WithDefaults

func (o *GetAnomalyAlertParams) WithDefaults() *GetAnomalyAlertParams

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

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

func (*GetAnomalyAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get anomaly alert params

func (*GetAnomalyAlertParams) WithTimeout

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

WithTimeout adds the timeout to the get anomaly alert params

func (*GetAnomalyAlertParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAnomalyAlertReader

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

GetAnomalyAlertReader is a Reader for the GetAnomalyAlert structure.

func (*GetAnomalyAlertReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAnomalyAlertsOK

type GetAnomalyAlertsOK struct {
	Payload *models.AnomalyAlerts
}

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

GetAnomalyAlertsOK get anomaly alerts o k

func NewGetAnomalyAlertsOK

func NewGetAnomalyAlertsOK() *GetAnomalyAlertsOK

NewGetAnomalyAlertsOK creates a GetAnomalyAlertsOK with default headers values

func (*GetAnomalyAlertsOK) Code

func (o *GetAnomalyAlertsOK) Code() int

Code gets the status code for the get anomaly alerts o k response

func (*GetAnomalyAlertsOK) Error

func (o *GetAnomalyAlertsOK) Error() string

func (*GetAnomalyAlertsOK) GetPayload

func (o *GetAnomalyAlertsOK) GetPayload() *models.AnomalyAlerts

func (*GetAnomalyAlertsOK) IsClientError

func (o *GetAnomalyAlertsOK) IsClientError() bool

IsClientError returns true when this get anomaly alerts o k response has a 4xx status code

func (*GetAnomalyAlertsOK) IsCode

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

IsCode returns true when this get anomaly alerts o k response a status code equal to that given

func (*GetAnomalyAlertsOK) IsRedirect

func (o *GetAnomalyAlertsOK) IsRedirect() bool

IsRedirect returns true when this get anomaly alerts o k response has a 3xx status code

func (*GetAnomalyAlertsOK) IsServerError

func (o *GetAnomalyAlertsOK) IsServerError() bool

IsServerError returns true when this get anomaly alerts o k response has a 5xx status code

func (*GetAnomalyAlertsOK) IsSuccess

func (o *GetAnomalyAlertsOK) IsSuccess() bool

IsSuccess returns true when this get anomaly alerts o k response has a 2xx status code

func (*GetAnomalyAlertsOK) String

func (o *GetAnomalyAlertsOK) String() string

type GetAnomalyAlertsParams

type GetAnomalyAlertsParams struct {

	/* Limit.

	   The amount of results to return. The maximum is 1000.

	   Format: int32
	*/
	Limit *int32

	/* Page.

	   The page of results to return.

	   Format: int32
	*/
	Page *int32

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

GetAnomalyAlertsParams contains all the parameters to send to the API endpoint

for the get anomaly alerts operation.

Typically these are written to a http.Request.

func NewGetAnomalyAlertsParams

func NewGetAnomalyAlertsParams() *GetAnomalyAlertsParams

NewGetAnomalyAlertsParams creates a new GetAnomalyAlertsParams 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 NewGetAnomalyAlertsParamsWithContext

func NewGetAnomalyAlertsParamsWithContext(ctx context.Context) *GetAnomalyAlertsParams

NewGetAnomalyAlertsParamsWithContext creates a new GetAnomalyAlertsParams object with the ability to set a context for a request.

func NewGetAnomalyAlertsParamsWithHTTPClient

func NewGetAnomalyAlertsParamsWithHTTPClient(client *http.Client) *GetAnomalyAlertsParams

NewGetAnomalyAlertsParamsWithHTTPClient creates a new GetAnomalyAlertsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnomalyAlertsParamsWithTimeout

func NewGetAnomalyAlertsParamsWithTimeout(timeout time.Duration) *GetAnomalyAlertsParams

NewGetAnomalyAlertsParamsWithTimeout creates a new GetAnomalyAlertsParams object with the ability to set a timeout on a request.

func (*GetAnomalyAlertsParams) SetContext

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

SetContext adds the context to the get anomaly alerts params

func (*GetAnomalyAlertsParams) SetDefaults

func (o *GetAnomalyAlertsParams) SetDefaults()

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

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

func (*GetAnomalyAlertsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get anomaly alerts params

func (*GetAnomalyAlertsParams) SetLimit

func (o *GetAnomalyAlertsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get anomaly alerts params

func (*GetAnomalyAlertsParams) SetPage

func (o *GetAnomalyAlertsParams) SetPage(page *int32)

SetPage adds the page to the get anomaly alerts params

func (*GetAnomalyAlertsParams) SetTimeout

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

SetTimeout adds the timeout to the get anomaly alerts params

func (*GetAnomalyAlertsParams) WithContext

WithContext adds the context to the get anomaly alerts params

func (*GetAnomalyAlertsParams) WithDefaults

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

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

func (*GetAnomalyAlertsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get anomaly alerts params

func (*GetAnomalyAlertsParams) WithLimit

func (o *GetAnomalyAlertsParams) WithLimit(limit *int32) *GetAnomalyAlertsParams

WithLimit adds the limit to the get anomaly alerts params

func (*GetAnomalyAlertsParams) WithPage

WithPage adds the page to the get anomaly alerts params

func (*GetAnomalyAlertsParams) WithTimeout

WithTimeout adds the timeout to the get anomaly alerts params

func (*GetAnomalyAlertsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAnomalyAlertsReader

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

GetAnomalyAlertsReader is a Reader for the GetAnomalyAlerts structure.

func (*GetAnomalyAlertsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAnomalyAlertBadRequest

type UpdateAnomalyAlertBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewUpdateAnomalyAlertBadRequest

func NewUpdateAnomalyAlertBadRequest() *UpdateAnomalyAlertBadRequest

NewUpdateAnomalyAlertBadRequest creates a UpdateAnomalyAlertBadRequest with default headers values

func (*UpdateAnomalyAlertBadRequest) Code

Code gets the status code for the update anomaly alert bad request response

func (*UpdateAnomalyAlertBadRequest) Error

func (*UpdateAnomalyAlertBadRequest) GetPayload

func (o *UpdateAnomalyAlertBadRequest) GetPayload() *models.Errors

func (*UpdateAnomalyAlertBadRequest) IsClientError

func (o *UpdateAnomalyAlertBadRequest) IsClientError() bool

IsClientError returns true when this update anomaly alert bad request response has a 4xx status code

func (*UpdateAnomalyAlertBadRequest) IsCode

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

IsCode returns true when this update anomaly alert bad request response a status code equal to that given

func (*UpdateAnomalyAlertBadRequest) IsRedirect

func (o *UpdateAnomalyAlertBadRequest) IsRedirect() bool

IsRedirect returns true when this update anomaly alert bad request response has a 3xx status code

func (*UpdateAnomalyAlertBadRequest) IsServerError

func (o *UpdateAnomalyAlertBadRequest) IsServerError() bool

IsServerError returns true when this update anomaly alert bad request response has a 5xx status code

func (*UpdateAnomalyAlertBadRequest) IsSuccess

func (o *UpdateAnomalyAlertBadRequest) IsSuccess() bool

IsSuccess returns true when this update anomaly alert bad request response has a 2xx status code

func (*UpdateAnomalyAlertBadRequest) String

type UpdateAnomalyAlertForbidden

type UpdateAnomalyAlertForbidden struct {
	Payload *models.Errors
}

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

Forbidden

func NewUpdateAnomalyAlertForbidden

func NewUpdateAnomalyAlertForbidden() *UpdateAnomalyAlertForbidden

NewUpdateAnomalyAlertForbidden creates a UpdateAnomalyAlertForbidden with default headers values

func (*UpdateAnomalyAlertForbidden) Code

func (o *UpdateAnomalyAlertForbidden) Code() int

Code gets the status code for the update anomaly alert forbidden response

func (*UpdateAnomalyAlertForbidden) Error

func (*UpdateAnomalyAlertForbidden) GetPayload

func (o *UpdateAnomalyAlertForbidden) GetPayload() *models.Errors

func (*UpdateAnomalyAlertForbidden) IsClientError

func (o *UpdateAnomalyAlertForbidden) IsClientError() bool

IsClientError returns true when this update anomaly alert forbidden response has a 4xx status code

func (*UpdateAnomalyAlertForbidden) IsCode

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

IsCode returns true when this update anomaly alert forbidden response a status code equal to that given

func (*UpdateAnomalyAlertForbidden) IsRedirect

func (o *UpdateAnomalyAlertForbidden) IsRedirect() bool

IsRedirect returns true when this update anomaly alert forbidden response has a 3xx status code

func (*UpdateAnomalyAlertForbidden) IsServerError

func (o *UpdateAnomalyAlertForbidden) IsServerError() bool

IsServerError returns true when this update anomaly alert forbidden response has a 5xx status code

func (*UpdateAnomalyAlertForbidden) IsSuccess

func (o *UpdateAnomalyAlertForbidden) IsSuccess() bool

IsSuccess returns true when this update anomaly alert forbidden response has a 2xx status code

func (*UpdateAnomalyAlertForbidden) String

func (o *UpdateAnomalyAlertForbidden) String() string

type UpdateAnomalyAlertNotFound

type UpdateAnomalyAlertNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewUpdateAnomalyAlertNotFound

func NewUpdateAnomalyAlertNotFound() *UpdateAnomalyAlertNotFound

NewUpdateAnomalyAlertNotFound creates a UpdateAnomalyAlertNotFound with default headers values

func (*UpdateAnomalyAlertNotFound) Code

func (o *UpdateAnomalyAlertNotFound) Code() int

Code gets the status code for the update anomaly alert not found response

func (*UpdateAnomalyAlertNotFound) Error

func (*UpdateAnomalyAlertNotFound) GetPayload

func (o *UpdateAnomalyAlertNotFound) GetPayload() *models.Errors

func (*UpdateAnomalyAlertNotFound) IsClientError

func (o *UpdateAnomalyAlertNotFound) IsClientError() bool

IsClientError returns true when this update anomaly alert not found response has a 4xx status code

func (*UpdateAnomalyAlertNotFound) IsCode

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

IsCode returns true when this update anomaly alert not found response a status code equal to that given

func (*UpdateAnomalyAlertNotFound) IsRedirect

func (o *UpdateAnomalyAlertNotFound) IsRedirect() bool

IsRedirect returns true when this update anomaly alert not found response has a 3xx status code

func (*UpdateAnomalyAlertNotFound) IsServerError

func (o *UpdateAnomalyAlertNotFound) IsServerError() bool

IsServerError returns true when this update anomaly alert not found response has a 5xx status code

func (*UpdateAnomalyAlertNotFound) IsSuccess

func (o *UpdateAnomalyAlertNotFound) IsSuccess() bool

IsSuccess returns true when this update anomaly alert not found response has a 2xx status code

func (*UpdateAnomalyAlertNotFound) String

func (o *UpdateAnomalyAlertNotFound) String() string

type UpdateAnomalyAlertOK

type UpdateAnomalyAlertOK struct {
	Payload *models.AnomalyAlert
}

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

UpdateAnomalyAlertOK update anomaly alert o k

func NewUpdateAnomalyAlertOK

func NewUpdateAnomalyAlertOK() *UpdateAnomalyAlertOK

NewUpdateAnomalyAlertOK creates a UpdateAnomalyAlertOK with default headers values

func (*UpdateAnomalyAlertOK) Code

func (o *UpdateAnomalyAlertOK) Code() int

Code gets the status code for the update anomaly alert o k response

func (*UpdateAnomalyAlertOK) Error

func (o *UpdateAnomalyAlertOK) Error() string

func (*UpdateAnomalyAlertOK) GetPayload

func (o *UpdateAnomalyAlertOK) GetPayload() *models.AnomalyAlert

func (*UpdateAnomalyAlertOK) IsClientError

func (o *UpdateAnomalyAlertOK) IsClientError() bool

IsClientError returns true when this update anomaly alert o k response has a 4xx status code

func (*UpdateAnomalyAlertOK) IsCode

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

IsCode returns true when this update anomaly alert o k response a status code equal to that given

func (*UpdateAnomalyAlertOK) IsRedirect

func (o *UpdateAnomalyAlertOK) IsRedirect() bool

IsRedirect returns true when this update anomaly alert o k response has a 3xx status code

func (*UpdateAnomalyAlertOK) IsServerError

func (o *UpdateAnomalyAlertOK) IsServerError() bool

IsServerError returns true when this update anomaly alert o k response has a 5xx status code

func (*UpdateAnomalyAlertOK) IsSuccess

func (o *UpdateAnomalyAlertOK) IsSuccess() bool

IsSuccess returns true when this update anomaly alert o k response has a 2xx status code

func (*UpdateAnomalyAlertOK) String

func (o *UpdateAnomalyAlertOK) String() string

type UpdateAnomalyAlertParams

type UpdateAnomalyAlertParams struct {

	// AnomalyAlertToken.
	AnomalyAlertToken string

	// UpdateAnomalyAlert.
	UpdateAnomalyAlert *models.UpdateAnomalyAlert

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

UpdateAnomalyAlertParams contains all the parameters to send to the API endpoint

for the update anomaly alert operation.

Typically these are written to a http.Request.

func NewUpdateAnomalyAlertParams

func NewUpdateAnomalyAlertParams() *UpdateAnomalyAlertParams

NewUpdateAnomalyAlertParams creates a new UpdateAnomalyAlertParams 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 NewUpdateAnomalyAlertParamsWithContext

func NewUpdateAnomalyAlertParamsWithContext(ctx context.Context) *UpdateAnomalyAlertParams

NewUpdateAnomalyAlertParamsWithContext creates a new UpdateAnomalyAlertParams object with the ability to set a context for a request.

func NewUpdateAnomalyAlertParamsWithHTTPClient

func NewUpdateAnomalyAlertParamsWithHTTPClient(client *http.Client) *UpdateAnomalyAlertParams

NewUpdateAnomalyAlertParamsWithHTTPClient creates a new UpdateAnomalyAlertParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAnomalyAlertParamsWithTimeout

func NewUpdateAnomalyAlertParamsWithTimeout(timeout time.Duration) *UpdateAnomalyAlertParams

NewUpdateAnomalyAlertParamsWithTimeout creates a new UpdateAnomalyAlertParams object with the ability to set a timeout on a request.

func (*UpdateAnomalyAlertParams) SetAnomalyAlertToken

func (o *UpdateAnomalyAlertParams) SetAnomalyAlertToken(anomalyAlertToken string)

SetAnomalyAlertToken adds the anomalyAlertToken to the update anomaly alert params

func (*UpdateAnomalyAlertParams) SetContext

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

SetContext adds the context to the update anomaly alert params

func (*UpdateAnomalyAlertParams) SetDefaults

func (o *UpdateAnomalyAlertParams) SetDefaults()

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

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

func (*UpdateAnomalyAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update anomaly alert params

func (*UpdateAnomalyAlertParams) SetTimeout

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

SetTimeout adds the timeout to the update anomaly alert params

func (*UpdateAnomalyAlertParams) SetUpdateAnomalyAlert added in v0.0.14

func (o *UpdateAnomalyAlertParams) SetUpdateAnomalyAlert(updateAnomalyAlert *models.UpdateAnomalyAlert)

SetUpdateAnomalyAlert adds the updateAnomalyAlert to the update anomaly alert params

func (*UpdateAnomalyAlertParams) WithAnomalyAlertToken

func (o *UpdateAnomalyAlertParams) WithAnomalyAlertToken(anomalyAlertToken string) *UpdateAnomalyAlertParams

WithAnomalyAlertToken adds the anomalyAlertToken to the update anomaly alert params

func (*UpdateAnomalyAlertParams) WithContext

WithContext adds the context to the update anomaly alert params

func (*UpdateAnomalyAlertParams) WithDefaults

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

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

func (*UpdateAnomalyAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update anomaly alert params

func (*UpdateAnomalyAlertParams) WithTimeout

WithTimeout adds the timeout to the update anomaly alert params

func (*UpdateAnomalyAlertParams) WithUpdateAnomalyAlert added in v0.0.14

func (o *UpdateAnomalyAlertParams) WithUpdateAnomalyAlert(updateAnomalyAlert *models.UpdateAnomalyAlert) *UpdateAnomalyAlertParams

WithUpdateAnomalyAlert adds the updateAnomalyAlert to the update anomaly alert params

func (*UpdateAnomalyAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateAnomalyAlertReader

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

UpdateAnomalyAlertReader is a Reader for the UpdateAnomalyAlert structure.

func (*UpdateAnomalyAlertReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAnomalyAlertUnprocessableEntity

type UpdateAnomalyAlertUnprocessableEntity struct {
	Payload *models.Errors
}

UpdateAnomalyAlertUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewUpdateAnomalyAlertUnprocessableEntity

func NewUpdateAnomalyAlertUnprocessableEntity() *UpdateAnomalyAlertUnprocessableEntity

NewUpdateAnomalyAlertUnprocessableEntity creates a UpdateAnomalyAlertUnprocessableEntity with default headers values

func (*UpdateAnomalyAlertUnprocessableEntity) Code

Code gets the status code for the update anomaly alert unprocessable entity response

func (*UpdateAnomalyAlertUnprocessableEntity) Error

func (*UpdateAnomalyAlertUnprocessableEntity) GetPayload

func (*UpdateAnomalyAlertUnprocessableEntity) IsClientError

func (o *UpdateAnomalyAlertUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update anomaly alert unprocessable entity response has a 4xx status code

func (*UpdateAnomalyAlertUnprocessableEntity) IsCode

IsCode returns true when this update anomaly alert unprocessable entity response a status code equal to that given

func (*UpdateAnomalyAlertUnprocessableEntity) IsRedirect

IsRedirect returns true when this update anomaly alert unprocessable entity response has a 3xx status code

func (*UpdateAnomalyAlertUnprocessableEntity) IsServerError

func (o *UpdateAnomalyAlertUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update anomaly alert unprocessable entity response has a 5xx status code

func (*UpdateAnomalyAlertUnprocessableEntity) IsSuccess

IsSuccess returns true when this update anomaly alert unprocessable entity response has a 2xx status code

func (*UpdateAnomalyAlertUnprocessableEntity) String

Jump to

Keyboard shortcuts

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