telemetry

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 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 telemetry API

func (*Client) GetTelemetryConfig

func (a *Client) GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTelemetryConfigOK, error)

GetTelemetryConfig gets e c e telemetry config

Returns whether ECE telemetry is enabled.

func (*Client) SetTelemetryConfig

func (a *Client) SetTelemetryConfig(params *SetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTelemetryConfigOK, error)

SetTelemetryConfig sets e c e telemetry config

Sets whether to enable ECE telemetry.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTelemetryConfigOK, error)

	SetTelemetryConfig(params *SetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTelemetryConfigOK, 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 telemetry API client.

type GetTelemetryConfigForbidden

type GetTelemetryConfigForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetTelemetryConfigForbidden describes a response with status code 403, with default header values.

User must have Platform level permissions. (code: `root.unauthorized.rbac`)

func NewGetTelemetryConfigForbidden

func NewGetTelemetryConfigForbidden() *GetTelemetryConfigForbidden

NewGetTelemetryConfigForbidden creates a GetTelemetryConfigForbidden with default headers values

func (*GetTelemetryConfigForbidden) Code

func (o *GetTelemetryConfigForbidden) Code() int

Code gets the status code for the get telemetry config forbidden response

func (*GetTelemetryConfigForbidden) Error

func (*GetTelemetryConfigForbidden) GetPayload

func (*GetTelemetryConfigForbidden) IsClientError

func (o *GetTelemetryConfigForbidden) IsClientError() bool

IsClientError returns true when this get telemetry config forbidden response has a 4xx status code

func (*GetTelemetryConfigForbidden) IsCode

func (o *GetTelemetryConfigForbidden) IsCode(code int) bool

IsCode returns true when this get telemetry config forbidden response a status code equal to that given

func (*GetTelemetryConfigForbidden) IsRedirect

func (o *GetTelemetryConfigForbidden) IsRedirect() bool

IsRedirect returns true when this get telemetry config forbidden response has a 3xx status code

func (*GetTelemetryConfigForbidden) IsServerError

func (o *GetTelemetryConfigForbidden) IsServerError() bool

IsServerError returns true when this get telemetry config forbidden response has a 5xx status code

func (*GetTelemetryConfigForbidden) IsSuccess

func (o *GetTelemetryConfigForbidden) IsSuccess() bool

IsSuccess returns true when this get telemetry config forbidden response has a 2xx status code

func (*GetTelemetryConfigForbidden) String

func (o *GetTelemetryConfigForbidden) String() string

type GetTelemetryConfigOK

type GetTelemetryConfigOK struct {
	Payload *models.TelemetryConfig
}

GetTelemetryConfigOK describes a response with status code 200, with default header values.

The current ECE telemetry configuration

func NewGetTelemetryConfigOK

func NewGetTelemetryConfigOK() *GetTelemetryConfigOK

NewGetTelemetryConfigOK creates a GetTelemetryConfigOK with default headers values

func (*GetTelemetryConfigOK) Code

func (o *GetTelemetryConfigOK) Code() int

Code gets the status code for the get telemetry config o k response

func (*GetTelemetryConfigOK) Error

func (o *GetTelemetryConfigOK) Error() string

func (*GetTelemetryConfigOK) GetPayload

func (o *GetTelemetryConfigOK) GetPayload() *models.TelemetryConfig

func (*GetTelemetryConfigOK) IsClientError

func (o *GetTelemetryConfigOK) IsClientError() bool

IsClientError returns true when this get telemetry config o k response has a 4xx status code

func (*GetTelemetryConfigOK) IsCode

func (o *GetTelemetryConfigOK) IsCode(code int) bool

IsCode returns true when this get telemetry config o k response a status code equal to that given

func (*GetTelemetryConfigOK) IsRedirect

func (o *GetTelemetryConfigOK) IsRedirect() bool

IsRedirect returns true when this get telemetry config o k response has a 3xx status code

func (*GetTelemetryConfigOK) IsServerError

func (o *GetTelemetryConfigOK) IsServerError() bool

IsServerError returns true when this get telemetry config o k response has a 5xx status code

func (*GetTelemetryConfigOK) IsSuccess

func (o *GetTelemetryConfigOK) IsSuccess() bool

IsSuccess returns true when this get telemetry config o k response has a 2xx status code

func (*GetTelemetryConfigOK) String

func (o *GetTelemetryConfigOK) String() string

type GetTelemetryConfigParams

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

GetTelemetryConfigParams contains all the parameters to send to the API endpoint

for the get telemetry config operation.

Typically these are written to a http.Request.

func NewGetTelemetryConfigParams

func NewGetTelemetryConfigParams() *GetTelemetryConfigParams

NewGetTelemetryConfigParams creates a new GetTelemetryConfigParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetTelemetryConfigParamsWithContext

func NewGetTelemetryConfigParamsWithContext(ctx context.Context) *GetTelemetryConfigParams

NewGetTelemetryConfigParamsWithContext creates a new GetTelemetryConfigParams object with the ability to set a context for a request.

func NewGetTelemetryConfigParamsWithHTTPClient

func NewGetTelemetryConfigParamsWithHTTPClient(client *http.Client) *GetTelemetryConfigParams

NewGetTelemetryConfigParamsWithHTTPClient creates a new GetTelemetryConfigParams object with the ability to set a custom HTTPClient for a request.

func NewGetTelemetryConfigParamsWithTimeout

func NewGetTelemetryConfigParamsWithTimeout(timeout time.Duration) *GetTelemetryConfigParams

NewGetTelemetryConfigParamsWithTimeout creates a new GetTelemetryConfigParams object with the ability to set a timeout on a request.

func (*GetTelemetryConfigParams) SetContext

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

SetContext adds the context to the get telemetry config params

func (*GetTelemetryConfigParams) SetDefaults

func (o *GetTelemetryConfigParams) SetDefaults()

SetDefaults hydrates default values in the get telemetry config params (not the query body).

All values with no default are reset to their zero value.

func (*GetTelemetryConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get telemetry config params

func (*GetTelemetryConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get telemetry config params

func (*GetTelemetryConfigParams) WithContext

WithContext adds the context to the get telemetry config params

func (*GetTelemetryConfigParams) WithDefaults

WithDefaults hydrates default values in the get telemetry config params (not the query body).

All values with no default are reset to their zero value.

func (*GetTelemetryConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get telemetry config params

func (*GetTelemetryConfigParams) WithTimeout

WithTimeout adds the timeout to the get telemetry config params

func (*GetTelemetryConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTelemetryConfigReader

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

GetTelemetryConfigReader is a Reader for the GetTelemetryConfig structure.

func (*GetTelemetryConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetTelemetryConfigConflict

type SetTelemetryConfigConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetTelemetryConfigConflict describes a response with status code 409, with default header values.

The telemetry configuration did not exist so there was an attempt to create one. Another request resulted in the creation of a telemetry configuration before this request completed, resulting in the failure of this request to create a configuration. Please retry. (code: `telemetry.already_exists`)

func NewSetTelemetryConfigConflict

func NewSetTelemetryConfigConflict() *SetTelemetryConfigConflict

NewSetTelemetryConfigConflict creates a SetTelemetryConfigConflict with default headers values

func (*SetTelemetryConfigConflict) Code

func (o *SetTelemetryConfigConflict) Code() int

Code gets the status code for the set telemetry config conflict response

func (*SetTelemetryConfigConflict) Error

func (*SetTelemetryConfigConflict) GetPayload

func (*SetTelemetryConfigConflict) IsClientError

func (o *SetTelemetryConfigConflict) IsClientError() bool

IsClientError returns true when this set telemetry config conflict response has a 4xx status code

func (*SetTelemetryConfigConflict) IsCode

func (o *SetTelemetryConfigConflict) IsCode(code int) bool

IsCode returns true when this set telemetry config conflict response a status code equal to that given

func (*SetTelemetryConfigConflict) IsRedirect

func (o *SetTelemetryConfigConflict) IsRedirect() bool

IsRedirect returns true when this set telemetry config conflict response has a 3xx status code

func (*SetTelemetryConfigConflict) IsServerError

func (o *SetTelemetryConfigConflict) IsServerError() bool

IsServerError returns true when this set telemetry config conflict response has a 5xx status code

func (*SetTelemetryConfigConflict) IsSuccess

func (o *SetTelemetryConfigConflict) IsSuccess() bool

IsSuccess returns true when this set telemetry config conflict response has a 2xx status code

func (*SetTelemetryConfigConflict) String

func (o *SetTelemetryConfigConflict) String() string

type SetTelemetryConfigForbidden

type SetTelemetryConfigForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetTelemetryConfigForbidden describes a response with status code 403, with default header values.

User must have Platform level permissions. (code: `root.unauthorized.rbac`)

func NewSetTelemetryConfigForbidden

func NewSetTelemetryConfigForbidden() *SetTelemetryConfigForbidden

NewSetTelemetryConfigForbidden creates a SetTelemetryConfigForbidden with default headers values

func (*SetTelemetryConfigForbidden) Code

func (o *SetTelemetryConfigForbidden) Code() int

Code gets the status code for the set telemetry config forbidden response

func (*SetTelemetryConfigForbidden) Error

func (*SetTelemetryConfigForbidden) GetPayload

func (*SetTelemetryConfigForbidden) IsClientError

func (o *SetTelemetryConfigForbidden) IsClientError() bool

IsClientError returns true when this set telemetry config forbidden response has a 4xx status code

func (*SetTelemetryConfigForbidden) IsCode

func (o *SetTelemetryConfigForbidden) IsCode(code int) bool

IsCode returns true when this set telemetry config forbidden response a status code equal to that given

func (*SetTelemetryConfigForbidden) IsRedirect

func (o *SetTelemetryConfigForbidden) IsRedirect() bool

IsRedirect returns true when this set telemetry config forbidden response has a 3xx status code

func (*SetTelemetryConfigForbidden) IsServerError

func (o *SetTelemetryConfigForbidden) IsServerError() bool

IsServerError returns true when this set telemetry config forbidden response has a 5xx status code

func (*SetTelemetryConfigForbidden) IsSuccess

func (o *SetTelemetryConfigForbidden) IsSuccess() bool

IsSuccess returns true when this set telemetry config forbidden response has a 2xx status code

func (*SetTelemetryConfigForbidden) String

func (o *SetTelemetryConfigForbidden) String() string

type SetTelemetryConfigInternalServerError

type SetTelemetryConfigInternalServerError struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetTelemetryConfigInternalServerError describes a response with status code 500, with default header values.

Failed to set the configuration due to an internal server error. (code: `telemetry.request_execution_failed`)

func NewSetTelemetryConfigInternalServerError

func NewSetTelemetryConfigInternalServerError() *SetTelemetryConfigInternalServerError

NewSetTelemetryConfigInternalServerError creates a SetTelemetryConfigInternalServerError with default headers values

func (*SetTelemetryConfigInternalServerError) Code

Code gets the status code for the set telemetry config internal server error response

func (*SetTelemetryConfigInternalServerError) Error

func (*SetTelemetryConfigInternalServerError) GetPayload

func (*SetTelemetryConfigInternalServerError) IsClientError

func (o *SetTelemetryConfigInternalServerError) IsClientError() bool

IsClientError returns true when this set telemetry config internal server error response has a 4xx status code

func (*SetTelemetryConfigInternalServerError) IsCode

IsCode returns true when this set telemetry config internal server error response a status code equal to that given

func (*SetTelemetryConfigInternalServerError) IsRedirect

IsRedirect returns true when this set telemetry config internal server error response has a 3xx status code

func (*SetTelemetryConfigInternalServerError) IsServerError

func (o *SetTelemetryConfigInternalServerError) IsServerError() bool

IsServerError returns true when this set telemetry config internal server error response has a 5xx status code

func (*SetTelemetryConfigInternalServerError) IsSuccess

IsSuccess returns true when this set telemetry config internal server error response has a 2xx status code

func (*SetTelemetryConfigInternalServerError) String

type SetTelemetryConfigOK

type SetTelemetryConfigOK struct {
	Payload *models.TelemetryConfig
}

SetTelemetryConfigOK describes a response with status code 200, with default header values.

Telemetry configuration updated successfully

func NewSetTelemetryConfigOK

func NewSetTelemetryConfigOK() *SetTelemetryConfigOK

NewSetTelemetryConfigOK creates a SetTelemetryConfigOK with default headers values

func (*SetTelemetryConfigOK) Code

func (o *SetTelemetryConfigOK) Code() int

Code gets the status code for the set telemetry config o k response

func (*SetTelemetryConfigOK) Error

func (o *SetTelemetryConfigOK) Error() string

func (*SetTelemetryConfigOK) GetPayload

func (o *SetTelemetryConfigOK) GetPayload() *models.TelemetryConfig

func (*SetTelemetryConfigOK) IsClientError

func (o *SetTelemetryConfigOK) IsClientError() bool

IsClientError returns true when this set telemetry config o k response has a 4xx status code

func (*SetTelemetryConfigOK) IsCode

func (o *SetTelemetryConfigOK) IsCode(code int) bool

IsCode returns true when this set telemetry config o k response a status code equal to that given

func (*SetTelemetryConfigOK) IsRedirect

func (o *SetTelemetryConfigOK) IsRedirect() bool

IsRedirect returns true when this set telemetry config o k response has a 3xx status code

func (*SetTelemetryConfigOK) IsServerError

func (o *SetTelemetryConfigOK) IsServerError() bool

IsServerError returns true when this set telemetry config o k response has a 5xx status code

func (*SetTelemetryConfigOK) IsSuccess

func (o *SetTelemetryConfigOK) IsSuccess() bool

IsSuccess returns true when this set telemetry config o k response has a 2xx status code

func (*SetTelemetryConfigOK) String

func (o *SetTelemetryConfigOK) String() string

type SetTelemetryConfigParams

type SetTelemetryConfigParams struct {

	/* Body.

	   The desired ECE telemetry configuration
	*/
	Body *models.TelemetryConfigRequest

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

SetTelemetryConfigParams contains all the parameters to send to the API endpoint

for the set telemetry config operation.

Typically these are written to a http.Request.

func NewSetTelemetryConfigParams

func NewSetTelemetryConfigParams() *SetTelemetryConfigParams

NewSetTelemetryConfigParams creates a new SetTelemetryConfigParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSetTelemetryConfigParamsWithContext

func NewSetTelemetryConfigParamsWithContext(ctx context.Context) *SetTelemetryConfigParams

NewSetTelemetryConfigParamsWithContext creates a new SetTelemetryConfigParams object with the ability to set a context for a request.

func NewSetTelemetryConfigParamsWithHTTPClient

func NewSetTelemetryConfigParamsWithHTTPClient(client *http.Client) *SetTelemetryConfigParams

NewSetTelemetryConfigParamsWithHTTPClient creates a new SetTelemetryConfigParams object with the ability to set a custom HTTPClient for a request.

func NewSetTelemetryConfigParamsWithTimeout

func NewSetTelemetryConfigParamsWithTimeout(timeout time.Duration) *SetTelemetryConfigParams

NewSetTelemetryConfigParamsWithTimeout creates a new SetTelemetryConfigParams object with the ability to set a timeout on a request.

func (*SetTelemetryConfigParams) SetBody

SetBody adds the body to the set telemetry config params

func (*SetTelemetryConfigParams) SetContext

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

SetContext adds the context to the set telemetry config params

func (*SetTelemetryConfigParams) SetDefaults

func (o *SetTelemetryConfigParams) SetDefaults()

SetDefaults hydrates default values in the set telemetry config params (not the query body).

All values with no default are reset to their zero value.

func (*SetTelemetryConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set telemetry config params

func (*SetTelemetryConfigParams) SetTimeout

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

SetTimeout adds the timeout to the set telemetry config params

func (*SetTelemetryConfigParams) WithBody

WithBody adds the body to the set telemetry config params

func (*SetTelemetryConfigParams) WithContext

WithContext adds the context to the set telemetry config params

func (*SetTelemetryConfigParams) WithDefaults

WithDefaults hydrates default values in the set telemetry config params (not the query body).

All values with no default are reset to their zero value.

func (*SetTelemetryConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set telemetry config params

func (*SetTelemetryConfigParams) WithTimeout

WithTimeout adds the timeout to the set telemetry config params

func (*SetTelemetryConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetTelemetryConfigReader

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

SetTelemetryConfigReader is a Reader for the SetTelemetryConfig structure.

func (*SetTelemetryConfigReader) ReadResponse

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