metrics_names

package
v2.18.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: AGPL-3.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 names API

func (*Client) GetMetricsNames

func (a *Client) GetMetricsNames(params *GetMetricsNamesParams) (*GetMetricsNamesOK, error)

GetMetricsNames gets metrics names gets map of metrics names

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetMetricsNames(params *GetMetricsNamesParams) (*GetMetricsNamesOK, 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 names API client.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

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

Validate validates this details items0

type GetMetricsNamesDefault

type GetMetricsNamesDefault struct {
	Payload *GetMetricsNamesDefaultBody
	// contains filtered or unexported fields
}

GetMetricsNamesDefault handles this case with default header values.

An unexpected error response.

func NewGetMetricsNamesDefault

func NewGetMetricsNamesDefault(code int) *GetMetricsNamesDefault

NewGetMetricsNamesDefault creates a GetMetricsNamesDefault with default headers values

func (*GetMetricsNamesDefault) Code

func (o *GetMetricsNamesDefault) Code() int

Code gets the status code for the get metrics names default response

func (*GetMetricsNamesDefault) Error

func (o *GetMetricsNamesDefault) Error() string

func (*GetMetricsNamesDefault) GetPayload

type GetMetricsNamesDefaultBody

type GetMetricsNamesDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

GetMetricsNamesDefaultBody get metrics names default body swagger:model GetMetricsNamesDefaultBody

func (*GetMetricsNamesDefaultBody) MarshalBinary

func (o *GetMetricsNamesDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMetricsNamesDefaultBody) UnmarshalBinary

func (o *GetMetricsNamesDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMetricsNamesDefaultBody) Validate

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

Validate validates this get metrics names default body

type GetMetricsNamesOK

type GetMetricsNamesOK struct {
	Payload *GetMetricsNamesOKBody
}

GetMetricsNamesOK handles this case with default header values.

A successful response.

func NewGetMetricsNamesOK

func NewGetMetricsNamesOK() *GetMetricsNamesOK

NewGetMetricsNamesOK creates a GetMetricsNamesOK with default headers values

func (*GetMetricsNamesOK) Error

func (o *GetMetricsNamesOK) Error() string

func (*GetMetricsNamesOK) GetPayload

func (o *GetMetricsNamesOK) GetPayload() *GetMetricsNamesOKBody

type GetMetricsNamesOKBody

type GetMetricsNamesOKBody struct {

	// data
	Data map[string]string `json:"data,omitempty"`
}

GetMetricsNamesOKBody MetricsNamesReply is map of stored metrics: // key is root of metric name in db (Ex:. [m_]query_time[_sum]); // value - Human readable name of metrics. swagger:model GetMetricsNamesOKBody

func (*GetMetricsNamesOKBody) MarshalBinary

func (o *GetMetricsNamesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMetricsNamesOKBody) UnmarshalBinary

func (o *GetMetricsNamesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMetricsNamesOKBody) Validate

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

Validate validates this get metrics names OK body

type GetMetricsNamesParams

type GetMetricsNamesParams struct {

	/*Body*/
	Body interface{}

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

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

func NewGetMetricsNamesParams

func NewGetMetricsNamesParams() *GetMetricsNamesParams

NewGetMetricsNamesParams creates a new GetMetricsNamesParams object with the default values initialized.

func NewGetMetricsNamesParamsWithContext

func NewGetMetricsNamesParamsWithContext(ctx context.Context) *GetMetricsNamesParams

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

func NewGetMetricsNamesParamsWithHTTPClient

func NewGetMetricsNamesParamsWithHTTPClient(client *http.Client) *GetMetricsNamesParams

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

func NewGetMetricsNamesParamsWithTimeout

func NewGetMetricsNamesParamsWithTimeout(timeout time.Duration) *GetMetricsNamesParams

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

func (*GetMetricsNamesParams) SetBody

func (o *GetMetricsNamesParams) SetBody(body interface{})

SetBody adds the body to the get metrics names params

func (*GetMetricsNamesParams) SetContext

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

SetContext adds the context to the get metrics names params

func (*GetMetricsNamesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get metrics names params

func (*GetMetricsNamesParams) SetTimeout

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

SetTimeout adds the timeout to the get metrics names params

func (*GetMetricsNamesParams) WithBody

func (o *GetMetricsNamesParams) WithBody(body interface{}) *GetMetricsNamesParams

WithBody adds the body to the get metrics names params

func (*GetMetricsNamesParams) WithContext

WithContext adds the context to the get metrics names params

func (*GetMetricsNamesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get metrics names params

func (*GetMetricsNamesParams) WithTimeout

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

WithTimeout adds the timeout to the get metrics names params

func (*GetMetricsNamesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMetricsNamesReader

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

GetMetricsNamesReader is a Reader for the GetMetricsNames structure.

func (*GetMetricsNamesReader) ReadResponse

func (o *GetMetricsNamesReader) 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