Documentation
¶
Index ¶
- type Client
- type HistoricSingleMetricOK
- type HistoricSingleMetricOKBody
- type HistoricSingleMetricParams
- func NewHistoricSingleMetricParams() *HistoricSingleMetricParams
- func NewHistoricSingleMetricParamsWithContext(ctx context.Context) *HistoricSingleMetricParams
- func NewHistoricSingleMetricParamsWithHTTPClient(client *http.Client) *HistoricSingleMetricParams
- func NewHistoricSingleMetricParamsWithTimeout(timeout time.Duration) *HistoricSingleMetricParams
- func (o *HistoricSingleMetricParams) SetAfter(after *int64)
- func (o *HistoricSingleMetricParams) SetContext(ctx context.Context)
- func (o *HistoricSingleMetricParams) SetHTTPClient(client *http.Client)
- func (o *HistoricSingleMetricParams) SetMetricName(metricName string)
- func (o *HistoricSingleMetricParams) SetTimeout(timeout time.Duration)
- func (o *HistoricSingleMetricParams) WithAfter(after *int64) *HistoricSingleMetricParams
- func (o *HistoricSingleMetricParams) WithContext(ctx context.Context) *HistoricSingleMetricParams
- func (o *HistoricSingleMetricParams) WithHTTPClient(client *http.Client) *HistoricSingleMetricParams
- func (o *HistoricSingleMetricParams) WithMetricName(metricName string) *HistoricSingleMetricParams
- func (o *HistoricSingleMetricParams) WithTimeout(timeout time.Duration) *HistoricSingleMetricParams
- func (o *HistoricSingleMetricParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type HistoricSingleMetricReader
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 ¶
func (o *HistoricSingleMetricParams) WithAfter(after *int64) *HistoricSingleMetricParams
WithAfter adds the after to the historic single metric params
func (*HistoricSingleMetricParams) WithContext ¶
func (o *HistoricSingleMetricParams) WithContext(ctx context.Context) *HistoricSingleMetricParams
WithContext adds the context to the historic single metric params
func (*HistoricSingleMetricParams) WithHTTPClient ¶
func (o *HistoricSingleMetricParams) WithHTTPClient(client *http.Client) *HistoricSingleMetricParams
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 ¶
func (o *HistoricSingleMetricParams) WithTimeout(timeout time.Duration) *HistoricSingleMetricParams
WithTimeout adds the timeout to the historic single metric params
func (*HistoricSingleMetricParams) WriteToRequest ¶
func (o *HistoricSingleMetricParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.