Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetAlertsOK, error)
- func (a *Client) GetAlertsConnection(params *GetAlertsConnectionParams, opts ...ClientOption) (*GetAlertsConnectionOK, error)
- func (a *Client) ResolveAlert(params *ResolveAlertParams, opts ...ClientOption) (*ResolveAlertOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAlertsBadRequest
- type GetAlertsConnectionBadRequest
- type GetAlertsConnectionInternalServerError
- type GetAlertsConnectionNotFound
- type GetAlertsConnectionOK
- type GetAlertsConnectionParams
- func NewGetAlertsConnectionParams() *GetAlertsConnectionParams
- func NewGetAlertsConnectionParamsWithContext(ctx context.Context) *GetAlertsConnectionParams
- func NewGetAlertsConnectionParamsWithHTTPClient(client *http.Client) *GetAlertsConnectionParams
- func NewGetAlertsConnectionParamsWithTimeout(timeout time.Duration) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetAlertsConnectionParams) SetContext(ctx context.Context)
- func (o *GetAlertsConnectionParams) SetDefaults()
- func (o *GetAlertsConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetAlertsConnectionParams) SetRequestBody(requestBody *models.GetAlertsConnectionRequestBody)
- func (o *GetAlertsConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetAlertsConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithContext(ctx context.Context) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithDefaults() *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithHTTPClient(client *http.Client) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithRequestBody(requestBody *models.GetAlertsConnectionRequestBody) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithTimeout(timeout time.Duration) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAlertsConnectionReader
- type GetAlertsInternalServerError
- type GetAlertsNotFound
- type GetAlertsOK
- type GetAlertsParams
- func (o *GetAlertsParams) SetContentLanguage(contentLanguage *string)
- func (o *GetAlertsParams) SetContext(ctx context.Context)
- func (o *GetAlertsParams) SetDefaults()
- func (o *GetAlertsParams) SetHTTPClient(client *http.Client)
- func (o *GetAlertsParams) SetRequestBody(requestBody *models.GetAlertsRequestBody)
- func (o *GetAlertsParams) SetTimeout(timeout time.Duration)
- func (o *GetAlertsParams) WithContentLanguage(contentLanguage *string) *GetAlertsParams
- func (o *GetAlertsParams) WithContext(ctx context.Context) *GetAlertsParams
- func (o *GetAlertsParams) WithDefaults() *GetAlertsParams
- func (o *GetAlertsParams) WithHTTPClient(client *http.Client) *GetAlertsParams
- func (o *GetAlertsParams) WithRequestBody(requestBody *models.GetAlertsRequestBody) *GetAlertsParams
- func (o *GetAlertsParams) WithTimeout(timeout time.Duration) *GetAlertsParams
- func (o *GetAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAlertsReader
- type ResolveAlertBadRequest
- type ResolveAlertInternalServerError
- type ResolveAlertNotFound
- type ResolveAlertOK
- type ResolveAlertParams
- func (o *ResolveAlertParams) SetContentLanguage(contentLanguage *string)
- func (o *ResolveAlertParams) SetContext(ctx context.Context)
- func (o *ResolveAlertParams) SetDefaults()
- func (o *ResolveAlertParams) SetHTTPClient(client *http.Client)
- func (o *ResolveAlertParams) SetRequestBody(requestBody *models.ResolveAlertParams)
- func (o *ResolveAlertParams) SetTimeout(timeout time.Duration)
- func (o *ResolveAlertParams) WithContentLanguage(contentLanguage *string) *ResolveAlertParams
- func (o *ResolveAlertParams) WithContext(ctx context.Context) *ResolveAlertParams
- func (o *ResolveAlertParams) WithDefaults() *ResolveAlertParams
- func (o *ResolveAlertParams) WithHTTPClient(client *http.Client) *ResolveAlertParams
- func (o *ResolveAlertParams) WithRequestBody(requestBody *models.ResolveAlertParams) *ResolveAlertParams
- func (o *ResolveAlertParams) WithTimeout(timeout time.Duration) *ResolveAlertParams
- func (o *ResolveAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ResolveAlertReader
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 alert API
func (*Client) GetAlerts ¶
func (a *Client) GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetAlertsOK, error)
GetAlerts get alerts API
func (*Client) GetAlertsConnection ¶
func (a *Client) GetAlertsConnection(params *GetAlertsConnectionParams, opts ...ClientOption) (*GetAlertsConnectionOK, error)
GetAlertsConnection get alerts connection API
func (*Client) ResolveAlert ¶
func (a *Client) ResolveAlert(params *ResolveAlertParams, opts ...ClientOption) (*ResolveAlertOK, error)
ResolveAlert resolve alert API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetAlertsOK, error) GetAlertsConnection(params *GetAlertsConnectionParams, opts ...ClientOption) (*GetAlertsConnectionOK, error) ResolveAlert(params *ResolveAlertParams, opts ...ClientOption) (*ResolveAlertOK, 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 alert API client.
type GetAlertsBadRequest ¶
GetAlertsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetAlertsBadRequest ¶
func NewGetAlertsBadRequest() *GetAlertsBadRequest
NewGetAlertsBadRequest creates a GetAlertsBadRequest with default headers values
func (*GetAlertsBadRequest) Error ¶
func (o *GetAlertsBadRequest) Error() string
func (*GetAlertsBadRequest) GetPayload ¶
func (o *GetAlertsBadRequest) GetPayload() *models.ErrorBody
type GetAlertsConnectionBadRequest ¶
GetAlertsConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetAlertsConnectionBadRequest ¶
func NewGetAlertsConnectionBadRequest() *GetAlertsConnectionBadRequest
NewGetAlertsConnectionBadRequest creates a GetAlertsConnectionBadRequest with default headers values
func (*GetAlertsConnectionBadRequest) Error ¶
func (o *GetAlertsConnectionBadRequest) Error() string
func (*GetAlertsConnectionBadRequest) GetPayload ¶
func (o *GetAlertsConnectionBadRequest) GetPayload() *models.ErrorBody
type GetAlertsConnectionInternalServerError ¶
GetAlertsConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetAlertsConnectionInternalServerError ¶
func NewGetAlertsConnectionInternalServerError() *GetAlertsConnectionInternalServerError
NewGetAlertsConnectionInternalServerError creates a GetAlertsConnectionInternalServerError with default headers values
func (*GetAlertsConnectionInternalServerError) Error ¶
func (o *GetAlertsConnectionInternalServerError) Error() string
func (*GetAlertsConnectionInternalServerError) GetPayload ¶
func (o *GetAlertsConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetAlertsConnectionNotFound ¶
GetAlertsConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetAlertsConnectionNotFound ¶
func NewGetAlertsConnectionNotFound() *GetAlertsConnectionNotFound
NewGetAlertsConnectionNotFound creates a GetAlertsConnectionNotFound with default headers values
func (*GetAlertsConnectionNotFound) Error ¶
func (o *GetAlertsConnectionNotFound) Error() string
func (*GetAlertsConnectionNotFound) GetPayload ¶
func (o *GetAlertsConnectionNotFound) GetPayload() *models.ErrorBody
type GetAlertsConnectionOK ¶
type GetAlertsConnectionOK struct {
Payload *models.AlertConnection
}
GetAlertsConnectionOK describes a response with status code 200, with default header values.
Ok
func NewGetAlertsConnectionOK ¶
func NewGetAlertsConnectionOK() *GetAlertsConnectionOK
NewGetAlertsConnectionOK creates a GetAlertsConnectionOK with default headers values
func (*GetAlertsConnectionOK) Error ¶
func (o *GetAlertsConnectionOK) Error() string
func (*GetAlertsConnectionOK) GetPayload ¶
func (o *GetAlertsConnectionOK) GetPayload() *models.AlertConnection
type GetAlertsConnectionParams ¶
type GetAlertsConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetAlertsConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAlertsConnectionParams contains all the parameters to send to the API endpoint
for the get alerts connection operation. Typically these are written to a http.Request.
func NewGetAlertsConnectionParams ¶
func NewGetAlertsConnectionParams() *GetAlertsConnectionParams
NewGetAlertsConnectionParams creates a new GetAlertsConnectionParams 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 NewGetAlertsConnectionParamsWithContext ¶
func NewGetAlertsConnectionParamsWithContext(ctx context.Context) *GetAlertsConnectionParams
NewGetAlertsConnectionParamsWithContext creates a new GetAlertsConnectionParams object with the ability to set a context for a request.
func NewGetAlertsConnectionParamsWithHTTPClient ¶
func NewGetAlertsConnectionParamsWithHTTPClient(client *http.Client) *GetAlertsConnectionParams
NewGetAlertsConnectionParamsWithHTTPClient creates a new GetAlertsConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetAlertsConnectionParamsWithTimeout ¶
func NewGetAlertsConnectionParamsWithTimeout(timeout time.Duration) *GetAlertsConnectionParams
NewGetAlertsConnectionParamsWithTimeout creates a new GetAlertsConnectionParams object with the ability to set a timeout on a request.
func (*GetAlertsConnectionParams) SetContentLanguage ¶
func (o *GetAlertsConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get alerts connection params
func (*GetAlertsConnectionParams) SetContext ¶
func (o *GetAlertsConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get alerts connection params
func (*GetAlertsConnectionParams) SetDefaults ¶
func (o *GetAlertsConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get alerts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsConnectionParams) SetHTTPClient ¶
func (o *GetAlertsConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get alerts connection params
func (*GetAlertsConnectionParams) SetRequestBody ¶
func (o *GetAlertsConnectionParams) SetRequestBody(requestBody *models.GetAlertsConnectionRequestBody)
SetRequestBody adds the requestBody to the get alerts connection params
func (*GetAlertsConnectionParams) SetTimeout ¶
func (o *GetAlertsConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get alerts connection params
func (*GetAlertsConnectionParams) WithContentLanguage ¶
func (o *GetAlertsConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertsConnectionParams
WithContentLanguage adds the contentLanguage to the get alerts connection params
func (*GetAlertsConnectionParams) WithContext ¶
func (o *GetAlertsConnectionParams) WithContext(ctx context.Context) *GetAlertsConnectionParams
WithContext adds the context to the get alerts connection params
func (*GetAlertsConnectionParams) WithDefaults ¶
func (o *GetAlertsConnectionParams) WithDefaults() *GetAlertsConnectionParams
WithDefaults hydrates default values in the get alerts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsConnectionParams) WithHTTPClient ¶
func (o *GetAlertsConnectionParams) WithHTTPClient(client *http.Client) *GetAlertsConnectionParams
WithHTTPClient adds the HTTPClient to the get alerts connection params
func (*GetAlertsConnectionParams) WithRequestBody ¶
func (o *GetAlertsConnectionParams) WithRequestBody(requestBody *models.GetAlertsConnectionRequestBody) *GetAlertsConnectionParams
WithRequestBody adds the requestBody to the get alerts connection params
func (*GetAlertsConnectionParams) WithTimeout ¶
func (o *GetAlertsConnectionParams) WithTimeout(timeout time.Duration) *GetAlertsConnectionParams
WithTimeout adds the timeout to the get alerts connection params
func (*GetAlertsConnectionParams) WriteToRequest ¶
func (o *GetAlertsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAlertsConnectionReader ¶
type GetAlertsConnectionReader struct {
// contains filtered or unexported fields
}
GetAlertsConnectionReader is a Reader for the GetAlertsConnection structure.
func (*GetAlertsConnectionReader) ReadResponse ¶
func (o *GetAlertsConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAlertsInternalServerError ¶
GetAlertsInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetAlertsInternalServerError ¶
func NewGetAlertsInternalServerError() *GetAlertsInternalServerError
NewGetAlertsInternalServerError creates a GetAlertsInternalServerError with default headers values
func (*GetAlertsInternalServerError) Error ¶
func (o *GetAlertsInternalServerError) Error() string
func (*GetAlertsInternalServerError) GetPayload ¶
func (o *GetAlertsInternalServerError) GetPayload() *models.ErrorBody
type GetAlertsNotFound ¶
GetAlertsNotFound describes a response with status code 404, with default header values.
Not found
func NewGetAlertsNotFound ¶
func NewGetAlertsNotFound() *GetAlertsNotFound
NewGetAlertsNotFound creates a GetAlertsNotFound with default headers values
func (*GetAlertsNotFound) Error ¶
func (o *GetAlertsNotFound) Error() string
func (*GetAlertsNotFound) GetPayload ¶
func (o *GetAlertsNotFound) GetPayload() *models.ErrorBody
type GetAlertsOK ¶
GetAlertsOK describes a response with status code 200, with default header values.
Ok
func NewGetAlertsOK ¶
func NewGetAlertsOK() *GetAlertsOK
NewGetAlertsOK creates a GetAlertsOK with default headers values
func (*GetAlertsOK) Error ¶
func (o *GetAlertsOK) Error() string
func (*GetAlertsOK) GetPayload ¶
func (o *GetAlertsOK) GetPayload() []*models.Alert
type GetAlertsParams ¶
type GetAlertsParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetAlertsRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAlertsParams contains all the parameters to send to the API endpoint
for the get alerts operation. Typically these are written to a http.Request.
func NewGetAlertsParams ¶
func NewGetAlertsParams() *GetAlertsParams
NewGetAlertsParams creates a new GetAlertsParams 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 NewGetAlertsParamsWithContext ¶
func NewGetAlertsParamsWithContext(ctx context.Context) *GetAlertsParams
NewGetAlertsParamsWithContext creates a new GetAlertsParams object with the ability to set a context for a request.
func NewGetAlertsParamsWithHTTPClient ¶
func NewGetAlertsParamsWithHTTPClient(client *http.Client) *GetAlertsParams
NewGetAlertsParamsWithHTTPClient creates a new GetAlertsParams object with the ability to set a custom HTTPClient for a request.
func NewGetAlertsParamsWithTimeout ¶
func NewGetAlertsParamsWithTimeout(timeout time.Duration) *GetAlertsParams
NewGetAlertsParamsWithTimeout creates a new GetAlertsParams object with the ability to set a timeout on a request.
func (*GetAlertsParams) SetContentLanguage ¶
func (o *GetAlertsParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get alerts params
func (*GetAlertsParams) SetContext ¶
func (o *GetAlertsParams) SetContext(ctx context.Context)
SetContext adds the context to the get alerts params
func (*GetAlertsParams) SetDefaults ¶
func (o *GetAlertsParams) SetDefaults()
SetDefaults hydrates default values in the get alerts params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsParams) SetHTTPClient ¶
func (o *GetAlertsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get alerts params
func (*GetAlertsParams) SetRequestBody ¶
func (o *GetAlertsParams) SetRequestBody(requestBody *models.GetAlertsRequestBody)
SetRequestBody adds the requestBody to the get alerts params
func (*GetAlertsParams) SetTimeout ¶
func (o *GetAlertsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get alerts params
func (*GetAlertsParams) WithContentLanguage ¶
func (o *GetAlertsParams) WithContentLanguage(contentLanguage *string) *GetAlertsParams
WithContentLanguage adds the contentLanguage to the get alerts params
func (*GetAlertsParams) WithContext ¶
func (o *GetAlertsParams) WithContext(ctx context.Context) *GetAlertsParams
WithContext adds the context to the get alerts params
func (*GetAlertsParams) WithDefaults ¶
func (o *GetAlertsParams) WithDefaults() *GetAlertsParams
WithDefaults hydrates default values in the get alerts params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsParams) WithHTTPClient ¶
func (o *GetAlertsParams) WithHTTPClient(client *http.Client) *GetAlertsParams
WithHTTPClient adds the HTTPClient to the get alerts params
func (*GetAlertsParams) WithRequestBody ¶
func (o *GetAlertsParams) WithRequestBody(requestBody *models.GetAlertsRequestBody) *GetAlertsParams
WithRequestBody adds the requestBody to the get alerts params
func (*GetAlertsParams) WithTimeout ¶
func (o *GetAlertsParams) WithTimeout(timeout time.Duration) *GetAlertsParams
WithTimeout adds the timeout to the get alerts params
func (*GetAlertsParams) WriteToRequest ¶
func (o *GetAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAlertsReader ¶
type GetAlertsReader struct {
// contains filtered or unexported fields
}
GetAlertsReader is a Reader for the GetAlerts structure.
func (*GetAlertsReader) ReadResponse ¶
func (o *GetAlertsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ResolveAlertBadRequest ¶
ResolveAlertBadRequest describes a response with status code 400, with default header values.
Bad request
func NewResolveAlertBadRequest ¶
func NewResolveAlertBadRequest() *ResolveAlertBadRequest
NewResolveAlertBadRequest creates a ResolveAlertBadRequest with default headers values
func (*ResolveAlertBadRequest) Error ¶
func (o *ResolveAlertBadRequest) Error() string
func (*ResolveAlertBadRequest) GetPayload ¶
func (o *ResolveAlertBadRequest) GetPayload() *models.ErrorBody
type ResolveAlertInternalServerError ¶
ResolveAlertInternalServerError describes a response with status code 500, with default header values.
Server error
func NewResolveAlertInternalServerError ¶
func NewResolveAlertInternalServerError() *ResolveAlertInternalServerError
NewResolveAlertInternalServerError creates a ResolveAlertInternalServerError with default headers values
func (*ResolveAlertInternalServerError) Error ¶
func (o *ResolveAlertInternalServerError) Error() string
func (*ResolveAlertInternalServerError) GetPayload ¶
func (o *ResolveAlertInternalServerError) GetPayload() *models.ErrorBody
type ResolveAlertNotFound ¶
ResolveAlertNotFound describes a response with status code 404, with default header values.
Not found
func NewResolveAlertNotFound ¶
func NewResolveAlertNotFound() *ResolveAlertNotFound
NewResolveAlertNotFound creates a ResolveAlertNotFound with default headers values
func (*ResolveAlertNotFound) Error ¶
func (o *ResolveAlertNotFound) Error() string
func (*ResolveAlertNotFound) GetPayload ¶
func (o *ResolveAlertNotFound) GetPayload() *models.ErrorBody
type ResolveAlertOK ¶
type ResolveAlertOK struct {
Payload []*models.WithTaskAlert
}
ResolveAlertOK describes a response with status code 200, with default header values.
Ok
func NewResolveAlertOK ¶
func NewResolveAlertOK() *ResolveAlertOK
NewResolveAlertOK creates a ResolveAlertOK with default headers values
func (*ResolveAlertOK) Error ¶
func (o *ResolveAlertOK) Error() string
func (*ResolveAlertOK) GetPayload ¶
func (o *ResolveAlertOK) GetPayload() []*models.WithTaskAlert
type ResolveAlertParams ¶
type ResolveAlertParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.ResolveAlertParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ResolveAlertParams contains all the parameters to send to the API endpoint
for the resolve alert operation. Typically these are written to a http.Request.
func NewResolveAlertParams ¶
func NewResolveAlertParams() *ResolveAlertParams
NewResolveAlertParams creates a new ResolveAlertParams 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 NewResolveAlertParamsWithContext ¶
func NewResolveAlertParamsWithContext(ctx context.Context) *ResolveAlertParams
NewResolveAlertParamsWithContext creates a new ResolveAlertParams object with the ability to set a context for a request.
func NewResolveAlertParamsWithHTTPClient ¶
func NewResolveAlertParamsWithHTTPClient(client *http.Client) *ResolveAlertParams
NewResolveAlertParamsWithHTTPClient creates a new ResolveAlertParams object with the ability to set a custom HTTPClient for a request.
func NewResolveAlertParamsWithTimeout ¶
func NewResolveAlertParamsWithTimeout(timeout time.Duration) *ResolveAlertParams
NewResolveAlertParamsWithTimeout creates a new ResolveAlertParams object with the ability to set a timeout on a request.
func (*ResolveAlertParams) SetContentLanguage ¶
func (o *ResolveAlertParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the resolve alert params
func (*ResolveAlertParams) SetContext ¶
func (o *ResolveAlertParams) SetContext(ctx context.Context)
SetContext adds the context to the resolve alert params
func (*ResolveAlertParams) SetDefaults ¶
func (o *ResolveAlertParams) SetDefaults()
SetDefaults hydrates default values in the resolve alert params (not the query body).
All values with no default are reset to their zero value.
func (*ResolveAlertParams) SetHTTPClient ¶
func (o *ResolveAlertParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the resolve alert params
func (*ResolveAlertParams) SetRequestBody ¶
func (o *ResolveAlertParams) SetRequestBody(requestBody *models.ResolveAlertParams)
SetRequestBody adds the requestBody to the resolve alert params
func (*ResolveAlertParams) SetTimeout ¶
func (o *ResolveAlertParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the resolve alert params
func (*ResolveAlertParams) WithContentLanguage ¶
func (o *ResolveAlertParams) WithContentLanguage(contentLanguage *string) *ResolveAlertParams
WithContentLanguage adds the contentLanguage to the resolve alert params
func (*ResolveAlertParams) WithContext ¶
func (o *ResolveAlertParams) WithContext(ctx context.Context) *ResolveAlertParams
WithContext adds the context to the resolve alert params
func (*ResolveAlertParams) WithDefaults ¶
func (o *ResolveAlertParams) WithDefaults() *ResolveAlertParams
WithDefaults hydrates default values in the resolve alert params (not the query body).
All values with no default are reset to their zero value.
func (*ResolveAlertParams) WithHTTPClient ¶
func (o *ResolveAlertParams) WithHTTPClient(client *http.Client) *ResolveAlertParams
WithHTTPClient adds the HTTPClient to the resolve alert params
func (*ResolveAlertParams) WithRequestBody ¶
func (o *ResolveAlertParams) WithRequestBody(requestBody *models.ResolveAlertParams) *ResolveAlertParams
WithRequestBody adds the requestBody to the resolve alert params
func (*ResolveAlertParams) WithTimeout ¶
func (o *ResolveAlertParams) WithTimeout(timeout time.Duration) *ResolveAlertParams
WithTimeout adds the timeout to the resolve alert params
func (*ResolveAlertParams) WriteToRequest ¶
func (o *ResolveAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ResolveAlertReader ¶
type ResolveAlertReader struct {
// contains filtered or unexported fields
}
ResolveAlertReader is a Reader for the ResolveAlert structure.
func (*ResolveAlertReader) ReadResponse ¶
func (o *ResolveAlertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.