system_notifications

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: 10 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 system notifications API

func New

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

New creates a new system notifications API client.

func (*Client) HistoricSingleMetric

func (a *Client) HistoricSingleMetric(params *HistoricSingleMetricParams, authInfo runtime.ClientAuthInfoWriter) (*HistoricSingleMetricOK, error)

HistoricSingleMetric gets history of a single metric

The maximum retention time is currently only 5 minutes.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type HistoricSingleMetricOK

type HistoricSingleMetricOK struct {
	Payload HistoricSingleMetricOKBody
}

HistoricSingleMetricOK handles this case with default header values.

No response was specified

func NewHistoricSingleMetricOK

func NewHistoricSingleMetricOK() *HistoricSingleMetricOK

NewHistoricSingleMetricOK creates a HistoricSingleMetricOK with default headers values

func (*HistoricSingleMetricOK) Error

func (o *HistoricSingleMetricOK) Error() string

type HistoricSingleMetricOKBody

type HistoricSingleMetricOKBody interface{}

HistoricSingleMetricOKBody historic single metric o k body swagger:model HistoricSingleMetricOKBody

type HistoricSingleMetricParams

type HistoricSingleMetricParams struct {

	/*After
	  Only values for after this UTC timestamp (1970 epoch)

	*/
	After *int64
	/*MetricName*/
	MetricName string

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

HistoricSingleMetricParams contains all the parameters to send to the API endpoint for the historic single metric operation typically these are written to a http.Request

func NewHistoricSingleMetricParams

func NewHistoricSingleMetricParams() *HistoricSingleMetricParams

NewHistoricSingleMetricParams creates a new HistoricSingleMetricParams object with the default values initialized.

func NewHistoricSingleMetricParamsWithContext

func NewHistoricSingleMetricParamsWithContext(ctx context.Context) *HistoricSingleMetricParams

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

func NewHistoricSingleMetricParamsWithHTTPClient

func NewHistoricSingleMetricParamsWithHTTPClient(client *http.Client) *HistoricSingleMetricParams

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

func NewHistoricSingleMetricParamsWithTimeout

func NewHistoricSingleMetricParamsWithTimeout(timeout time.Duration) *HistoricSingleMetricParams

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

func (*HistoricSingleMetricParams) SetAfter

func (o *HistoricSingleMetricParams) SetAfter(after *int64)

SetAfter adds the after to the historic single metric params

func (*HistoricSingleMetricParams) SetContext

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

SetContext adds the context to the historic single metric params

func (*HistoricSingleMetricParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the historic single metric params

func (*HistoricSingleMetricParams) SetMetricName

func (o *HistoricSingleMetricParams) SetMetricName(metricName string)

SetMetricName adds the metricName to the historic single metric params

func (*HistoricSingleMetricParams) SetTimeout

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

SetTimeout adds the timeout to the historic single metric params

func (*HistoricSingleMetricParams) WithAfter

WithAfter adds the after to the historic single metric params

func (*HistoricSingleMetricParams) WithContext

WithContext adds the context to the historic single metric params

func (*HistoricSingleMetricParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the historic single metric params

func (*HistoricSingleMetricParams) WithMetricName

func (o *HistoricSingleMetricParams) WithMetricName(metricName string) *HistoricSingleMetricParams

WithMetricName adds the metricName to the historic single metric params

func (*HistoricSingleMetricParams) WithTimeout

WithTimeout adds the timeout to the historic single metric params

func (*HistoricSingleMetricParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type HistoricSingleMetricReader

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

HistoricSingleMetricReader is a Reader for the HistoricSingleMetric structure.

func (*HistoricSingleMetricReader) ReadResponse

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