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

package metrics

import "github.com/cilium/cilium/api/v1/client/metrics"

Index

Package Files

get_metrics_parameters.go get_metrics_responses.go metrics_client.go

type Client Uses

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

Client for metrics API

func New Uses

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new metrics API client.

func (*Client) GetMetrics Uses

func (a *Client) GetMetrics(params *GetMetricsParams) (*GetMetricsOK, error)

GetMetrics retrieves cilium metrics

func (*Client) SetTransport Uses

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

SetTransport changes the transport on the client

type GetMetricsInternalServerError Uses

type GetMetricsInternalServerError struct {
}

GetMetricsInternalServerError handles this case with default header values.

Metrics cannot be retrieved

func NewGetMetricsInternalServerError Uses

func NewGetMetricsInternalServerError() *GetMetricsInternalServerError

NewGetMetricsInternalServerError creates a GetMetricsInternalServerError with default headers values

func (*GetMetricsInternalServerError) Error Uses

func (o *GetMetricsInternalServerError) Error() string

type GetMetricsOK Uses

type GetMetricsOK struct {
    Payload []*models.Metric
}

GetMetricsOK handles this case with default header values.

Success

func NewGetMetricsOK Uses

func NewGetMetricsOK() *GetMetricsOK

NewGetMetricsOK creates a GetMetricsOK with default headers values

func (*GetMetricsOK) Error Uses

func (o *GetMetricsOK) Error() string

func (*GetMetricsOK) GetPayload Uses

func (o *GetMetricsOK) GetPayload() []*models.Metric

type GetMetricsParams Uses

type GetMetricsParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

GetMetricsParams contains all the parameters to send to the API endpoint for the get metrics operation typically these are written to a http.Request

func NewGetMetricsParams Uses

func NewGetMetricsParams() *GetMetricsParams

NewGetMetricsParams creates a new GetMetricsParams object with the default values initialized.

func NewGetMetricsParamsWithContext Uses

func NewGetMetricsParamsWithContext(ctx context.Context) *GetMetricsParams

NewGetMetricsParamsWithContext creates a new GetMetricsParams object with the default values initialized, and the ability to set a context for a request

func NewGetMetricsParamsWithHTTPClient Uses

func NewGetMetricsParamsWithHTTPClient(client *http.Client) *GetMetricsParams

NewGetMetricsParamsWithHTTPClient creates a new GetMetricsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetMetricsParamsWithTimeout Uses

func NewGetMetricsParamsWithTimeout(timeout time.Duration) *GetMetricsParams

NewGetMetricsParamsWithTimeout creates a new GetMetricsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetMetricsParams) SetContext Uses

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

SetContext adds the context to the get metrics params

func (*GetMetricsParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the get metrics params

func (*GetMetricsParams) SetTimeout Uses

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

SetTimeout adds the timeout to the get metrics params

func (*GetMetricsParams) WithContext Uses

func (o *GetMetricsParams) WithContext(ctx context.Context) *GetMetricsParams

WithContext adds the context to the get metrics params

func (*GetMetricsParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the get metrics params

func (*GetMetricsParams) WithTimeout Uses

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

WithTimeout adds the timeout to the get metrics params

func (*GetMetricsParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type GetMetricsReader Uses

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

GetMetricsReader is a Reader for the GetMetrics structure.

func (*GetMetricsReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

Package metrics imports 10 packages (graph) and is imported by 1 packages. Updated 2019-11-07. Refresh now. Tools for package owners.