metrics

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetAccountMetricsOKCode int = 200

GetAccountMetricsOKCode is the HTTP code returned for type GetAccountMetricsOK

View Source
const GetEnvironmentMetricsOKCode int = 200

GetEnvironmentMetricsOKCode is the HTTP code returned for type GetEnvironmentMetricsOK

View Source
const GetEnvironmentMetricsUnauthorizedCode int = 401

GetEnvironmentMetricsUnauthorizedCode is the HTTP code returned for type GetEnvironmentMetricsUnauthorized

View Source
const GetShareMetricsOKCode int = 200

GetShareMetricsOKCode is the HTTP code returned for type GetShareMetricsOK

View Source
const GetShareMetricsUnauthorizedCode int = 401

GetShareMetricsUnauthorizedCode is the HTTP code returned for type GetShareMetricsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAccountMetrics

type GetAccountMetrics struct {
	Context *middleware.Context
	Handler GetAccountMetricsHandler
}
GetAccountMetrics swagger:route GET /metrics/account metrics getAccountMetrics

GetAccountMetrics get account metrics API

func NewGetAccountMetrics

func NewGetAccountMetrics(ctx *middleware.Context, handler GetAccountMetricsHandler) *GetAccountMetrics

NewGetAccountMetrics creates a new http.Handler for the get account metrics operation

func (*GetAccountMetrics) ServeHTTP

func (o *GetAccountMetrics) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetAccountMetricsHandler

type GetAccountMetricsHandler interface {
	Handle(GetAccountMetricsParams, *rest_model_zrok.Principal) middleware.Responder
}

GetAccountMetricsHandler interface for that can handle valid get account metrics params

type GetAccountMetricsHandlerFunc

type GetAccountMetricsHandlerFunc func(GetAccountMetricsParams, *rest_model_zrok.Principal) middleware.Responder

GetAccountMetricsHandlerFunc turns a function with the right signature into a get account metrics handler

func (GetAccountMetricsHandlerFunc) Handle

Handle executing the request and returning a response

type GetAccountMetricsOK

type GetAccountMetricsOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model_zrok.Metrics `json:"body,omitempty"`
}

GetAccountMetricsOK account metrics

swagger:response getAccountMetricsOK

func NewGetAccountMetricsOK

func NewGetAccountMetricsOK() *GetAccountMetricsOK

NewGetAccountMetricsOK creates GetAccountMetricsOK with default headers values

func (*GetAccountMetricsOK) SetPayload

func (o *GetAccountMetricsOK) SetPayload(payload *rest_model_zrok.Metrics)

SetPayload sets the payload to the get account metrics o k response

func (*GetAccountMetricsOK) WithPayload

WithPayload adds the payload to the get account metrics o k response

func (*GetAccountMetricsOK) WriteResponse

func (o *GetAccountMetricsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountMetricsParams

type GetAccountMetricsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Duration *float64
}

GetAccountMetricsParams contains all the bound params for the get account metrics operation typically these are obtained from a http.Request

swagger:parameters getAccountMetrics

func NewGetAccountMetricsParams

func NewGetAccountMetricsParams() GetAccountMetricsParams

NewGetAccountMetricsParams creates a new GetAccountMetricsParams object

There are no default values defined in the spec.

func (*GetAccountMetricsParams) BindRequest

