Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAnomalyAlert(params *GetAnomalyAlertParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAnomalyAlertOK, error)
- func (a *Client) GetAnomalyAlerts(params *GetAnomalyAlertsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAnomalyAlertsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateAnomalyAlert(params *UpdateAnomalyAlertParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateAnomalyAlertOK, error)
- type ClientOption
- type ClientService
- type GetAnomalyAlertNotFound
- func (o *GetAnomalyAlertNotFound) Code() int
- func (o *GetAnomalyAlertNotFound) Error() string
- func (o *GetAnomalyAlertNotFound) GetPayload() *models.Errors
- func (o *GetAnomalyAlertNotFound) IsClientError() bool
- func (o *GetAnomalyAlertNotFound) IsCode(code int) bool
- func (o *GetAnomalyAlertNotFound) IsRedirect() bool
- func (o *GetAnomalyAlertNotFound) IsServerError() bool
- func (o *GetAnomalyAlertNotFound) IsSuccess() bool
- func (o *GetAnomalyAlertNotFound) String() string
- type GetAnomalyAlertOK
- func (o *GetAnomalyAlertOK) Code() int
- func (o *GetAnomalyAlertOK) Error() string
- func (o *GetAnomalyAlertOK) GetPayload() *models.AnomalyAlert
- func (o *GetAnomalyAlertOK) IsClientError() bool
- func (o *GetAnomalyAlertOK) IsCode(code int) bool
- func (o *GetAnomalyAlertOK) IsRedirect() bool
- func (o *GetAnomalyAlertOK) IsServerError() bool
- func (o *GetAnomalyAlertOK) IsSuccess() bool
- func (o *GetAnomalyAlertOK) String() string
- type GetAnomalyAlertParams
- func NewGetAnomalyAlertParams() *GetAnomalyAlertParams
- func NewGetAnomalyAlertParamsWithContext(ctx context.Context) *GetAnomalyAlertParams
- func NewGetAnomalyAlertParamsWithHTTPClient(client *http.Client) *GetAnomalyAlertParams
- func NewGetAnomalyAlertParamsWithTimeout(timeout time.Duration) *GetAnomalyAlertParams
- func (o *GetAnomalyAlertParams) SetAnomalyAlertToken(anomalyAlertToken string)
- func (o *GetAnomalyAlertParams) SetContext(ctx context.Context)
- func (o *GetAnomalyAlertParams) SetDefaults()
- func (o *GetAnomalyAlertParams) SetHTTPClient(client *http.Client)
- func (o *GetAnomalyAlertParams) SetTimeout(timeout time.Duration)
- func (o *GetAnomalyAlertParams) WithAnomalyAlertToken(anomalyAlertToken string) *GetAnomalyAlertParams
- func (o *GetAnomalyAlertParams) WithContext(ctx context.Context) *GetAnomalyAlertParams
- func (o *GetAnomalyAlertParams) WithDefaults() *GetAnomalyAlertParams
- func (o *GetAnomalyAlertParams) WithHTTPClient(client *http.Client) *GetAnomalyAlertParams
- func (o *GetAnomalyAlertParams) WithTimeout(timeout time.Duration) *GetAnomalyAlertParams
- func (o *GetAnomalyAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAnomalyAlertReader
- type GetAnomalyAlertsOK
- func (o *GetAnomalyAlertsOK) Code() int
- func (o *GetAnomalyAlertsOK) Error() string
- func (o *GetAnomalyAlertsOK) GetPayload() *models.AnomalyAlerts
- func (o *GetAnomalyAlertsOK) IsClientError() bool
- func (o *GetAnomalyAlertsOK) IsCode(code int) bool
- func (o *GetAnomalyAlertsOK) IsRedirect() bool
- func (o *GetAnomalyAlertsOK) IsServerError() bool
- func (o *GetAnomalyAlertsOK) IsSuccess() bool
- func (o *GetAnomalyAlertsOK) String() string
- type GetAnomalyAlertsParams
- func NewGetAnomalyAlertsParams() *GetAnomalyAlertsParams
- func NewGetAnomalyAlertsParamsWithContext(ctx context.Context) *GetAnomalyAlertsParams
- func NewGetAnomalyAlertsParamsWithHTTPClient(client *http.Client) *GetAnomalyAlertsParams
- func NewGetAnomalyAlertsParamsWithTimeout(timeout time.Duration) *GetAnomalyAlertsParams
- func (o *GetAnomalyAlertsParams) SetContext(ctx context.Context)
- func (o *GetAnomalyAlertsParams) SetDefaults()
- func (o *GetAnomalyAlertsParams) SetHTTPClient(client *http.Client)
- func (o *GetAnomalyAlertsParams) SetLimit(limit *int32)
- func (o *GetAnomalyAlertsParams) SetPage(page *int32)
- func (o *GetAnomalyAlertsParams) SetTimeout(timeout time.Duration)
- func (o *GetAnomalyAlertsParams) WithContext(ctx context.Context) *GetAnomalyAlertsParams
- func (o *GetAnomalyAlertsParams) WithDefaults() *GetAnomalyAlertsParams
- func (o *GetAnomalyAlertsParams) WithHTTPClient(client *http.Client) *GetAnomalyAlertsParams
- func (o *GetAnomalyAlertsParams) WithLimit(limit *int32) *GetAnomalyAlertsParams
- func (o *GetAnomalyAlertsParams) WithPage(page *int32) *GetAnomalyAlertsParams
- func (o *GetAnomalyAlertsParams) WithTimeout(timeout time.Duration) *GetAnomalyAlertsParams
- func (o *GetAnomalyAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAnomalyAlertsReader
- type UpdateAnomalyAlertBadRequest
- func (o *UpdateAnomalyAlertBadRequest) Code() int
- func (o *UpdateAnomalyAlertBadRequest) Error() string
- func (o *UpdateAnomalyAlertBadRequest) GetPayload() *models.Errors
- func (o *UpdateAnomalyAlertBadRequest) IsClientError() bool
- func (o *UpdateAnomalyAlertBadRequest) IsCode(code int) bool
- func (o *UpdateAnomalyAlertBadRequest) IsRedirect() bool
- func (o *UpdateAnomalyAlertBadRequest) IsServerError() bool
- func (o *UpdateAnomalyAlertBadRequest) IsSuccess() bool
- func (o *UpdateAnomalyAlertBadRequest) String() string
- type UpdateAnomalyAlertForbidden
- func (o *UpdateAnomalyAlertForbidden) Code() int
- func (o *UpdateAnomalyAlertForbidden) Error() string
- func (o *UpdateAnomalyAlertForbidden) GetPayload() *models.Errors
- func (o *UpdateAnomalyAlertForbidden) IsClientError() bool
- func (o *UpdateAnomalyAlertForbidden) IsCode(code int) bool
- func (o *UpdateAnomalyAlertForbidden) IsRedirect() bool
- func (o *UpdateAnomalyAlertForbidden) IsServerError() bool
- func (o *UpdateAnomalyAlertForbidden) IsSuccess() bool
- func (o *UpdateAnomalyAlertForbidden) String() string
- type UpdateAnomalyAlertNotFound
- func (o *UpdateAnomalyAlertNotFound) Code() int
- func (o *UpdateAnomalyAlertNotFound) Error() string
- func (o *UpdateAnomalyAlertNotFound) GetPayload() *models.Errors
- func (o *UpdateAnomalyAlertNotFound) IsClientError() bool
- func (o *UpdateAnomalyAlertNotFound) IsCode(code int) bool
- func (o *UpdateAnomalyAlertNotFound) IsRedirect() bool
- func (o *UpdateAnomalyAlertNotFound) IsServerError() bool
- func (o *UpdateAnomalyAlertNotFound) IsSuccess() bool
- func (o *UpdateAnomalyAlertNotFound) String() string
- type UpdateAnomalyAlertOK
- func (o *UpdateAnomalyAlertOK) Code() int
- func (o *UpdateAnomalyAlertOK) Error() string
- func (o *UpdateAnomalyAlertOK) GetPayload() *models.AnomalyAlert
- func (o *UpdateAnomalyAlertOK) IsClientError() bool
- func (o *UpdateAnomalyAlertOK) IsCode(code int) bool
- func (o *UpdateAnomalyAlertOK) IsRedirect() bool
- func (o *UpdateAnomalyAlertOK) IsServerError() bool
- func (o *UpdateAnomalyAlertOK) IsSuccess() bool
- func (o *UpdateAnomalyAlertOK) String() string
- type UpdateAnomalyAlertParams
- func NewUpdateAnomalyAlertParams() *UpdateAnomalyAlertParams
- func NewUpdateAnomalyAlertParamsWithContext(ctx context.Context) *UpdateAnomalyAlertParams
- func NewUpdateAnomalyAlertParamsWithHTTPClient(client *http.Client) *UpdateAnomalyAlertParams
- func NewUpdateAnomalyAlertParamsWithTimeout(timeout time.Duration) *UpdateAnomalyAlertParams
- func (o *UpdateAnomalyAlertParams) SetAnomalyAlertToken(anomalyAlertToken string)
- func (o *UpdateAnomalyAlertParams) SetContext(ctx context.Context)
- func (o *UpdateAnomalyAlertParams) SetDefaults()
- func (o *UpdateAnomalyAlertParams) SetHTTPClient(client *http.Client)
- func (o *UpdateAnomalyAlertParams) SetTimeout(timeout time.Duration)
- func (o *UpdateAnomalyAlertParams) SetUpdateAnomalyAlert(updateAnomalyAlert *models.UpdateAnomalyAlert)
- func (o *UpdateAnomalyAlertParams) WithAnomalyAlertToken(anomalyAlertToken string) *UpdateAnomalyAlertParams
- func (o *UpdateAnomalyAlertParams) WithContext(ctx context.Context) *UpdateAnomalyAlertParams
- func (o *UpdateAnomalyAlertParams) WithDefaults() *UpdateAnomalyAlertParams
- func (o *UpdateAnomalyAlertParams) WithHTTPClient(client *http.Client) *UpdateAnomalyAlertParams
- func (o *UpdateAnomalyAlertParams) WithTimeout(timeout time.Duration) *UpdateAnomalyAlertParams
- func (o *UpdateAnomalyAlertParams) WithUpdateAnomalyAlert(updateAnomalyAlert *models.UpdateAnomalyAlert) *UpdateAnomalyAlertParams
- func (o *UpdateAnomalyAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateAnomalyAlertReader
- type UpdateAnomalyAlertUnprocessableEntity
- func (o *UpdateAnomalyAlertUnprocessableEntity) Code() int
- func (o *UpdateAnomalyAlertUnprocessableEntity) Error() string
- func (o *UpdateAnomalyAlertUnprocessableEntity) GetPayload() *models.Errors
- func (o *UpdateAnomalyAlertUnprocessableEntity) IsClientError() bool
- func (o *UpdateAnomalyAlertUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateAnomalyAlertUnprocessableEntity) IsRedirect() bool
- func (o *UpdateAnomalyAlertUnprocessableEntity) IsServerError() bool
- func (o *UpdateAnomalyAlertUnprocessableEntity) IsSuccess() bool
- func (o *UpdateAnomalyAlertUnprocessableEntity) String() string
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 ¶
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 ¶
func (o *GetAnomalyAlertParams) WithContext(ctx context.Context) *GetAnomalyAlertParams
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 ¶
func (o *GetAnomalyAlertsParams) WithContext(ctx context.Context) *GetAnomalyAlertsParams
WithContext adds the context to the get anomaly alerts params
func (*GetAnomalyAlertsParams) WithDefaults ¶
func (o *GetAnomalyAlertsParams) WithDefaults() *GetAnomalyAlertsParams
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 ¶
func (o *GetAnomalyAlertsParams) WithPage(page *int32) *GetAnomalyAlertsParams
WithPage adds the page to the get anomaly alerts params
func (*GetAnomalyAlertsParams) WithTimeout ¶
func (o *GetAnomalyAlertsParams) WithTimeout(timeout time.Duration) *GetAnomalyAlertsParams
WithTimeout adds the timeout to the get anomaly alerts params
func (*GetAnomalyAlertsParams) WriteToRequest ¶
func (o *GetAnomalyAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *UpdateAnomalyAlertBadRequest) Code() int
Code gets the status code for the update anomaly alert bad request response
func (*UpdateAnomalyAlertBadRequest) Error ¶
func (o *UpdateAnomalyAlertBadRequest) Error() string
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 ¶
func (o *UpdateAnomalyAlertBadRequest) String() string
type UpdateAnomalyAlertForbidden ¶
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 (o *UpdateAnomalyAlertForbidden) Error() string
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 ¶
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 (o *UpdateAnomalyAlertNotFound) Error() string
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 ¶
func (o *UpdateAnomalyAlertParams) WithContext(ctx context.Context) *UpdateAnomalyAlertParams
WithContext adds the context to the update anomaly alert params
func (*UpdateAnomalyAlertParams) WithDefaults ¶
func (o *UpdateAnomalyAlertParams) WithDefaults() *UpdateAnomalyAlertParams
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 ¶
func (o *UpdateAnomalyAlertParams) WithTimeout(timeout time.Duration) *UpdateAnomalyAlertParams
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 ¶
func (o *UpdateAnomalyAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *UpdateAnomalyAlertUnprocessableEntity) Code() int
Code gets the status code for the update anomaly alert unprocessable entity response
func (*UpdateAnomalyAlertUnprocessableEntity) Error ¶
func (o *UpdateAnomalyAlertUnprocessableEntity) Error() string
func (*UpdateAnomalyAlertUnprocessableEntity) GetPayload ¶
func (o *UpdateAnomalyAlertUnprocessableEntity) GetPayload() *models.Errors
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 ¶
func (o *UpdateAnomalyAlertUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update anomaly alert unprocessable entity response a status code equal to that given
func (*UpdateAnomalyAlertUnprocessableEntity) IsRedirect ¶
func (o *UpdateAnomalyAlertUnprocessableEntity) IsRedirect() bool
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 ¶
func (o *UpdateAnomalyAlertUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update anomaly alert unprocessable entity response has a 2xx status code
func (*UpdateAnomalyAlertUnprocessableEntity) String ¶
func (o *UpdateAnomalyAlertUnprocessableEntity) String() string