metric

package
v2.17.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.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 metric API

func (*Client) ListMachineDeploymentMetrics

func (a *Client) ListMachineDeploymentMetrics(params *ListMachineDeploymentMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*ListMachineDeploymentMetricsOK, error)

ListMachineDeploymentMetrics lists metrics that belong to the given machine deployment

func (*Client) ListNodeDeploymentMetrics

func (a *Client) ListNodeDeploymentMetrics(params *ListNodeDeploymentMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*ListNodeDeploymentMetricsOK, error)

ListNodeDeploymentMetrics lists metrics that belong to the given node deployment

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListMachineDeploymentMetrics(params *ListMachineDeploymentMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*ListMachineDeploymentMetricsOK, error)

	ListNodeDeploymentMetrics(params *ListNodeDeploymentMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*ListNodeDeploymentMetricsOK, 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 metric API client.

type ListMachineDeploymentMetricsDefault

type ListMachineDeploymentMetricsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListMachineDeploymentMetricsDefault handles this case with default header values.

errorResponse

func NewListMachineDeploymentMetricsDefault

func NewListMachineDeploymentMetricsDefault(code int) *ListMachineDeploymentMetricsDefault

NewListMachineDeploymentMetricsDefault creates a ListMachineDeploymentMetricsDefault with default headers values

func (*ListMachineDeploymentMetricsDefault) Code

Code gets the status code for the list machine deployment metrics default response

func (*ListMachineDeploymentMetricsDefault) Error

func (*ListMachineDeploymentMetricsDefault) GetPayload

type ListMachineDeploymentMetricsForbidden

type ListMachineDeploymentMetricsForbidden struct {
}

ListMachineDeploymentMetricsForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewListMachineDeploymentMetricsForbidden

func NewListMachineDeploymentMetricsForbidden() *ListMachineDeploymentMetricsForbidden

NewListMachineDeploymentMetricsForbidden creates a ListMachineDeploymentMetricsForbidden with default headers values

func (*ListMachineDeploymentMetricsForbidden) Error

type ListMachineDeploymentMetricsOK

type ListMachineDeploymentMetricsOK struct {
	Payload []*models.NodeMetric
}

ListMachineDeploymentMetricsOK handles this case with default header values.

NodeMetric

func NewListMachineDeploymentMetricsOK

func NewListMachineDeploymentMetricsOK() *ListMachineDeploymentMetricsOK

NewListMachineDeploymentMetricsOK creates a ListMachineDeploymentMetricsOK with default headers values

func (*ListMachineDeploymentMetricsOK) Error

func (*ListMachineDeploymentMetricsOK) GetPayload

type ListMachineDeploymentMetricsParams

type ListMachineDeploymentMetricsParams struct {

	/*ClusterID*/
	ClusterID string
	/*MachinedeploymentID*/
	MachineDeploymentID string
	/*ProjectID*/
	ProjectID string

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

ListMachineDeploymentMetricsParams contains all the parameters to send to the API endpoint for the list machine deployment metrics operation typically these are written to a http.Request

func NewListMachineDeploymentMetricsParams

func NewListMachineDeploymentMetricsParams() *ListMachineDeploymentMetricsParams

NewListMachineDeploymentMetricsParams creates a new ListMachineDeploymentMetricsParams object with the default values initialized.

func NewListMachineDeploymentMetricsParamsWithContext

func NewListMachineDeploymentMetricsParamsWithContext(ctx context.Context) *ListMachineDeploymentMetricsParams

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

func NewListMachineDeploymentMetricsParamsWithHTTPClient

func NewListMachineDeploymentMetricsParamsWithHTTPClient(client *http.Client) *ListMachineDeploymentMetricsParams

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

func NewListMachineDeploymentMetricsParamsWithTimeout

func NewListMachineDeploymentMetricsParamsWithTimeout(timeout time.Duration) *ListMachineDeploymentMetricsParams

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

func (*ListMachineDeploymentMetricsParams) SetClusterID

func (o *ListMachineDeploymentMetricsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) SetContext

SetContext adds the context to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) SetMachineDeploymentID

func (o *ListMachineDeploymentMetricsParams) SetMachineDeploymentID(machinedeploymentID string)

SetMachineDeploymentID adds the machinedeploymentId to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) SetProjectID

func (o *ListMachineDeploymentMetricsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) WithClusterID

WithClusterID adds the clusterID to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) WithContext

WithContext adds the context to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) WithMachineDeploymentID

func (o *ListMachineDeploymentMetricsParams) WithMachineDeploymentID(machinedeploymentID string) *ListMachineDeploymentMetricsParams

WithMachineDeploymentID adds the machinedeploymentID to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) WithProjectID

WithProjectID adds the projectID to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) WithTimeout

WithTimeout adds the timeout to the list machine deployment metrics params

