Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type StorageUsageSeriesHTTPPostBadRequest
- type StorageUsageSeriesHTTPPostBody
- func (o *StorageUsageSeriesHTTPPostBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *StorageUsageSeriesHTTPPostBody) MarshalBinary() ([]byte, error)
- func (o *StorageUsageSeriesHTTPPostBody) UnmarshalBinary(b []byte) error
- func (o *StorageUsageSeriesHTTPPostBody) Validate(formats strfmt.Registry) error
- type StorageUsageSeriesHTTPPostOK
- type StorageUsageSeriesHTTPPostParams
- func NewStorageUsageSeriesHTTPPostParams() *StorageUsageSeriesHTTPPostParams
- func NewStorageUsageSeriesHTTPPostParamsWithContext(ctx context.Context) *StorageUsageSeriesHTTPPostParams
- func NewStorageUsageSeriesHTTPPostParamsWithHTTPClient(client *http.Client) *StorageUsageSeriesHTTPPostParams
- func NewStorageUsageSeriesHTTPPostParamsWithTimeout(timeout time.Duration) *StorageUsageSeriesHTTPPostParams
- func (o *StorageUsageSeriesHTTPPostParams) SetBody(body StorageUsageSeriesHTTPPostBody)
- func (o *StorageUsageSeriesHTTPPostParams) SetContext(ctx context.Context)
- func (o *StorageUsageSeriesHTTPPostParams) SetDefaults()
- func (o *StorageUsageSeriesHTTPPostParams) SetHTTPClient(client *http.Client)
- func (o *StorageUsageSeriesHTTPPostParams) SetTimeout(timeout time.Duration)
- func (o *StorageUsageSeriesHTTPPostParams) WithBody(body StorageUsageSeriesHTTPPostBody) *StorageUsageSeriesHTTPPostParams
- func (o *StorageUsageSeriesHTTPPostParams) WithContext(ctx context.Context) *StorageUsageSeriesHTTPPostParams
- func (o *StorageUsageSeriesHTTPPostParams) WithDefaults() *StorageUsageSeriesHTTPPostParams
- func (o *StorageUsageSeriesHTTPPostParams) WithHTTPClient(client *http.Client) *StorageUsageSeriesHTTPPostParams
- func (o *StorageUsageSeriesHTTPPostParams) WithTimeout(timeout time.Duration) *StorageUsageSeriesHTTPPostParams
- func (o *StorageUsageSeriesHTTPPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StorageUsageSeriesHTTPPostReader
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 statistics API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) StorageUsageSeriesHTTPPost ¶
func (a *Client) StorageUsageSeriesHTTPPost(params *StorageUsageSeriesHTTPPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageUsageSeriesHTTPPostOK, error)
StorageUsageSeriesHTTPPost storages usage series
Shows storage usage data in series format filtered by clients, storages and interval
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { StorageUsageSeriesHTTPPost(params *StorageUsageSeriesHTTPPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageUsageSeriesHTTPPostOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new statistics API client.
type StorageUsageSeriesHTTPPostBadRequest ¶
type StorageUsageSeriesHTTPPostBadRequest struct {
Payload *models.ErrResponse
}
StorageUsageSeriesHTTPPostBadRequest describes a response with status code 400, with default header values.
ErrResponse
func NewStorageUsageSeriesHTTPPostBadRequest ¶
func NewStorageUsageSeriesHTTPPostBadRequest() *StorageUsageSeriesHTTPPostBadRequest
NewStorageUsageSeriesHTTPPostBadRequest creates a StorageUsageSeriesHTTPPostBadRequest with default headers values
func (*StorageUsageSeriesHTTPPostBadRequest) Error ¶
func (o *StorageUsageSeriesHTTPPostBadRequest) Error() string
func (*StorageUsageSeriesHTTPPostBadRequest) GetPayload ¶
func (o *StorageUsageSeriesHTTPPostBadRequest) GetPayload() *models.ErrResponse
type StorageUsageSeriesHTTPPostBody ¶
type StorageUsageSeriesHTTPPostBody struct { // a From date filter // Example: 2006-01-02 From string `json:"from,omitempty"` // a Granularity is period of time for grouping data // Valid time units are "s", "m", "h". // Example: 12h Granularity string `json:"granularity,omitempty"` // a Locations list of filter // Example: ["fra","mia","sin","ams","s-ed1","s-darz1","s-dt2","lux","drf"] Locations []string `json:"locations"` // a Source is deprecated parameter Source uint8 `json:"source,omitempty"` // a Storages list of filter // Example: ["123-myStorage"] Storages []string `json:"storages"` // a To date filter // Example: 2006-01-02 To string `json:"to,omitempty"` // a TsString is configurator of response time format // switch response from unix time format to RFC3339 (2006-01-02T15:04:05Z07:00) TsString bool `json:"ts_string,omitempty"` }
StorageUsageSeriesHTTPPostBody storage usage series HTTP post body swagger:model StorageUsageSeriesHTTPPostBody
func (*StorageUsageSeriesHTTPPostBody) ContextValidate ¶
func (o *StorageUsageSeriesHTTPPostBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this storage usage series HTTP post body based on context it is used
func (*StorageUsageSeriesHTTPPostBody) MarshalBinary ¶
func (o *StorageUsageSeriesHTTPPostBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StorageUsageSeriesHTTPPostBody) UnmarshalBinary ¶
func (o *StorageUsageSeriesHTTPPostBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StorageUsageSeriesHTTPPostOK ¶
type StorageUsageSeriesHTTPPostOK struct {
Payload *models.StorageUsageSeriesEndpointRes
}
StorageUsageSeriesHTTPPostOK describes a response with status code 200, with default header values.
StorageUsageSeriesEndpointRes
func NewStorageUsageSeriesHTTPPostOK ¶
func NewStorageUsageSeriesHTTPPostOK() *StorageUsageSeriesHTTPPostOK
NewStorageUsageSeriesHTTPPostOK creates a StorageUsageSeriesHTTPPostOK with default headers values
func (*StorageUsageSeriesHTTPPostOK) Error ¶
func (o *StorageUsageSeriesHTTPPostOK) Error() string
func (*StorageUsageSeriesHTTPPostOK) GetPayload ¶
func (o *StorageUsageSeriesHTTPPostOK) GetPayload() *models.StorageUsageSeriesEndpointRes
type StorageUsageSeriesHTTPPostParams ¶
type StorageUsageSeriesHTTPPostParams struct { // Body. Body StorageUsageSeriesHTTPPostBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StorageUsageSeriesHTTPPostParams contains all the parameters to send to the API endpoint
for the storage usage series Http post operation. Typically these are written to a http.Request.
func NewStorageUsageSeriesHTTPPostParams ¶
func NewStorageUsageSeriesHTTPPostParams() *StorageUsageSeriesHTTPPostParams
NewStorageUsageSeriesHTTPPostParams creates a new StorageUsageSeriesHTTPPostParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewStorageUsageSeriesHTTPPostParamsWithContext ¶
func NewStorageUsageSeriesHTTPPostParamsWithContext(ctx context.Context) *StorageUsageSeriesHTTPPostParams
NewStorageUsageSeriesHTTPPostParamsWithContext creates a new StorageUsageSeriesHTTPPostParams object with the ability to set a context for a request.
func NewStorageUsageSeriesHTTPPostParamsWithHTTPClient ¶
func NewStorageUsageSeriesHTTPPostParamsWithHTTPClient(client *http.Client) *StorageUsageSeriesHTTPPostParams
NewStorageUsageSeriesHTTPPostParamsWithHTTPClient creates a new StorageUsageSeriesHTTPPostParams object with the ability to set a custom HTTPClient for a request.
func NewStorageUsageSeriesHTTPPostParamsWithTimeout ¶
func NewStorageUsageSeriesHTTPPostParamsWithTimeout(timeout time.Duration) *StorageUsageSeriesHTTPPostParams
NewStorageUsageSeriesHTTPPostParamsWithTimeout creates a new StorageUsageSeriesHTTPPostParams object with the ability to set a timeout on a request.
func (*StorageUsageSeriesHTTPPostParams) SetBody ¶
func (o *StorageUsageSeriesHTTPPostParams) SetBody(body StorageUsageSeriesHTTPPostBody)
SetBody adds the body to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) SetContext ¶
func (o *StorageUsageSeriesHTTPPostParams) SetContext(ctx context.Context)
SetContext adds the context to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) SetDefaults ¶
func (o *StorageUsageSeriesHTTPPostParams) SetDefaults()
SetDefaults hydrates default values in the storage usage series Http post params (not the query body).
All values with no default are reset to their zero value.
func (*StorageUsageSeriesHTTPPostParams) SetHTTPClient ¶
func (o *StorageUsageSeriesHTTPPostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) SetTimeout ¶
func (o *StorageUsageSeriesHTTPPostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) WithBody ¶
func (o *StorageUsageSeriesHTTPPostParams) WithBody(body StorageUsageSeriesHTTPPostBody) *StorageUsageSeriesHTTPPostParams
WithBody adds the body to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) WithContext ¶
func (o *StorageUsageSeriesHTTPPostParams) WithContext(ctx context.Context) *StorageUsageSeriesHTTPPostParams
WithContext adds the context to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) WithDefaults ¶
func (o *StorageUsageSeriesHTTPPostParams) WithDefaults() *StorageUsageSeriesHTTPPostParams
WithDefaults hydrates default values in the storage usage series Http post params (not the query body).
All values with no default are reset to their zero value.
func (*StorageUsageSeriesHTTPPostParams) WithHTTPClient ¶
func (o *StorageUsageSeriesHTTPPostParams) WithHTTPClient(client *http.Client) *StorageUsageSeriesHTTPPostParams
WithHTTPClient adds the HTTPClient to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) WithTimeout ¶
func (o *StorageUsageSeriesHTTPPostParams) WithTimeout(timeout time.Duration) *StorageUsageSeriesHTTPPostParams
WithTimeout adds the timeout to the storage usage series Http post params
func (*StorageUsageSeriesHTTPPostParams) WriteToRequest ¶
func (o *StorageUsageSeriesHTTPPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StorageUsageSeriesHTTPPostReader ¶
type StorageUsageSeriesHTTPPostReader struct {
// contains filtered or unexported fields
}
StorageUsageSeriesHTTPPostReader is a Reader for the StorageUsageSeriesHTTPPost structure.
func (*StorageUsageSeriesHTTPPostReader) ReadResponse ¶
func (o *StorageUsageSeriesHTTPPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.