metrics

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-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 metrics API

func (*Client) GetAccountMetrics

func (a *Client) GetAccountMetrics(params *GetAccountMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccountMetricsOK, error)

GetAccountMetrics get account metrics API

func (*Client) GetEnvironmentMetrics

func (a *Client) GetEnvironmentMetrics(params *GetEnvironmentMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentMetricsOK, error)

GetEnvironmentMetrics get environment metrics API

func (*Client) GetShareMetrics

func (a *Client) GetShareMetrics(params *GetShareMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetShareMetricsOK, error)

GetShareMetrics get share metrics API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAccountMetrics(params *GetAccountMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccountMetricsOK, error)

	GetEnvironmentMetrics(params *GetEnvironmentMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentMetricsOK, error)

	GetShareMetrics(params *GetShareMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetShareMetricsOK, 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 metrics API client.

type GetAccountMetricsOK

type GetAccountMetricsOK struct {
	Payload *rest_model_zrok.Metrics
}

GetAccountMetricsOK describes a response with status code 200, with default header values.

account metrics

func NewGetAccountMetricsOK

func NewGetAccountMetricsOK() *GetAccountMetricsOK

NewGetAccountMetricsOK creates a GetAccountMetricsOK with default headers values

func (*GetAccountMetricsOK) Error

func (o *GetAccountMetricsOK) Error() string

func (*GetAccountMetricsOK) GetPayload

func (o *GetAccountMetricsOK) GetPayload() *rest_model_zrok.Metrics

func (*GetAccountMetricsOK) IsClientError

func (o *GetAccountMetricsOK) IsClientError() bool

IsClientError returns true when this get account metrics o k response has a 4xx status code

func (*GetAccountMetricsOK) IsCode

func (o *GetAccountMetricsOK) IsCode(code int) bool

IsCode returns true when this get account metrics o k response a status code equal to that given

func (*GetAccountMetricsOK) IsRedirect

func (o *GetAccountMetricsOK) IsRedirect() bool

IsRedirect returns true when this get account metrics o k response has a 3xx status code

func (*GetAccountMetricsOK) IsServerError

func (o *GetAccountMetricsOK) IsServerError() bool

IsServerError returns true when this get account metrics o k response has a 5xx status code

func (*GetAccountMetricsOK) IsSuccess

func (o *GetAccountMetricsOK) IsSuccess() bool

IsSuccess returns true when this get account metrics o k response has a 2xx status code

func (*GetAccountMetricsOK) String

func (o *GetAccountMetricsOK) String() string

type GetAccountMetricsParams

type GetAccountMetricsParams struct {

	// Duration.
	Duration *float64

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

GetAccountMetricsParams contains all the parameters to send to the API endpoint

for the get account metrics operation.

Typically these are written to a http.Request.

func NewGetAccountMetricsParams

func NewGetAccountMetricsParams() *GetAccountMetricsParams

NewGetAccountMetricsParams creates a new GetAccountMetricsParams 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 NewGetAccountMetricsParamsWithContext

func NewGetAccountMetricsParamsWithContext(ctx context.Context) *GetAccountMetricsParams

NewGetAccountMetricsParamsWithContext creates a new GetAccountMetricsParams object with the ability to set a context for a request.

func NewGetAccountMetricsParamsWithHTTPClient

func NewGetAccountMetricsParamsWithHTTPClient(client *http.Client) *GetAccountMetricsParams

NewGetAccountMetricsParamsWithHTTPClient creates a new GetAccountMetricsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAccountMetricsParamsWithTimeout

func NewGetAccountMetricsParamsWithTimeout(timeout time.Duration) *GetAccountMetricsParams

NewGetAccountMetricsParamsWithTimeout creates a new GetAccountMetricsParams object with the ability to set a timeout on a request.

func (*GetAccountMetricsParams) SetContext

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

SetContext adds the context to the get account metrics params

func (*GetAccountMetricsParams) SetDefaults

func (o *GetAccountMetricsParams) SetDefaults()

SetDefaults hydrates default values in the get account metrics params (not the query body).

All values with no default are reset to their zero value.

func (*GetAccountMetricsParams) SetDuration

func (o *GetAccountMetricsParams) SetDuration(duration *float64)

SetDuration adds the duration to the get account metrics params

func (*GetAccountMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get account metrics params

func (*GetAccountMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get account metrics params

func (*GetAccountMetricsParams) WithContext

WithContext adds the context to the get account metrics params

func (*GetAccountMetricsParams) WithDefaults

WithDefaults hydrates default values in the get account metrics params (not the query body).

All values with no default are reset to their zero value.

func (*GetAccountMetricsParams) WithDuration

func (o *GetAccountMetricsParams) WithDuration(duration *float64) *GetAccountMetricsParams

WithDuration adds the duration to the get account metrics params

func (*GetAccountMetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get account metrics params

func (*GetAccountMetricsParams) WithTimeout

WithTimeout adds the timeout to the get account metrics params

func (*GetAccountMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAccountMetricsReader

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

GetAccountMetricsReader is a Reader for the GetAccountMetrics structure.

func (*GetAccountMetricsReader) ReadResponse

func (o *GetAccountMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetEnvironmentMetricsOK

type GetEnvironmentMetricsOK struct {
	Payload *rest_model_zrok.Metrics
}

GetEnvironmentMetricsOK describes a response with status code 200, with default header values.

environment metrics

func NewGetEnvironmentMetricsOK

func NewGetEnvironmentMetricsOK() *GetEnvironmentMetricsOK

NewGetEnvironmentMetricsOK creates a GetEnvironmentMetricsOK with default headers values

func (*GetEnvironmentMetricsOK) Error

func (o *GetEnvironmentMetricsOK) Error() string

func (*GetEnvironmentMetricsOK) GetPayload

func (*GetEnvironmentMetricsOK) IsClientError

func (o *GetEnvironmentMetricsOK) IsClientError() bool

IsClientError returns true when this get environment metrics o k response has a 4xx status code

func (*GetEnvironmentMetricsOK) IsCode

func (o *GetEnvironmentMetricsOK) IsCode(code int) bool

IsCode returns true when this get environment metrics o k response a status code equal to that given

func (*GetEnvironmentMetricsOK) IsRedirect

func (o *GetEnvironmentMetricsOK) IsRedirect() bool

IsRedirect returns true when this get environment metrics o k response has a 3xx status code

func (*GetEnvironmentMetricsOK) IsServerError

func (o *GetEnvironmentMetricsOK) IsServerError() bool

IsServerError returns true when this get environment metrics o k response has a 5xx status code

func (*GetEnvironmentMetricsOK) IsSuccess

func (o *GetEnvironmentMetricsOK) IsSuccess() bool

IsSuccess returns true when this get environment metrics o k response has a 2xx status code

func (*GetEnvironmentMetricsOK) String

func (o *GetEnvironmentMetricsOK) String() string

type GetEnvironmentMetricsParams

type GetEnvironmentMetricsParams struct {

	// Duration.
	Duration *float64

	// EnvID.
	EnvID string

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

GetEnvironmentMetricsParams contains all the parameters to send to the API endpoint

for the get environment metrics operation.

Typically these are written to a http.Request.

func NewGetEnvironmentMetricsParams

func NewGetEnvironmentMetricsParams() *GetEnvironmentMetricsParams

NewGetEnvironmentMetricsParams creates a new GetEnvironmentMetricsParams 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 NewGetEnvironmentMetricsParamsWithContext

func NewGetEnvironmentMetricsParamsWithContext(ctx context.Context) *GetEnvironmentMetricsParams

NewGetEnvironmentMetricsParamsWithContext creates a new GetEnvironmentMetricsParams object with the ability to set a context for a request.

func NewGetEnvironmentMetricsParamsWithHTTPClient

func NewGetEnvironmentMetricsParamsWithHTTPClient(client *http.Client) *GetEnvironmentMetricsParams

NewGetEnvironmentMetricsParamsWithHTTPClient creates a new GetEnvironmentMetricsParams object with the ability to set a custom HTTPClient for a request.

func NewGetEnvironmentMetricsParamsWithTimeout

func NewGetEnvironmentMetricsParamsWithTimeout(timeout time.Duration) *GetEnvironmentMetricsParams

NewGetEnvironmentMetricsParamsWithTimeout creates a new GetEnvironmentMetricsParams object with the ability to set a timeout on a request.

func (*GetEnvironmentMetricsParams) SetContext

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

SetContext adds the context to the get environment metrics params

func (*GetEnvironmentMetricsParams) SetDefaults

func (o *GetEnvironmentMetricsParams) SetDefaults()

SetDefaults hydrates default values in the get environment metrics params (not the query body).

All values with no default are reset to their zero value.

func (*GetEnvironmentMetricsParams) SetDuration

func (o *GetEnvironmentMetricsParams) SetDuration(duration *float64)

SetDuration adds the duration to the get environment metrics params

func (*GetEnvironmentMetricsParams) SetEnvID

func (o *GetEnvironmentMetricsParams) SetEnvID(envID string)

SetEnvID adds the envId to the get environment metrics params

func (*GetEnvironmentMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get environment metrics params

func (*GetEnvironmentMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get environment metrics params

func (*GetEnvironmentMetricsParams) WithContext

WithContext adds the context to the get environment metrics params

func (*GetEnvironmentMetricsParams) WithDefaults

WithDefaults hydrates default values in the get environment metrics params (not the query body).

All values with no default are reset to their zero value.

func (*GetEnvironmentMetricsParams) WithDuration

WithDuration adds the duration to the get environment metrics params

func (*GetEnvironmentMetricsParams) WithEnvID

WithEnvID adds the envID to the get environment metrics params

func (*GetEnvironmentMetricsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get environment metrics params

func (*GetEnvironmentMetricsParams) WithTimeout

WithTimeout adds the timeout to the get environment metrics params

func (*GetEnvironmentMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEnvironmentMetricsReader

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

GetEnvironmentMetricsReader is a Reader for the GetEnvironmentMetrics structure.

func (*GetEnvironmentMetricsReader) ReadResponse

func (o *GetEnvironmentMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetEnvironmentMetricsUnauthorized

type GetEnvironmentMetricsUnauthorized struct {
}

GetEnvironmentMetricsUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetEnvironmentMetricsUnauthorized

func NewGetEnvironmentMetricsUnauthorized() *GetEnvironmentMetricsUnauthorized

NewGetEnvironmentMetricsUnauthorized creates a GetEnvironmentMetricsUnauthorized with default headers values

func (*GetEnvironmentMetricsUnauthorized) Error

func (*GetEnvironmentMetricsUnauthorized) IsClientError

func (o *GetEnvironmentMetricsUnauthorized) IsClientError() bool

IsClientError returns true when this get environment metrics unauthorized response has a 4xx status code

func (*GetEnvironmentMetricsUnauthorized) IsCode

func (o *GetEnvironmentMetricsUnauthorized) IsCode(code int) bool

IsCode returns true when this get environment metrics unauthorized response a status code equal to that given

func (*GetEnvironmentMetricsUnauthorized) IsRedirect

func (o *GetEnvironmentMetricsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get environment metrics unauthorized response has a 3xx status code

func (*GetEnvironmentMetricsUnauthorized) IsServerError

func (o *GetEnvironmentMetricsUnauthorized) IsServerError() bool

IsServerError returns true when this get environment metrics unauthorized response has a 5xx status code

func (*GetEnvironmentMetricsUnauthorized) IsSuccess

func (o *GetEnvironmentMetricsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get environment metrics unauthorized response has a 2xx status code

func (*GetEnvironmentMetricsUnauthorized) String

type GetShareMetricsOK

type GetShareMetricsOK struct {
	Payload *rest_model_zrok.Metrics
}

GetShareMetricsOK describes a response with status code 200, with default header values.

share metrics

func NewGetShareMetricsOK

func NewGetShareMetricsOK() *GetShareMetricsOK

NewGetShareMetricsOK creates a GetShareMetricsOK with default headers values

func (*GetShareMetricsOK) Error

func (o *GetShareMetricsOK) Error() string

func (*GetShareMetricsOK) GetPayload

func (o *GetShareMetricsOK) GetPayload() *rest_model_zrok.Metrics

func (*GetShareMetricsOK) IsClientError

func (o *GetShareMetricsOK) IsClientError() bool

IsClientError returns true when this get share metrics o k response has a 4xx status code

func (*GetShareMetricsOK) IsCode

func (o *GetShareMetricsOK) IsCode(code int) bool

IsCode returns true when this get share metrics o k response a status code equal to that given

func (*GetShareMetricsOK) IsRedirect

func (o *GetShareMetricsOK) IsRedirect() bool

IsRedirect returns true when this get share metrics o k response has a 3xx status code

func (*GetShareMetricsOK) IsServerError

func (o *GetShareMetricsOK) IsServerError() bool

IsServerError returns true when this get share metrics o k response has a 5xx status code

func (*GetShareMetricsOK) IsSuccess

func (o *GetShareMetricsOK) IsSuccess() bool

IsSuccess returns true when this get share metrics o k response has a 2xx status code

func (*GetShareMetricsOK) String

func (o *GetShareMetricsOK) String() string

type GetShareMetricsParams

type GetShareMetricsParams struct {

	// Duration.
	Duration *float64

	// ShrToken.
	ShrToken string

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

GetShareMetricsParams contains all the parameters to send to the API endpoint

for the get share metrics operation.

Typically these are written to a http.Request.

func NewGetShareMetricsParams

func NewGetShareMetricsParams() *GetShareMetricsParams

NewGetShareMetricsParams creates a new GetShareMetricsParams 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 NewGetShareMetricsParamsWithContext

func NewGetShareMetricsParamsWithContext(ctx context.Context) *GetShareMetricsParams

NewGetShareMetricsParamsWithContext creates a new GetShareMetricsParams object with the ability to set a context for a request.

func NewGetShareMetricsParamsWithHTTPClient

func NewGetShareMetricsParamsWithHTTPClient(client *http.Client) *GetShareMetricsParams

NewGetShareMetricsParamsWithHTTPClient creates a new GetShareMetricsParams object with the ability to set a custom HTTPClient for a request.

func NewGetShareMetricsParamsWithTimeout

func NewGetShareMetricsParamsWithTimeout(timeout time.Duration) *GetShareMetricsParams

NewGetShareMetricsParamsWithTimeout creates a new GetShareMetricsParams object with the ability to set a timeout on a request.

func (*GetShareMetricsParams) SetContext

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

SetContext adds the context to the get share metrics params

func (*GetShareMetricsParams) SetDefaults

func (o *GetShareMetricsParams) SetDefaults()

SetDefaults hydrates default values in the get share metrics params (not the query body).

All values with no default are reset to their zero value.

func (*GetShareMetricsParams) SetDuration

func (o *GetShareMetricsParams) SetDuration(duration *float64)

SetDuration adds the duration to the get share metrics params

func (*GetShareMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get share metrics params

func (*GetShareMetricsParams) SetShrToken

func (o *GetShareMetricsParams) SetShrToken(shrToken string)

SetShrToken adds the shrToken to the get share metrics params

func (*GetShareMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get share metrics params

func (*GetShareMetricsParams) WithContext

WithContext adds the context to the get share metrics params

func (*GetShareMetricsParams) WithDefaults

func (o *GetShareMetricsParams) WithDefaults() *GetShareMetricsParams

WithDefaults hydrates default values in the get share metrics params (not the query body).

All values with no default are reset to their zero value.

func (*GetShareMetricsParams) WithDuration

func (o *GetShareMetricsParams) WithDuration(duration *float64) *GetShareMetricsParams

WithDuration adds the duration to the get share metrics params

func (*GetShareMetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get share metrics params

func (*GetShareMetricsParams) WithShrToken

func (o *GetShareMetricsParams) WithShrToken(shrToken string) *GetShareMetricsParams

WithShrToken adds the shrToken to the get share metrics params

func (*GetShareMetricsParams) WithTimeout

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

WithTimeout adds the timeout to the get share metrics params

func (*GetShareMetricsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetShareMetricsReader

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

GetShareMetricsReader is a Reader for the GetShareMetrics structure.

func (*GetShareMetricsReader) ReadResponse

func (o *GetShareMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetShareMetricsUnauthorized

type GetShareMetricsUnauthorized struct {
}

GetShareMetricsUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetShareMetricsUnauthorized

func NewGetShareMetricsUnauthorized() *GetShareMetricsUnauthorized

NewGetShareMetricsUnauthorized creates a GetShareMetricsUnauthorized with default headers values

func (*GetShareMetricsUnauthorized) Error

func (*GetShareMetricsUnauthorized) IsClientError

func (o *GetShareMetricsUnauthorized) IsClientError() bool

IsClientError returns true when this get share metrics unauthorized response has a 4xx status code

func (*GetShareMetricsUnauthorized) IsCode

func (o *GetShareMetricsUnauthorized) IsCode(code int) bool

IsCode returns true when this get share metrics unauthorized response a status code equal to that given

func (*GetShareMetricsUnauthorized) IsRedirect

func (o *GetShareMetricsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get share metrics unauthorized response has a 3xx status code

func (*GetShareMetricsUnauthorized) IsServerError

func (o *GetShareMetricsUnauthorized) IsServerError() bool

IsServerError returns true when this get share metrics unauthorized response has a 5xx status code

func (*GetShareMetricsUnauthorized) IsSuccess

func (o *GetShareMetricsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get share metrics unauthorized response has a 2xx status code

func (*GetShareMetricsUnauthorized) String

func (o *GetShareMetricsUnauthorized) String() string

Jump to

Keyboard shortcuts

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