func (o *GetAccountMetricsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetAccountMetricsParams() beforehand.

type GetAccountMetricsURL

type GetAccountMetricsURL struct {
	Duration *float64
	// contains filtered or unexported fields
}

GetAccountMetricsURL generates an URL for the get account metrics operation

func (*GetAccountMetricsURL) Build

func (o *GetAccountMetricsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetAccountMetricsURL) BuildFull

func (o *GetAccountMetricsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetAccountMetricsURL) Must

func (o *GetAccountMetricsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetAccountMetricsURL) SetBasePath

func (o *GetAccountMetricsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetAccountMetricsURL) String

func (o *GetAccountMetricsURL) String() string

String returns the string representation of the path with query string

func (*GetAccountMetricsURL) StringFull

func (o *GetAccountMetricsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetAccountMetricsURL) WithBasePath

func (o *GetAccountMetricsURL) WithBasePath(bp string) *GetAccountMetricsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetEnvironmentMetrics

type GetEnvironmentMetrics struct {
	Context *middleware.Context
	Handler GetEnvironmentMetricsHandler
}
GetEnvironmentMetrics swagger:route GET /metrics/environment/{envId} metrics getEnvironmentMetrics

GetEnvironmentMetrics get environment metrics API

func NewGetEnvironmentMetrics

func NewGetEnvironmentMetrics(ctx *middleware.Context, handler GetEnvironmentMetricsHandler) *GetEnvironmentMetrics

NewGetEnvironmentMetrics creates a new http.Handler for the get environment metrics operation

func (*GetEnvironmentMetrics) ServeHTTP

func (o *GetEnvironmentMetrics) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEnvironmentMetricsHandler

type GetEnvironmentMetricsHandler interface {
	Handle(GetEnvironmentMetricsParams, *rest_model_zrok.Principal) middleware.Responder
}

GetEnvironmentMetricsHandler interface for that can handle valid get environment metrics params

type GetEnvironmentMetricsHandlerFunc

type GetEnvironmentMetricsHandlerFunc func(GetEnvironmentMetricsParams, *rest_model_zrok.Principal) middleware.Responder

GetEnvironmentMetricsHandlerFunc turns a function with the right signature into a get environment metrics handler

func (GetEnvironmentMetricsHandlerFunc) Handle

Handle executing the request and returning a response

type GetEnvironmentMetricsOK

type GetEnvironmentMetricsOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model_zrok.Metrics `json:"body,omitempty"`
}

GetEnvironmentMetricsOK environment metrics

swagger:response getEnvironmentMetricsOK

func NewGetEnvironmentMetricsOK

func NewGetEnvironmentMetricsOK() *GetEnvironmentMetricsOK

NewGetEnvironmentMetricsOK creates GetEnvironmentMetricsOK with default headers values

func (*GetEnvironmentMetricsOK) SetPayload

func (o *GetEnvironmentMetricsOK) SetPayload(payload *rest_model_zrok.Metrics)

SetPayload sets the payload to the get environment metrics o k response

func (*GetEnvironmentMetricsOK) WithPayload

WithPayload adds the payload to the get environment metrics o k response

func (*GetEnvironmentMetricsOK) WriteResponse

func (o *GetEnvironmentMetricsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEnvironmentMetricsParams

type GetEnvironmentMetricsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Duration *float64
	/*
	  Required: true
	  In: path
	*/
	EnvID string
}

GetEnvironmentMetricsParams contains all the bound params for the get environment metrics operation typically these are obtained from a http.Request

swagger:parameters getEnvironmentMetrics

func NewGetEnvironmentMetricsParams

func NewGetEnvironmentMetricsParams() GetEnvironmentMetricsParams

NewGetEnvironmentMetricsParams creates a new GetEnvironmentMetricsParams object

There are no default values defined in the spec.

func (*GetEnvironmentMetricsParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetEnvironmentMetricsParams() beforehand.

type GetEnvironmentMetricsURL

type GetEnvironmentMetricsURL struct {
	EnvID string

	Duration *float64
	// contains filtered or unexported fields
}

GetEnvironmentMetricsURL generates an URL for the get environment metrics operation

func (*GetEnvironmentMetricsURL) Build

func (o *GetEnvironmentMetricsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEnvironmentMetricsURL) BuildFull

func (o *GetEnvironmentMetricsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEnvironmentMetricsURL) Must

func (o *GetEnvironmentMetricsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEnvironmentMetricsURL) SetBasePath

func (o *GetEnvironmentMetricsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetEnvironmentMetricsURL) String

func (o *GetEnvironmentMetricsURL) String() string

String returns the string representation of the path with query string

func (*GetEnvironmentMetricsURL) StringFull

func (o *GetEnvironmentMetricsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEnvironmentMetricsURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetEnvironmentMetricsUnauthorized

type GetEnvironmentMetricsUnauthorized struct {
}

GetEnvironmentMetricsUnauthorized unauthorized

swagger:response getEnvironmentMetricsUnauthorized

func NewGetEnvironmentMetricsUnauthorized

func NewGetEnvironmentMetricsUnauthorized() *GetEnvironmentMetricsUnauthorized

NewGetEnvironmentMetricsUnauthorized creates GetEnvironmentMetricsUnauthorized with default headers values

func (*GetEnvironmentMetricsUnauthorized) WriteResponse

func (o *GetEnvironmentMetricsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetShareMetrics

type GetShareMetrics struct {
	Context *middleware.Context
	Handler GetShareMetricsHandler
}
GetShareMetrics swagger:route GET /metrics/share/{shrToken} metrics getShareMetrics

GetShareMetrics get share metrics API

func NewGetShareMetrics

func NewGetShareMetrics(ctx *middleware.Context, handler GetShareMetricsHandler) *GetShareMetrics

NewGetShareMetrics creates a new http.Handler for the get share metrics operation

func (*GetShareMetrics) ServeHTTP

func (o *GetShareMetrics) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetShareMetricsHandler

type GetShareMetricsHandler interface {
	Handle(GetShareMetricsParams, *rest_model_zrok.Principal) middleware.Responder
}

GetShareMetricsHandler interface for that can handle valid get share metrics params

type GetShareMetricsHandlerFunc

type GetShareMetricsHandlerFunc func(GetShareMetricsParams, *rest_model_zrok.Principal) middleware.Responder

GetShareMetricsHandlerFunc turns a function with the right signature into a get share metrics handler

func (GetShareMetricsHandlerFunc) Handle

Handle executing the request and returning a response

type GetShareMetricsOK

type GetShareMetricsOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model_zrok.Metrics `json:"body,omitempty"`
}

GetShareMetricsOK share metrics

swagger:response getShareMetricsOK

func NewGetShareMetricsOK

func NewGetShareMetricsOK() *GetShareMetricsOK

NewGetShareMetricsOK creates GetShareMetricsOK with default headers values

func (*GetShareMetricsOK) SetPayload

func (o *GetShareMetricsOK) SetPayload(payload *rest_model_zrok.Metrics)

SetPayload sets the payload to the get share metrics o k response

func (*GetShareMetricsOK) WithPayload

func (o *GetShareMetricsOK) WithPayload(payload *rest_model_zrok.Metrics) *GetShareMetricsOK

WithPayload adds the payload to the get share metrics o k response

func (*GetShareMetricsOK) WriteResponse

func (o *GetShareMetricsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetShareMetricsParams

type GetShareMetricsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Duration *float64
	/*
	  Required: true
	  In: path
	*/
	ShrToken string
}

GetShareMetricsParams contains all the bound params for the get share metrics operation typically these are obtained from a http.Request

swagger:parameters getShareMetrics

func NewGetShareMetricsParams

func NewGetShareMetricsParams() GetShareMetricsParams

NewGetShareMetricsParams creates a new GetShareMetricsParams object

There are no default values defined in the spec.

func (*GetShareMetricsParams) BindRequest

func (o *GetShareMetricsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetShareMetricsParams() beforehand.

type GetShareMetricsURL

type GetShareMetricsURL struct {
	ShrToken string

	Duration *float64
	// contains filtered or unexported fields
}

GetShareMetricsURL generates an URL for the get share metrics operation

func (*GetShareMetricsURL) Build

func (o *GetShareMetricsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetShareMetricsURL) BuildFull

func (o *GetShareMetricsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetShareMetricsURL) Must

func (o *GetShareMetricsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetShareMetricsURL) SetBasePath

func (o *GetShareMetricsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetShareMetricsURL) String

func (o *GetShareMetricsURL) String() string

String returns the string representation of the path with query string

func (*GetShareMetricsURL) StringFull

func (o *GetShareMetricsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetShareMetricsURL) WithBasePath

func (o *GetShareMetricsURL) WithBasePath(bp string) *GetShareMetricsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetShareMetricsUnauthorized

type GetShareMetricsUnauthorized struct {
}

GetShareMetricsUnauthorized unauthorized

swagger:response getShareMetricsUnauthorized

func NewGetShareMetricsUnauthorized

func NewGetShareMetricsUnauthorized() *GetShareMetricsUnauthorized

NewGetShareMetricsUnauthorized creates GetShareMetricsUnauthorized with default headers values

func (*GetShareMetricsUnauthorized) WriteResponse

func (o *GetShareMetricsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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