Documentation
¶
Index ¶
- type Client
- func (a *Client) ListMachineDeploymentMetrics(params *ListMachineDeploymentMetricsParams, ...) (*ListMachineDeploymentMetricsOK, error)
- func (a *Client) ListNodeDeploymentMetrics(params *ListNodeDeploymentMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*ListNodeDeploymentMetricsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type ListMachineDeploymentMetricsDefault
- type ListMachineDeploymentMetricsForbidden
- type ListMachineDeploymentMetricsOK
- type ListMachineDeploymentMetricsParams
- func NewListMachineDeploymentMetricsParams() *ListMachineDeploymentMetricsParams
- func NewListMachineDeploymentMetricsParamsWithContext(ctx context.Context) *ListMachineDeploymentMetricsParams
- func NewListMachineDeploymentMetricsParamsWithHTTPClient(client *http.Client) *ListMachineDeploymentMetricsParams
- func NewListMachineDeploymentMetricsParamsWithTimeout(timeout time.Duration) *ListMachineDeploymentMetricsParams
- func (o *ListMachineDeploymentMetricsParams) SetClusterID(clusterID string)
- func (o *ListMachineDeploymentMetricsParams) SetContext(ctx context.Context)
- func (o *ListMachineDeploymentMetricsParams) SetHTTPClient(client *http.Client)
- func (o *ListMachineDeploymentMetricsParams) SetMachineDeploymentID(machinedeploymentID string)
- func (o *ListMachineDeploymentMetricsParams) SetProjectID(projectID string)
- func (o *ListMachineDeploymentMetricsParams) SetTimeout(timeout time.Duration)
- func (o *ListMachineDeploymentMetricsParams) WithClusterID(clusterID string) *ListMachineDeploymentMetricsParams
- func (o *ListMachineDeploymentMetricsParams) WithContext(ctx context.Context) *ListMachineDeploymentMetricsParams
- func (o *ListMachineDeploymentMetricsParams) WithHTTPClient(client *http.Client) *ListMachineDeploymentMetricsParams
- func (o *ListMachineDeploymentMetricsParams) WithMachineDeploymentID(machinedeploymentID string) *ListMachineDeploymentMetricsParams
- func (o *ListMachineDeploymentMetricsParams) WithProjectID(projectID string) *ListMachineDeploymentMetricsParams
- func (o *ListMachineDeploymentMetricsParams) WithTimeout(timeout time.Duration) *ListMachineDeploymentMetricsParams
- func (o *ListMachineDeploymentMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMachineDeploymentMetricsReader
- type ListMachineDeploymentMetricsUnauthorized
- type ListNodeDeploymentMetricsDefault
- type ListNodeDeploymentMetricsForbidden
- type ListNodeDeploymentMetricsOK
- type ListNodeDeploymentMetricsParams
- func NewListNodeDeploymentMetricsParams() *ListNodeDeploymentMetricsParams
- func NewListNodeDeploymentMetricsParamsWithContext(ctx context.Context) *ListNodeDeploymentMetricsParams
- func NewListNodeDeploymentMetricsParamsWithHTTPClient(client *http.Client) *ListNodeDeploymentMetricsParams
- func NewListNodeDeploymentMetricsParamsWithTimeout(timeout time.Duration) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) SetClusterID(clusterID string)
- func (o *ListNodeDeploymentMetricsParams) SetContext(ctx context.Context)
- func (o *ListNodeDeploymentMetricsParams) SetDC(dc string)
- func (o *ListNodeDeploymentMetricsParams) SetHTTPClient(client *http.Client)
- func (o *ListNodeDeploymentMetricsParams) SetNodeDeploymentID(nodedeploymentID string)
- func (o *ListNodeDeploymentMetricsParams) SetProjectID(projectID string)
- func (o *ListNodeDeploymentMetricsParams) SetTimeout(timeout time.Duration)
- func (o *ListNodeDeploymentMetricsParams) WithClusterID(clusterID string) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) WithContext(ctx context.Context) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) WithDC(dc string) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) WithHTTPClient(client *http.Client) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) WithNodeDeploymentID(nodedeploymentID string) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) WithProjectID(projectID string) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) WithTimeout(timeout time.Duration) *ListNodeDeploymentMetricsParams
- func (o *ListNodeDeploymentMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListNodeDeploymentMetricsReader
- type ListNodeDeploymentMetricsUnauthorized
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 ¶
func (o *ListMachineDeploymentMetricsDefault) Code() int
Code gets the status code for the list machine deployment metrics default response
func (*ListMachineDeploymentMetricsDefault) Error ¶
func (o *ListMachineDeploymentMetricsDefault) Error() string
func (*ListMachineDeploymentMetricsDefault) GetPayload ¶
func (o *ListMachineDeploymentMetricsDefault) GetPayload() *models.ErrorResponse
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 ¶
func (o *ListMachineDeploymentMetricsForbidden) Error() string
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 (o *ListMachineDeploymentMetricsOK) Error() string
func (*ListMachineDeploymentMetricsOK) GetPayload ¶
func (o *ListMachineDeploymentMetricsOK) GetPayload() []*models.NodeMetric
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 ¶
func (o *ListMachineDeploymentMetricsParams) SetContext(ctx context.Context)
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 ¶
func (o *ListMachineDeploymentMetricsParams) WithClusterID(clusterID string) *ListMachineDeploymentMetricsParams
WithClusterID adds the clusterID to the list machine deployment metrics params
func (*ListMachineDeploymentMetricsParams) WithContext ¶
func (o *ListMachineDeploymentMetricsParams) WithContext(ctx context.Context) *ListMachineDeploymentMetricsParams
WithContext adds the context to the list machine deployment metrics params
func (*ListMachineDeploymentMetricsParams) WithHTTPClient ¶
func (o *ListMachineDeploymentMetricsParams) WithHTTPClient(client *http.Client) *ListMachineDeploymentMetricsParams
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 ¶
func (o *ListMachineDeploymentMetricsParams) WithProjectID(projectID string) *ListMachineDeploymentMetricsParams
WithProjectID adds the projectID to the list machine deployment metrics params
func (*ListMachineDeploymentMetricsParams) WithTimeout ¶
func (o *ListMachineDeploymentMetricsParams) WithTimeout(timeout time.Duration) *ListMachineDeploymentMetricsParams
WithTimeout adds the timeout to the list machine deployment metrics params
func (*ListMachineDeploymentMetricsParams) WriteToRequest ¶
func (o *ListMachineDeploymentMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListMachineDeploymentMetricsUnauthorized) Error() string
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 ¶
func (o *ListNodeDeploymentMetricsDefault) Code() int
Code gets the status code for the list node deployment metrics default response
func (*ListNodeDeploymentMetricsDefault) Error ¶
func (o *ListNodeDeploymentMetricsDefault) Error() string
func (*ListNodeDeploymentMetricsDefault) GetPayload ¶
func (o *ListNodeDeploymentMetricsDefault) GetPayload() *models.ErrorResponse
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 ¶
func (o *ListNodeDeploymentMetricsForbidden) Error() string
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 (o *ListNodeDeploymentMetricsOK) Error() string
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 ¶
func (o *ListNodeDeploymentMetricsParams) SetDC(dc string)
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 ¶
func (o *ListNodeDeploymentMetricsParams) WithClusterID(clusterID string) *ListNodeDeploymentMetricsParams
WithClusterID adds the clusterID to the list node deployment metrics params
func (*ListNodeDeploymentMetricsParams) WithContext ¶
func (o *ListNodeDeploymentMetricsParams) WithContext(ctx context.Context) *ListNodeDeploymentMetricsParams
WithContext adds the context to the list node deployment metrics params
func (*ListNodeDeploymentMetricsParams) WithDC ¶
func (o *ListNodeDeploymentMetricsParams) WithDC(dc string) *ListNodeDeploymentMetricsParams
WithDC adds the dc to the list node deployment metrics params
func (*ListNodeDeploymentMetricsParams) WithHTTPClient ¶
func (o *ListNodeDeploymentMetricsParams) WithHTTPClient(client *http.Client) *ListNodeDeploymentMetricsParams
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 ¶
func (o *ListNodeDeploymentMetricsParams) WithProjectID(projectID string) *ListNodeDeploymentMetricsParams
WithProjectID adds the projectID to the list node deployment metrics params
func (*ListNodeDeploymentMetricsParams) WithTimeout ¶
func (o *ListNodeDeploymentMetricsParams) WithTimeout(timeout time.Duration) *ListNodeDeploymentMetricsParams
WithTimeout adds the timeout to the list node deployment metrics params
func (*ListNodeDeploymentMetricsParams) WriteToRequest ¶
func (o *ListNodeDeploymentMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListNodeDeploymentMetricsUnauthorized) Error() string