cilium: github.com/cilium/cilium/api/v1/server/restapi/metrics Index | Files

package metrics

import "github.com/cilium/cilium/api/v1/server/restapi/metrics"

Index

Package Files

get_metrics.go get_metrics_parameters.go get_metrics_responses.go get_metrics_urlbuilder.go

Constants

const GetMetricsInternalServerErrorCode int = 500

GetMetricsInternalServerErrorCode is the HTTP code returned for type GetMetricsInternalServerError

const GetMetricsOKCode int = 200

GetMetricsOKCode is the HTTP code returned for type GetMetricsOK

type GetMetrics Uses

type GetMetrics struct {
    Context *middleware.Context
    Handler GetMetricsHandler
}

GetMetrics swagger:route GET /metrics/ metrics getMetrics

Retrieve cilium metrics

func NewGetMetrics Uses

func NewGetMetrics(ctx *middleware.Context, handler GetMetricsHandler) *GetMetrics

NewGetMetrics creates a new http.Handler for the get metrics operation

func (*GetMetrics) ServeHTTP Uses

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

type GetMetricsHandler Uses

type GetMetricsHandler interface {
    Handle(GetMetricsParams) middleware.Responder
}

GetMetricsHandler interface for that can handle valid get metrics params

type GetMetricsHandlerFunc Uses

type GetMetricsHandlerFunc func(GetMetricsParams) middleware.Responder

GetMetricsHandlerFunc turns a function with the right signature into a get metrics handler

func (GetMetricsHandlerFunc) Handle Uses

func (fn GetMetricsHandlerFunc) Handle(params GetMetricsParams) middleware.Responder

Handle executing the request and returning a response

type GetMetricsInternalServerError Uses

type GetMetricsInternalServerError struct {
}

GetMetricsInternalServerError Metrics cannot be retrieved

swagger:response getMetricsInternalServerError

func NewGetMetricsInternalServerError Uses

func NewGetMetricsInternalServerError() *GetMetricsInternalServerError

NewGetMetricsInternalServerError creates GetMetricsInternalServerError with default headers values

func (*GetMetricsInternalServerError) WriteResponse Uses

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

WriteResponse to the client

type GetMetricsOK Uses

type GetMetricsOK struct {

    /*
      In: Body
    */
    Payload []*models.Metric `json:"body,omitempty"`
}

GetMetricsOK Success

swagger:response getMetricsOK

func NewGetMetricsOK Uses

func NewGetMetricsOK() *GetMetricsOK

NewGetMetricsOK creates GetMetricsOK with default headers values

func (*GetMetricsOK) SetPayload Uses

func (o *GetMetricsOK) SetPayload(payload []*models.Metric)

SetPayload sets the payload to the get metrics o k response

func (*GetMetricsOK) WithPayload Uses

func (o *GetMetricsOK) WithPayload(payload []*models.Metric) *GetMetricsOK

WithPayload adds the payload to the get metrics o k response

func (*GetMetricsOK) WriteResponse Uses

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

WriteResponse to the client

type GetMetricsParams Uses

type GetMetricsParams struct {

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

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

swagger:parameters GetMetrics

func NewGetMetricsParams Uses

func NewGetMetricsParams() GetMetricsParams

NewGetMetricsParams creates a new GetMetricsParams object no default values defined in spec.

func (*GetMetricsParams) BindRequest Uses

func (o *GetMetricsParams) 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 NewGetMetricsParams() beforehand.

type GetMetricsURL Uses

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

GetMetricsURL generates an URL for the get metrics operation

func (*GetMetricsURL) Build Uses

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

Build a url path and query string

func (*GetMetricsURL) BuildFull Uses

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

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

func (*GetMetricsURL) Must Uses

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

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

func (*GetMetricsURL) SetBasePath Uses

func (o *GetMetricsURL) 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 (*GetMetricsURL) String Uses

func (o *GetMetricsURL) String() string

String returns the string representation of the path with query string

func (*GetMetricsURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*GetMetricsURL) WithBasePath Uses

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

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

Package metrics imports 8 packages (graph) and is imported by 7 packages. Updated 2019-06-05. Refresh now. Tools for package owners.