streams_alerts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: BSD-3-Clause 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 streams alerts API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new streams alerts API client.

func (*Client) ListRecent

func (a *Client) ListRecent(params *ListRecentParams, authInfo runtime.ClientAuthInfoWriter) (*ListRecentOK, error)

ListRecent gets the most recent alarms of all streams

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ListRecentBadRequest

type ListRecentBadRequest struct {
}

ListRecentBadRequest handles this case with default header values.

Invalid ObjectId.

func NewListRecentBadRequest

func NewListRecentBadRequest() *ListRecentBadRequest

NewListRecentBadRequest creates a ListRecentBadRequest with default headers values

func (*ListRecentBadRequest) Error

func (o *ListRecentBadRequest) Error() string

type ListRecentOK

type ListRecentOK struct {
	Payload *models.AlertListSummary
}

ListRecentOK handles this case with default header values.

No response was specified

func NewListRecentOK

func NewListRecentOK() *ListRecentOK

NewListRecentOK creates a ListRecentOK with default headers values

func (*ListRecentOK) Error

func (o *ListRecentOK) Error() string

type ListRecentParams

type ListRecentParams struct {

	/*Limit
	  Maximum number of alerts to return.

	*/
	Limit *int64
	/*Since
	  Optional parameter to define a lower date boundary. (UNIX timestamp)

	*/
	Since *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListRecentParams contains all the parameters to send to the API endpoint for the list recent operation typically these are written to a http.Request

func NewListRecentParams

func NewListRecentParams() *ListRecentParams

NewListRecentParams creates a new ListRecentParams object with the default values initialized.

func NewListRecentParamsWithContext

func NewListRecentParamsWithContext(ctx context.Context) *ListRecentParams

NewListRecentParamsWithContext creates a new ListRecentParams object with the default values initialized, and the ability to set a context for a request

func NewListRecentParamsWithHTTPClient

func NewListRecentParamsWithHTTPClient(client *http.Client) *ListRecentParams

NewListRecentParamsWithHTTPClient creates a new ListRecentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListRecentParamsWithTimeout

func NewListRecentParamsWithTimeout(timeout time.Duration) *ListRecentParams

NewListRecentParamsWithTimeout creates a new ListRecentParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListRecentParams) SetContext

func (o *ListRecentParams) SetContext(ctx context.Context)

SetContext adds the context to the list recent params

func (*ListRecentParams) SetHTTPClient

func (o *ListRecentParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list recent params

func (*ListRecentParams) SetLimit

func (o *ListRecentParams) SetLimit(limit *int64)

SetLimit adds the limit to the list recent params

func (*ListRecentParams) SetSince

func (o *ListRecentParams) SetSince(since *int64)

SetSince adds the since to the list recent params

func (*ListRecentParams) SetTimeout

func (o *ListRecentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list recent params

func (*ListRecentParams) WithContext

func (o *ListRecentParams) WithContext(ctx context.Context) *ListRecentParams

WithContext adds the context to the list recent params

func (*ListRecentParams) WithHTTPClient

func (o *ListRecentParams) WithHTTPClient(client *http.Client) *ListRecentParams

WithHTTPClient adds the HTTPClient to the list recent params

func (*ListRecentParams) WithLimit

func (o *ListRecentParams) WithLimit(limit *int64) *ListRecentParams

WithLimit adds the limit to the list recent params

func (*ListRecentParams) WithSince

func (o *ListRecentParams) WithSince(since *int64) *ListRecentParams

WithSince adds the since to the list recent params

func (*ListRecentParams) WithTimeout

func (o *ListRecentParams) WithTimeout(timeout time.Duration) *ListRecentParams

WithTimeout adds the timeout to the list recent params

func (*ListRecentParams) WriteToRequest

func (o *ListRecentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListRecentReader

type ListRecentReader struct {
	// contains filtered or unexported fields
}

ListRecentReader is a Reader for the ListRecent structure.

func (*ListRecentReader) ReadResponse

func (o *ListRecentReader) 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