Documentation ¶
Index ¶
- type Client
- type UpdateAlertDefault
- type UpdateAlertOK
- type UpdateAlertParams
- func (o *UpdateAlertParams) SetContext(ctx context.Context)
- func (o *UpdateAlertParams) SetHTTPClient(client *http.Client)
- func (o *UpdateAlertParams) SetProbe(probe int64)
- func (o *UpdateAlertParams) SetTimeout(timeout time.Duration)
- func (o *UpdateAlertParams) WithContext(ctx context.Context) *UpdateAlertParams
- func (o *UpdateAlertParams) WithHTTPClient(client *http.Client) *UpdateAlertParams
- func (o *UpdateAlertParams) WithProbe(probe int64) *UpdateAlertParams
- func (o *UpdateAlertParams) WithTimeout(timeout time.Duration) *UpdateAlertParams
- func (o *UpdateAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateAlertReader
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 alerts API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new alerts API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateAlert ¶
func (a *Client) UpdateAlert(params *UpdateAlertParams) (*UpdateAlertOK, error)
UpdateAlert clears alert warning for a probe
type UpdateAlertDefault ¶
UpdateAlertDefault handles this case with default header values.
Unexpected error
func NewUpdateAlertDefault ¶
func NewUpdateAlertDefault(code int) *UpdateAlertDefault
NewUpdateAlertDefault creates a UpdateAlertDefault with default headers values
func (*UpdateAlertDefault) Code ¶
func (o *UpdateAlertDefault) Code() int
Code gets the status code for the update alert default response
func (*UpdateAlertDefault) Error ¶
func (o *UpdateAlertDefault) Error() string
type UpdateAlertOK ¶
type UpdateAlertOK struct { }
UpdateAlertOK handles this case with default header values.
The monitor was created successfully
func NewUpdateAlertOK ¶
func NewUpdateAlertOK() *UpdateAlertOK
NewUpdateAlertOK creates a UpdateAlertOK with default headers values
func (*UpdateAlertOK) Error ¶
func (o *UpdateAlertOK) Error() string
type UpdateAlertParams ¶
type UpdateAlertParams struct { /*Probe*/ Probe int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateAlertParams contains all the parameters to send to the API endpoint for the update alert operation typically these are written to a http.Request
func NewUpdateAlertParams ¶
func NewUpdateAlertParams() *UpdateAlertParams
NewUpdateAlertParams creates a new UpdateAlertParams object with the default values initialized.
func NewUpdateAlertParamsWithContext ¶
func NewUpdateAlertParamsWithContext(ctx context.Context) *UpdateAlertParams
NewUpdateAlertParamsWithContext creates a new UpdateAlertParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateAlertParamsWithHTTPClient ¶
func NewUpdateAlertParamsWithHTTPClient(client *http.Client) *UpdateAlertParams
NewUpdateAlertParamsWithHTTPClient creates a new UpdateAlertParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateAlertParamsWithTimeout ¶
func NewUpdateAlertParamsWithTimeout(timeout time.Duration) *UpdateAlertParams
NewUpdateAlertParamsWithTimeout creates a new UpdateAlertParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateAlertParams) SetContext ¶
func (o *UpdateAlertParams) SetContext(ctx context.Context)
SetContext adds the context to the update alert params
func (*UpdateAlertParams) SetHTTPClient ¶
func (o *UpdateAlertParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update alert params
func (*UpdateAlertParams) SetProbe ¶
func (o *UpdateAlertParams) SetProbe(probe int64)
SetProbe adds the probe to the update alert params
func (*UpdateAlertParams) SetTimeout ¶
func (o *UpdateAlertParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update alert params
func (*UpdateAlertParams) WithContext ¶
func (o *UpdateAlertParams) WithContext(ctx context.Context) *UpdateAlertParams
WithContext adds the context to the update alert params
func (*UpdateAlertParams) WithHTTPClient ¶
func (o *UpdateAlertParams) WithHTTPClient(client *http.Client) *UpdateAlertParams
WithHTTPClient adds the HTTPClient to the update alert params
func (*UpdateAlertParams) WithProbe ¶
func (o *UpdateAlertParams) WithProbe(probe int64) *UpdateAlertParams
WithProbe adds the probe to the update alert params
func (*UpdateAlertParams) WithTimeout ¶
func (o *UpdateAlertParams) WithTimeout(timeout time.Duration) *UpdateAlertParams
WithTimeout adds the timeout to the update alert params
func (*UpdateAlertParams) WriteToRequest ¶
func (o *UpdateAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateAlertReader ¶
type UpdateAlertReader struct {
// contains filtered or unexported fields
}
UpdateAlertReader is a Reader for the UpdateAlert structure.
func (*UpdateAlertReader) ReadResponse ¶
func (o *UpdateAlertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.