func (*ListMachineDeploymentMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListMachineDeploymentMetricsReader

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

ListMachineDeploymentMetricsReader is a Reader for the ListMachineDeploymentMetrics structure.

func (*ListMachineDeploymentMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListMachineDeploymentMetricsUnauthorized

type ListMachineDeploymentMetricsUnauthorized struct {
}

ListMachineDeploymentMetricsUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewListMachineDeploymentMetricsUnauthorized

func NewListMachineDeploymentMetricsUnauthorized() *ListMachineDeploymentMetricsUnauthorized

NewListMachineDeploymentMetricsUnauthorized creates a ListMachineDeploymentMetricsUnauthorized with default headers values

func (*ListMachineDeploymentMetricsUnauthorized) Error

type ListNodeDeploymentMetricsDefault

type ListNodeDeploymentMetricsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListNodeDeploymentMetricsDefault handles this case with default header values.

errorResponse

func NewListNodeDeploymentMetricsDefault

func NewListNodeDeploymentMetricsDefault(code int) *ListNodeDeploymentMetricsDefault

NewListNodeDeploymentMetricsDefault creates a ListNodeDeploymentMetricsDefault with default headers values

func (*ListNodeDeploymentMetricsDefault) Code

Code gets the status code for the list node deployment metrics default response

func (*ListNodeDeploymentMetricsDefault) Error

func (*ListNodeDeploymentMetricsDefault) GetPayload

type ListNodeDeploymentMetricsForbidden

type ListNodeDeploymentMetricsForbidden struct {
}

ListNodeDeploymentMetricsForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewListNodeDeploymentMetricsForbidden

func NewListNodeDeploymentMetricsForbidden() *ListNodeDeploymentMetricsForbidden

NewListNodeDeploymentMetricsForbidden creates a ListNodeDeploymentMetricsForbidden with default headers values

func (*ListNodeDeploymentMetricsForbidden) Error

type ListNodeDeploymentMetricsOK

type ListNodeDeploymentMetricsOK struct {
	Payload []*models.NodeMetric
}

ListNodeDeploymentMetricsOK handles this case with default header values.

NodeMetric

func NewListNodeDeploymentMetricsOK

func NewListNodeDeploymentMetricsOK() *ListNodeDeploymentMetricsOK

NewListNodeDeploymentMetricsOK creates a ListNodeDeploymentMetricsOK with default headers values

func (*ListNodeDeploymentMetricsOK) Error

func (*ListNodeDeploymentMetricsOK) GetPayload

func (o *ListNodeDeploymentMetricsOK) GetPayload() []*models.NodeMetric

type ListNodeDeploymentMetricsParams

type ListNodeDeploymentMetricsParams struct {

	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*NodedeploymentID*/
	NodeDeploymentID string
	/*ProjectID*/
	ProjectID string

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

ListNodeDeploymentMetricsParams contains all the parameters to send to the API endpoint for the list node deployment metrics operation typically these are written to a http.Request

func NewListNodeDeploymentMetricsParams

func NewListNodeDeploymentMetricsParams() *ListNodeDeploymentMetricsParams

NewListNodeDeploymentMetricsParams creates a new ListNodeDeploymentMetricsParams object with the default values initialized.

func NewListNodeDeploymentMetricsParamsWithContext

func NewListNodeDeploymentMetricsParamsWithContext(ctx context.Context) *ListNodeDeploymentMetricsParams

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

func NewListNodeDeploymentMetricsParamsWithHTTPClient

func NewListNodeDeploymentMetricsParamsWithHTTPClient(client *http.Client) *ListNodeDeploymentMetricsParams

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

func NewListNodeDeploymentMetricsParamsWithTimeout

func NewListNodeDeploymentMetricsParamsWithTimeout(timeout time.Duration) *ListNodeDeploymentMetricsParams

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

func (*ListNodeDeploymentMetricsParams) SetClusterID

func (o *ListNodeDeploymentMetricsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) SetContext

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

SetContext adds the context to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) SetDC

SetDC adds the dc to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) SetNodeDeploymentID

func (o *ListNodeDeploymentMetricsParams) SetNodeDeploymentID(nodedeploymentID string)

SetNodeDeploymentID adds the nodedeploymentId to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) SetProjectID

func (o *ListNodeDeploymentMetricsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WithClusterID

WithClusterID adds the clusterID to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WithContext

WithContext adds the context to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WithDC

WithDC adds the dc to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WithNodeDeploymentID

func (o *ListNodeDeploymentMetricsParams) WithNodeDeploymentID(nodedeploymentID string) *ListNodeDeploymentMetricsParams

WithNodeDeploymentID adds the nodedeploymentID to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WithProjectID

WithProjectID adds the projectID to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WithTimeout

WithTimeout adds the timeout to the list node deployment metrics params

func (*ListNodeDeploymentMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListNodeDeploymentMetricsReader

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

ListNodeDeploymentMetricsReader is a Reader for the ListNodeDeploymentMetrics structure.

func (*ListNodeDeploymentMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListNodeDeploymentMetricsUnauthorized

type ListNodeDeploymentMetricsUnauthorized struct {
}

ListNodeDeploymentMetricsUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewListNodeDeploymentMetricsUnauthorized

func NewListNodeDeploymentMetricsUnauthorized() *ListNodeDeploymentMetricsUnauthorized

NewListNodeDeploymentMetricsUnauthorized creates a ListNodeDeploymentMetricsUnauthorized with default headers values

func (*ListNodeDeploymentMetricsUnauthorized) Error

Jump to

Keyboard shortcuts

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