Documentation
¶
Index ¶
- type Client
- type UpdateMonitorDefault
- type UpdateMonitorOK
- type UpdateMonitorParams
- func (o *UpdateMonitorParams) SetContext(ctx context.Context)
- func (o *UpdateMonitorParams) SetHTTPClient(client *http.Client)
- func (o *UpdateMonitorParams) SetMax(max int32)
- func (o *UpdateMonitorParams) SetMin(min int32)
- func (o *UpdateMonitorParams) SetProbe(probe int32)
- func (o *UpdateMonitorParams) SetScale(scale string)
- func (o *UpdateMonitorParams) SetTimeout(timeout time.Duration)
- func (o *UpdateMonitorParams) WithContext(ctx context.Context) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithHTTPClient(client *http.Client) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithMax(max int32) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithMin(min int32) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithProbe(probe int32) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithScale(scale string) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WithTimeout(timeout time.Duration) *UpdateMonitorParams
- func (o *UpdateMonitorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateMonitorReader
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 monitors API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new monitors API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateMonitor ¶
func (a *Client) UpdateMonitor(params *UpdateMonitorParams) (*UpdateMonitorOK, error)
UpdateMonitor updates monitor settings for the requested probe
type UpdateMonitorDefault ¶
type UpdateMonitorDefault struct { Payload *models.Error // contains filtered or unexported fields }
UpdateMonitorDefault handles this case with default header values.
Unexpected error
func NewUpdateMonitorDefault ¶
func NewUpdateMonitorDefault(code int) *UpdateMonitorDefault
NewUpdateMonitorDefault creates a UpdateMonitorDefault with default headers values
func (*UpdateMonitorDefault) Code ¶
func (o *UpdateMonitorDefault) Code() int
Code gets the status code for the update monitor default response
func (*UpdateMonitorDefault) Error ¶
func (o *UpdateMonitorDefault) Error() string
type UpdateMonitorOK ¶
type UpdateMonitorOK struct { }
UpdateMonitorOK handles this case with default header values.
The monitor was created successfully
func NewUpdateMonitorOK ¶
func NewUpdateMonitorOK() *UpdateMonitorOK
NewUpdateMonitorOK creates a UpdateMonitorOK with default headers values
func (*UpdateMonitorOK) Error ¶
func (o *UpdateMonitorOK) Error() string
type UpdateMonitorParams ¶
type UpdateMonitorParams struct { /*Max The maximium temperature, above which an alert will be generated */ Max int32 /*Min The minimum temperature, below which an alert will be generated */ Min int32 /*Probe*/ Probe int32 /*Scale The temperature scale */ Scale string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateMonitorParams contains all the parameters to send to the API endpoint for the update monitor operation typically these are written to a http.Request
func NewUpdateMonitorParams ¶
func NewUpdateMonitorParams() *UpdateMonitorParams
NewUpdateMonitorParams creates a new UpdateMonitorParams object with the default values initialized.
func NewUpdateMonitorParamsWithContext ¶
func NewUpdateMonitorParamsWithContext(ctx context.Context) *UpdateMonitorParams
NewUpdateMonitorParamsWithContext creates a new UpdateMonitorParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateMonitorParamsWithHTTPClient ¶
func NewUpdateMonitorParamsWithHTTPClient(client *http.Client) *UpdateMonitorParams
NewUpdateMonitorParamsWithHTTPClient creates a new UpdateMonitorParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateMonitorParamsWithTimeout ¶
func NewUpdateMonitorParamsWithTimeout(timeout time.Duration) *UpdateMonitorParams
NewUpdateMonitorParamsWithTimeout creates a new UpdateMonitorParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateMonitorParams) SetContext ¶
func (o *UpdateMonitorParams) SetContext(ctx context.Context)
SetContext adds the context to the update monitor params
func (*UpdateMonitorParams) SetHTTPClient ¶
func (o *UpdateMonitorParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update monitor params
func (*UpdateMonitorParams) SetMax ¶
func (o *UpdateMonitorParams) SetMax(max int32)
SetMax adds the max to the update monitor params
func (*UpdateMonitorParams) SetMin ¶
func (o *UpdateMonitorParams) SetMin(min int32)
SetMin adds the min to the update monitor params
func (*UpdateMonitorParams) SetProbe ¶
func (o *UpdateMonitorParams) SetProbe(probe int32)
SetProbe adds the probe to the update monitor params
func (*UpdateMonitorParams) SetScale ¶
func (o *UpdateMonitorParams) SetScale(scale string)
SetScale adds the scale to the update monitor params
func (*UpdateMonitorParams) SetTimeout ¶
func (o *UpdateMonitorParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update monitor params
func (*UpdateMonitorParams) WithContext ¶
func (o *UpdateMonitorParams) WithContext(ctx context.Context) *UpdateMonitorParams
WithContext adds the context to the update monitor params
func (*UpdateMonitorParams) WithHTTPClient ¶
func (o *UpdateMonitorParams) WithHTTPClient(client *http.Client) *UpdateMonitorParams
WithHTTPClient adds the HTTPClient to the update monitor params
func (*UpdateMonitorParams) WithMax ¶
func (o *UpdateMonitorParams) WithMax(max int32) *UpdateMonitorParams
WithMax adds the max to the update monitor params
func (*UpdateMonitorParams) WithMin ¶
func (o *UpdateMonitorParams) WithMin(min int32) *UpdateMonitorParams
WithMin adds the min to the update monitor params
func (*UpdateMonitorParams) WithProbe ¶
func (o *UpdateMonitorParams) WithProbe(probe int32) *UpdateMonitorParams
WithProbe adds the probe to the update monitor params
func (*UpdateMonitorParams) WithScale ¶
func (o *UpdateMonitorParams) WithScale(scale string) *UpdateMonitorParams
WithScale adds the scale to the update monitor params
func (*UpdateMonitorParams) WithTimeout ¶
func (o *UpdateMonitorParams) WithTimeout(timeout time.Duration) *UpdateMonitorParams
WithTimeout adds the timeout to the update monitor params
func (*UpdateMonitorParams) WriteToRequest ¶
func (o *UpdateMonitorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateMonitorReader ¶
type UpdateMonitorReader struct {
// contains filtered or unexported fields
}
UpdateMonitorReader is a Reader for the UpdateMonitor structure.
func (*UpdateMonitorReader) ReadResponse ¶
func (o *UpdateMonitorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.