monitors

package
v0.0.0-...-13dad8c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 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 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

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

WithMax adds the max to the update monitor params

func (*UpdateMonitorParams) WithMin

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.

Jump to

Keyboard shortcuts

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