metrics_names

package
v2.0.0-beta7+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: AGPL-3.0 Imports: 10 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 New

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

New creates a new metrics names API client.

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 GetMetricsNamesDefault

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

GetMetricsNamesDefault handles this case with default header values.

An 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 {

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

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

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

GetMetricsNamesDefaultBody ErrorResponse is a message returned on HTTP error. 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