statistics

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MPL-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 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 (*StorageUsageSeriesHTTPPostBadRequest) GetPayload

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

func (*StorageUsageSeriesHTTPPostBody) Validate

func (o *StorageUsageSeriesHTTPPostBody) Validate(formats strfmt.Registry) error

Validate validates this storage usage series HTTP post body

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 (*StorageUsageSeriesHTTPPostOK) GetPayload

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

SetBody adds the body to the storage usage series Http post params

func (*StorageUsageSeriesHTTPPostParams) SetContext

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

WithBody adds the body to the storage usage series Http post params

func (*StorageUsageSeriesHTTPPostParams) WithContext

WithContext adds the context to the storage usage series Http post params

func (*StorageUsageSeriesHTTPPostParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the storage usage series Http post params

func (*StorageUsageSeriesHTTPPostParams) WithTimeout

WithTimeout adds the timeout to the storage usage series Http post params

func (*StorageUsageSeriesHTTPPostParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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