trace_metrics_rule

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.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 trace metrics rule API

func (*Client) CreateTraceMetricsRule

func (a *Client) CreateTraceMetricsRule(params *CreateTraceMetricsRuleParams, opts ...ClientOption) (*CreateTraceMetricsRuleOK, error)
CreateTraceMetricsRule ***

Trace Metrics Rules ***

func (*Client) DeleteTraceMetricsRule

func (a *Client) DeleteTraceMetricsRule(params *DeleteTraceMetricsRuleParams, opts ...ClientOption) (*DeleteTraceMetricsRuleOK, error)

DeleteTraceMetricsRule delete trace metrics rule API

func (*Client) ListTraceMetricsRules

func (a *Client) ListTraceMetricsRules(params *ListTraceMetricsRulesParams, opts ...ClientOption) (*ListTraceMetricsRulesOK, error)

ListTraceMetricsRules list trace metrics rules API

func (*Client) ReadTraceMetricsRule

func (a *Client) ReadTraceMetricsRule(params *ReadTraceMetricsRuleParams, opts ...ClientOption) (*ReadTraceMetricsRuleOK, error)

ReadTraceMetricsRule read trace metrics rule API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateTraceMetricsRule

func (a *Client) UpdateTraceMetricsRule(params *UpdateTraceMetricsRuleParams, opts ...ClientOption) (*UpdateTraceMetricsRuleOK, error)

UpdateTraceMetricsRule update trace metrics rule API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateTraceMetricsRule(params *CreateTraceMetricsRuleParams, opts ...ClientOption) (*CreateTraceMetricsRuleOK, error)

	DeleteTraceMetricsRule(params *DeleteTraceMetricsRuleParams, opts ...ClientOption) (*DeleteTraceMetricsRuleOK, error)

	ListTraceMetricsRules(params *ListTraceMetricsRulesParams, opts ...ClientOption) (*ListTraceMetricsRulesOK, error)

	ReadTraceMetricsRule(params *ReadTraceMetricsRuleParams, opts ...ClientOption) (*ReadTraceMetricsRuleOK, error)

	UpdateTraceMetricsRule(params *UpdateTraceMetricsRuleParams, opts ...ClientOption) (*UpdateTraceMetricsRuleOK, 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 trace metrics rule API client.

type CreateTraceMetricsRuleBadRequest

type CreateTraceMetricsRuleBadRequest struct {
	Payload *models.APIError
}

CreateTraceMetricsRuleBadRequest describes a response with status code 400, with default header values.

Cannot create the TraceMetricsRule because the request is invalid.

func NewCreateTraceMetricsRuleBadRequest

func NewCreateTraceMetricsRuleBadRequest() *CreateTraceMetricsRuleBadRequest

NewCreateTraceMetricsRuleBadRequest creates a CreateTraceMetricsRuleBadRequest with default headers values

func (*CreateTraceMetricsRuleBadRequest) Code

Code gets the status code for the create trace metrics rule bad request response

func (*CreateTraceMetricsRuleBadRequest) Error

func (*CreateTraceMetricsRuleBadRequest) GetPayload

func (*CreateTraceMetricsRuleBadRequest) IsClientError

func (o *CreateTraceMetricsRuleBadRequest) IsClientError() bool

IsClientError returns true when this create trace metrics rule bad request response has a 4xx status code

func (*CreateTraceMetricsRuleBadRequest) IsCode

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

IsCode returns true when this create trace metrics rule bad request response a status code equal to that given

func (*CreateTraceMetricsRuleBadRequest) IsRedirect

func (o *CreateTraceMetricsRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this create trace metrics rule bad request response has a 3xx status code

func (*CreateTraceMetricsRuleBadRequest) IsServerError

func (o *CreateTraceMetricsRuleBadRequest) IsServerError() bool

IsServerError returns true when this create trace metrics rule bad request response has a 5xx status code

func (*CreateTraceMetricsRuleBadRequest) IsSuccess

func (o *CreateTraceMetricsRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this create trace metrics rule bad request response has a 2xx status code

func (*CreateTraceMetricsRuleBadRequest) String

type CreateTraceMetricsRuleConflict

type CreateTraceMetricsRuleConflict struct {
	Payload *models.APIError
}

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

Cannot create the TraceMetricsRule because there is a conflict with an existing TraceMetricsRule.

func NewCreateTraceMetricsRuleConflict

func NewCreateTraceMetricsRuleConflict() *CreateTraceMetricsRuleConflict

NewCreateTraceMetricsRuleConflict creates a CreateTraceMetricsRuleConflict with default headers values

func (*CreateTraceMetricsRuleConflict) Code

Code gets the status code for the create trace metrics rule conflict response

func (*CreateTraceMetricsRuleConflict) Error

func (*CreateTraceMetricsRuleConflict) GetPayload

func (*CreateTraceMetricsRuleConflict) IsClientError

func (o *CreateTraceMetricsRuleConflict) IsClientError() bool

IsClientError returns true when this create trace metrics rule conflict response has a 4xx status code

func (*CreateTraceMetricsRuleConflict) IsCode

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

IsCode returns true when this create trace metrics rule conflict response a status code equal to that given

func (*CreateTraceMetricsRuleConflict) IsRedirect

func (o *CreateTraceMetricsRuleConflict) IsRedirect() bool

IsRedirect returns true when this create trace metrics rule conflict response has a 3xx status code

func (*CreateTraceMetricsRuleConflict) IsServerError

func (o *CreateTraceMetricsRuleConflict) IsServerError() bool

IsServerError returns true when this create trace metrics rule conflict response has a 5xx status code

func (*CreateTraceMetricsRuleConflict) IsSuccess

func (o *CreateTraceMetricsRuleConflict) IsSuccess() bool

IsSuccess returns true when this create trace metrics rule conflict response has a 2xx status code

func (*CreateTraceMetricsRuleConflict) String

type CreateTraceMetricsRuleDefault

type CreateTraceMetricsRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateTraceMetricsRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateTraceMetricsRuleDefault

func NewCreateTraceMetricsRuleDefault(code int) *CreateTraceMetricsRuleDefault

NewCreateTraceMetricsRuleDefault creates a CreateTraceMetricsRuleDefault with default headers values

func (*CreateTraceMetricsRuleDefault) Code

Code gets the status code for the create trace metrics rule default response

func (*CreateTraceMetricsRuleDefault) Error

func (*CreateTraceMetricsRuleDefault) GetPayload

func (*CreateTraceMetricsRuleDefault) IsClientError

func (o *CreateTraceMetricsRuleDefault) IsClientError() bool

IsClientError returns true when this create trace metrics rule default response has a 4xx status code

func (*CreateTraceMetricsRuleDefault) IsCode

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

IsCode returns true when this create trace metrics rule default response a status code equal to that given

func (*CreateTraceMetricsRuleDefault) IsRedirect

func (o *CreateTraceMetricsRuleDefault) IsRedirect() bool

IsRedirect returns true when this create trace metrics rule default response has a 3xx status code

func (*CreateTraceMetricsRuleDefault) IsServerError

func (o *CreateTraceMetricsRuleDefault) IsServerError() bool

IsServerError returns true when this create trace metrics rule default response has a 5xx status code

func (*CreateTraceMetricsRuleDefault) IsSuccess

func (o *CreateTraceMetricsRuleDefault) IsSuccess() bool

IsSuccess returns true when this create trace metrics rule default response has a 2xx status code

func (*CreateTraceMetricsRuleDefault) String

type CreateTraceMetricsRuleInternalServerError

type CreateTraceMetricsRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateTraceMetricsRuleInternalServerError

func NewCreateTraceMetricsRuleInternalServerError() *CreateTraceMetricsRuleInternalServerError

NewCreateTraceMetricsRuleInternalServerError creates a CreateTraceMetricsRuleInternalServerError with default headers values

func (*CreateTraceMetricsRuleInternalServerError) Code

Code gets the status code for the create trace metrics rule internal server error response

func (*CreateTraceMetricsRuleInternalServerError) Error

func (*CreateTraceMetricsRuleInternalServerError) GetPayload

func (*CreateTraceMetricsRuleInternalServerError) IsClientError

IsClientError returns true when this create trace metrics rule internal server error response has a 4xx status code

func (*CreateTraceMetricsRuleInternalServerError) IsCode

IsCode returns true when this create trace metrics rule internal server error response a status code equal to that given

func (*CreateTraceMetricsRuleInternalServerError) IsRedirect

IsRedirect returns true when this create trace metrics rule internal server error response has a 3xx status code

func (*CreateTraceMetricsRuleInternalServerError) IsServerError

IsServerError returns true when this create trace metrics rule internal server error response has a 5xx status code

func (*CreateTraceMetricsRuleInternalServerError) IsSuccess

IsSuccess returns true when this create trace metrics rule internal server error response has a 2xx status code

func (*CreateTraceMetricsRuleInternalServerError) String

type CreateTraceMetricsRuleOK

type CreateTraceMetricsRuleOK struct {
	Payload *models.Configv1CreateTraceMetricsRuleResponse
}

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

A successful response containing the created TraceMetricsRule.

func NewCreateTraceMetricsRuleOK

func NewCreateTraceMetricsRuleOK() *CreateTraceMetricsRuleOK

NewCreateTraceMetricsRuleOK creates a CreateTraceMetricsRuleOK with default headers values

func (*CreateTraceMetricsRuleOK) Code

func (o *CreateTraceMetricsRuleOK) Code() int

Code gets the status code for the create trace metrics rule o k response

func (*CreateTraceMetricsRuleOK) Error

func (o *CreateTraceMetricsRuleOK) Error() string

func (*CreateTraceMetricsRuleOK) GetPayload

func (*CreateTraceMetricsRuleOK) IsClientError

func (o *CreateTraceMetricsRuleOK) IsClientError() bool

IsClientError returns true when this create trace metrics rule o k response has a 4xx status code

func (*CreateTraceMetricsRuleOK) IsCode

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

IsCode returns true when this create trace metrics rule o k response a status code equal to that given

func (*CreateTraceMetricsRuleOK) IsRedirect

func (o *CreateTraceMetricsRuleOK) IsRedirect() bool

IsRedirect returns true when this create trace metrics rule o k response has a 3xx status code

func (*CreateTraceMetricsRuleOK) IsServerError

func (o *CreateTraceMetricsRuleOK) IsServerError() bool

IsServerError returns true when this create trace metrics rule o k response has a 5xx status code

func (*CreateTraceMetricsRuleOK) IsSuccess

func (o *CreateTraceMetricsRuleOK) IsSuccess() bool

IsSuccess returns true when this create trace metrics rule o k response has a 2xx status code

func (*CreateTraceMetricsRuleOK) String

func (o *CreateTraceMetricsRuleOK) String() string

type CreateTraceMetricsRuleParams

type CreateTraceMetricsRuleParams struct {

	// Body.
	Body *models.Configv1CreateTraceMetricsRuleRequest

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

CreateTraceMetricsRuleParams contains all the parameters to send to the API endpoint

for the create trace metrics rule operation.

Typically these are written to a http.Request.

func NewCreateTraceMetricsRuleParams

func NewCreateTraceMetricsRuleParams() *CreateTraceMetricsRuleParams

NewCreateTraceMetricsRuleParams creates a new CreateTraceMetricsRuleParams 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 NewCreateTraceMetricsRuleParamsWithContext

func NewCreateTraceMetricsRuleParamsWithContext(ctx context.Context) *CreateTraceMetricsRuleParams

NewCreateTraceMetricsRuleParamsWithContext creates a new CreateTraceMetricsRuleParams object with the ability to set a context for a request.

func NewCreateTraceMetricsRuleParamsWithHTTPClient

func NewCreateTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *CreateTraceMetricsRuleParams

NewCreateTraceMetricsRuleParamsWithHTTPClient creates a new CreateTraceMetricsRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTraceMetricsRuleParamsWithTimeout

func NewCreateTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *CreateTraceMetricsRuleParams

NewCreateTraceMetricsRuleParamsWithTimeout creates a new CreateTraceMetricsRuleParams object with the ability to set a timeout on a request.

func (*CreateTraceMetricsRuleParams) SetBody

SetBody adds the body to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) SetContext

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

SetContext adds the context to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) SetDefaults

func (o *CreateTraceMetricsRuleParams) SetDefaults()

SetDefaults hydrates default values in the create trace metrics rule params (not the query body).

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

func (*CreateTraceMetricsRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) WithBody

WithBody adds the body to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) WithContext

WithContext adds the context to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) WithDefaults

WithDefaults hydrates default values in the create trace metrics rule params (not the query body).

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

func (*CreateTraceMetricsRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) WithTimeout

WithTimeout adds the timeout to the create trace metrics rule params

func (*CreateTraceMetricsRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTraceMetricsRuleReader

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

CreateTraceMetricsRuleReader is a Reader for the CreateTraceMetricsRule structure.

func (*CreateTraceMetricsRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTraceMetricsRuleBadRequest

type DeleteTraceMetricsRuleBadRequest struct {
	Payload *models.APIError
}

DeleteTraceMetricsRuleBadRequest describes a response with status code 400, with default header values.

Cannot delete the TraceMetricsRule because it is in use.

func NewDeleteTraceMetricsRuleBadRequest

func NewDeleteTraceMetricsRuleBadRequest() *DeleteTraceMetricsRuleBadRequest

NewDeleteTraceMetricsRuleBadRequest creates a DeleteTraceMetricsRuleBadRequest with default headers values

func (*DeleteTraceMetricsRuleBadRequest) Code

Code gets the status code for the delete trace metrics rule bad request response

func (*DeleteTraceMetricsRuleBadRequest) Error

func (*DeleteTraceMetricsRuleBadRequest) GetPayload

func (*DeleteTraceMetricsRuleBadRequest) IsClientError

func (o *DeleteTraceMetricsRuleBadRequest) IsClientError() bool

IsClientError returns true when this delete trace metrics rule bad request response has a 4xx status code

func (*DeleteTraceMetricsRuleBadRequest) IsCode

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

IsCode returns true when this delete trace metrics rule bad request response a status code equal to that given

func (*DeleteTraceMetricsRuleBadRequest) IsRedirect

func (o *DeleteTraceMetricsRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this delete trace metrics rule bad request response has a 3xx status code

func (*DeleteTraceMetricsRuleBadRequest) IsServerError

func (o *DeleteTraceMetricsRuleBadRequest) IsServerError() bool

IsServerError returns true when this delete trace metrics rule bad request response has a 5xx status code

func (*DeleteTraceMetricsRuleBadRequest) IsSuccess

func (o *DeleteTraceMetricsRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this delete trace metrics rule bad request response has a 2xx status code

func (*DeleteTraceMetricsRuleBadRequest) String

type DeleteTraceMetricsRuleDefault

type DeleteTraceMetricsRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteTraceMetricsRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteTraceMetricsRuleDefault

func NewDeleteTraceMetricsRuleDefault(code int) *DeleteTraceMetricsRuleDefault

NewDeleteTraceMetricsRuleDefault creates a DeleteTraceMetricsRuleDefault with default headers values

func (*DeleteTraceMetricsRuleDefault) Code

Code gets the status code for the delete trace metrics rule default response

func (*DeleteTraceMetricsRuleDefault) Error

func (*DeleteTraceMetricsRuleDefault) GetPayload

func (*DeleteTraceMetricsRuleDefault) IsClientError

func (o *DeleteTraceMetricsRuleDefault) IsClientError() bool

IsClientError returns true when this delete trace metrics rule default response has a 4xx status code

func (*DeleteTraceMetricsRuleDefault) IsCode

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

IsCode returns true when this delete trace metrics rule default response a status code equal to that given

func (*DeleteTraceMetricsRuleDefault) IsRedirect

func (o *DeleteTraceMetricsRuleDefault) IsRedirect() bool

IsRedirect returns true when this delete trace metrics rule default response has a 3xx status code

func (*DeleteTraceMetricsRuleDefault) IsServerError

func (o *DeleteTraceMetricsRuleDefault) IsServerError() bool

IsServerError returns true when this delete trace metrics rule default response has a 5xx status code

func (*DeleteTraceMetricsRuleDefault) IsSuccess

func (o *DeleteTraceMetricsRuleDefault) IsSuccess() bool

IsSuccess returns true when this delete trace metrics rule default response has a 2xx status code

func (*DeleteTraceMetricsRuleDefault) String

type DeleteTraceMetricsRuleInternalServerError

type DeleteTraceMetricsRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteTraceMetricsRuleInternalServerError

func NewDeleteTraceMetricsRuleInternalServerError() *DeleteTraceMetricsRuleInternalServerError

NewDeleteTraceMetricsRuleInternalServerError creates a DeleteTraceMetricsRuleInternalServerError with default headers values

func (*DeleteTraceMetricsRuleInternalServerError) Code

Code gets the status code for the delete trace metrics rule internal server error response

func (*DeleteTraceMetricsRuleInternalServerError) Error

func (*DeleteTraceMetricsRuleInternalServerError) GetPayload

func (*DeleteTraceMetricsRuleInternalServerError) IsClientError

IsClientError returns true when this delete trace metrics rule internal server error response has a 4xx status code

func (*DeleteTraceMetricsRuleInternalServerError) IsCode

IsCode returns true when this delete trace metrics rule internal server error response a status code equal to that given

func (*DeleteTraceMetricsRuleInternalServerError) IsRedirect

IsRedirect returns true when this delete trace metrics rule internal server error response has a 3xx status code

func (*DeleteTraceMetricsRuleInternalServerError) IsServerError

IsServerError returns true when this delete trace metrics rule internal server error response has a 5xx status code

func (*DeleteTraceMetricsRuleInternalServerError) IsSuccess

IsSuccess returns true when this delete trace metrics rule internal server error response has a 2xx status code

func (*DeleteTraceMetricsRuleInternalServerError) String

type DeleteTraceMetricsRuleNotFound

type DeleteTraceMetricsRuleNotFound struct {
	Payload *models.APIError
}

DeleteTraceMetricsRuleNotFound describes a response with status code 404, with default header values.

Cannot delete the TraceMetricsRule because the slug does not exist.

func NewDeleteTraceMetricsRuleNotFound

func NewDeleteTraceMetricsRuleNotFound() *DeleteTraceMetricsRuleNotFound

NewDeleteTraceMetricsRuleNotFound creates a DeleteTraceMetricsRuleNotFound with default headers values

func (*DeleteTraceMetricsRuleNotFound) Code

Code gets the status code for the delete trace metrics rule not found response

func (*DeleteTraceMetricsRuleNotFound) Error

func (*DeleteTraceMetricsRuleNotFound) GetPayload

func (*DeleteTraceMetricsRuleNotFound) IsClientError

func (o *DeleteTraceMetricsRuleNotFound) IsClientError() bool

IsClientError returns true when this delete trace metrics rule not found response has a 4xx status code

func (*DeleteTraceMetricsRuleNotFound) IsCode

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

IsCode returns true when this delete trace metrics rule not found response a status code equal to that given

func (*DeleteTraceMetricsRuleNotFound) IsRedirect

func (o *DeleteTraceMetricsRuleNotFound) IsRedirect() bool

IsRedirect returns true when this delete trace metrics rule not found response has a 3xx status code

func (*DeleteTraceMetricsRuleNotFound) IsServerError

func (o *DeleteTraceMetricsRuleNotFound) IsServerError() bool

IsServerError returns true when this delete trace metrics rule not found response has a 5xx status code

func (*DeleteTraceMetricsRuleNotFound) IsSuccess

func (o *DeleteTraceMetricsRuleNotFound) IsSuccess() bool

IsSuccess returns true when this delete trace metrics rule not found response has a 2xx status code

func (*DeleteTraceMetricsRuleNotFound) String

type DeleteTraceMetricsRuleOK

type DeleteTraceMetricsRuleOK struct {
	Payload models.Configv1DeleteTraceMetricsRuleResponse
}

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

A successful response.

func NewDeleteTraceMetricsRuleOK

func NewDeleteTraceMetricsRuleOK() *DeleteTraceMetricsRuleOK

NewDeleteTraceMetricsRuleOK creates a DeleteTraceMetricsRuleOK with default headers values

func (*DeleteTraceMetricsRuleOK) Code

func (o *DeleteTraceMetricsRuleOK) Code() int

Code gets the status code for the delete trace metrics rule o k response

func (*DeleteTraceMetricsRuleOK) Error

func (o *DeleteTraceMetricsRuleOK) Error() string

func (*DeleteTraceMetricsRuleOK) GetPayload

func (*DeleteTraceMetricsRuleOK) IsClientError

func (o *DeleteTraceMetricsRuleOK) IsClientError() bool

IsClientError returns true when this delete trace metrics rule o k response has a 4xx status code

func (*DeleteTraceMetricsRuleOK) IsCode

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

IsCode returns true when this delete trace metrics rule o k response a status code equal to that given

func (*DeleteTraceMetricsRuleOK) IsRedirect

func (o *DeleteTraceMetricsRuleOK) IsRedirect() bool

IsRedirect returns true when this delete trace metrics rule o k response has a 3xx status code

func (*DeleteTraceMetricsRuleOK) IsServerError

func (o *DeleteTraceMetricsRuleOK) IsServerError() bool

IsServerError returns true when this delete trace metrics rule o k response has a 5xx status code

func (*DeleteTraceMetricsRuleOK) IsSuccess

func (o *DeleteTraceMetricsRuleOK) IsSuccess() bool

IsSuccess returns true when this delete trace metrics rule o k response has a 2xx status code

func (*DeleteTraceMetricsRuleOK) String

func (o *DeleteTraceMetricsRuleOK) String() string

type DeleteTraceMetricsRuleParams

type DeleteTraceMetricsRuleParams struct {

	// Slug.
	Slug string

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

DeleteTraceMetricsRuleParams contains all the parameters to send to the API endpoint

for the delete trace metrics rule operation.

Typically these are written to a http.Request.

func NewDeleteTraceMetricsRuleParams

func NewDeleteTraceMetricsRuleParams() *DeleteTraceMetricsRuleParams

NewDeleteTraceMetricsRuleParams creates a new DeleteTraceMetricsRuleParams 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 NewDeleteTraceMetricsRuleParamsWithContext

func NewDeleteTraceMetricsRuleParamsWithContext(ctx context.Context) *DeleteTraceMetricsRuleParams

NewDeleteTraceMetricsRuleParamsWithContext creates a new DeleteTraceMetricsRuleParams object with the ability to set a context for a request.

func NewDeleteTraceMetricsRuleParamsWithHTTPClient

func NewDeleteTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *DeleteTraceMetricsRuleParams

NewDeleteTraceMetricsRuleParamsWithHTTPClient creates a new DeleteTraceMetricsRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTraceMetricsRuleParamsWithTimeout

func NewDeleteTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *DeleteTraceMetricsRuleParams

NewDeleteTraceMetricsRuleParamsWithTimeout creates a new DeleteTraceMetricsRuleParams object with the ability to set a timeout on a request.

func (*DeleteTraceMetricsRuleParams) SetContext

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

SetContext adds the context to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) SetDefaults

func (o *DeleteTraceMetricsRuleParams) SetDefaults()

SetDefaults hydrates default values in the delete trace metrics rule params (not the query body).

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

func (*DeleteTraceMetricsRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) SetSlug

func (o *DeleteTraceMetricsRuleParams) SetSlug(slug string)

SetSlug adds the slug to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) WithContext

WithContext adds the context to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) WithDefaults

WithDefaults hydrates default values in the delete trace metrics rule params (not the query body).

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

func (*DeleteTraceMetricsRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) WithSlug

WithSlug adds the slug to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) WithTimeout

WithTimeout adds the timeout to the delete trace metrics rule params

func (*DeleteTraceMetricsRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteTraceMetricsRuleReader

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

DeleteTraceMetricsRuleReader is a Reader for the DeleteTraceMetricsRule structure.

func (*DeleteTraceMetricsRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTraceMetricsRulesDefault

type ListTraceMetricsRulesDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListTraceMetricsRulesDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListTraceMetricsRulesDefault

func NewListTraceMetricsRulesDefault(code int) *ListTraceMetricsRulesDefault

NewListTraceMetricsRulesDefault creates a ListTraceMetricsRulesDefault with default headers values

func (*ListTraceMetricsRulesDefault) Code

Code gets the status code for the list trace metrics rules default response

func (*ListTraceMetricsRulesDefault) Error

func (*ListTraceMetricsRulesDefault) GetPayload

func (*ListTraceMetricsRulesDefault) IsClientError

func (o *ListTraceMetricsRulesDefault) IsClientError() bool

IsClientError returns true when this list trace metrics rules default response has a 4xx status code

func (*ListTraceMetricsRulesDefault) IsCode

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

IsCode returns true when this list trace metrics rules default response a status code equal to that given

func (*ListTraceMetricsRulesDefault) IsRedirect

func (o *ListTraceMetricsRulesDefault) IsRedirect() bool

IsRedirect returns true when this list trace metrics rules default response has a 3xx status code

func (*ListTraceMetricsRulesDefault) IsServerError

func (o *ListTraceMetricsRulesDefault) IsServerError() bool

IsServerError returns true when this list trace metrics rules default response has a 5xx status code

func (*ListTraceMetricsRulesDefault) IsSuccess

func (o *ListTraceMetricsRulesDefault) IsSuccess() bool

IsSuccess returns true when this list trace metrics rules default response has a 2xx status code

func (*ListTraceMetricsRulesDefault) String

type ListTraceMetricsRulesInternalServerError

type ListTraceMetricsRulesInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListTraceMetricsRulesInternalServerError

func NewListTraceMetricsRulesInternalServerError() *ListTraceMetricsRulesInternalServerError

NewListTraceMetricsRulesInternalServerError creates a ListTraceMetricsRulesInternalServerError with default headers values

func (*ListTraceMetricsRulesInternalServerError) Code

Code gets the status code for the list trace metrics rules internal server error response

func (*ListTraceMetricsRulesInternalServerError) Error

func (*ListTraceMetricsRulesInternalServerError) GetPayload

func (*ListTraceMetricsRulesInternalServerError) IsClientError

IsClientError returns true when this list trace metrics rules internal server error response has a 4xx status code

func (*ListTraceMetricsRulesInternalServerError) IsCode

IsCode returns true when this list trace metrics rules internal server error response a status code equal to that given

func (*ListTraceMetricsRulesInternalServerError) IsRedirect

IsRedirect returns true when this list trace metrics rules internal server error response has a 3xx status code

func (*ListTraceMetricsRulesInternalServerError) IsServerError

IsServerError returns true when this list trace metrics rules internal server error response has a 5xx status code

func (*ListTraceMetricsRulesInternalServerError) IsSuccess

IsSuccess returns true when this list trace metrics rules internal server error response has a 2xx status code

func (*ListTraceMetricsRulesInternalServerError) String

type ListTraceMetricsRulesOK

type ListTraceMetricsRulesOK struct {
	Payload *models.Configv1ListTraceMetricsRulesResponse
}

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

A successful response.

func NewListTraceMetricsRulesOK

func NewListTraceMetricsRulesOK() *ListTraceMetricsRulesOK

NewListTraceMetricsRulesOK creates a ListTraceMetricsRulesOK with default headers values

func (*ListTraceMetricsRulesOK) Code

func (o *ListTraceMetricsRulesOK) Code() int

Code gets the status code for the list trace metrics rules o k response

func (*ListTraceMetricsRulesOK) Error

func (o *ListTraceMetricsRulesOK) Error() string

func (*ListTraceMetricsRulesOK) GetPayload

func (*ListTraceMetricsRulesOK) IsClientError

func (o *ListTraceMetricsRulesOK) IsClientError() bool

IsClientError returns true when this list trace metrics rules o k response has a 4xx status code

func (*ListTraceMetricsRulesOK) IsCode

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

IsCode returns true when this list trace metrics rules o k response a status code equal to that given

func (*ListTraceMetricsRulesOK) IsRedirect

func (o *ListTraceMetricsRulesOK) IsRedirect() bool

IsRedirect returns true when this list trace metrics rules o k response has a 3xx status code

func (*ListTraceMetricsRulesOK) IsServerError

func (o *ListTraceMetricsRulesOK) IsServerError() bool

IsServerError returns true when this list trace metrics rules o k response has a 5xx status code

func (*ListTraceMetricsRulesOK) IsSuccess

func (o *ListTraceMetricsRulesOK) IsSuccess() bool

IsSuccess returns true when this list trace metrics rules o k response has a 2xx status code

func (*ListTraceMetricsRulesOK) String

func (o *ListTraceMetricsRulesOK) String() string

type ListTraceMetricsRulesParams

type ListTraceMetricsRulesParams struct {

	/* MetricNames.

	   Get trace metric rules by name.
	*/
	MetricNames []string

	/* Names.

	   Filters results by name, where any TraceMetricsRule with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any TraceMetricsRule with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

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

ListTraceMetricsRulesParams contains all the parameters to send to the API endpoint

for the list trace metrics rules operation.

Typically these are written to a http.Request.

func NewListTraceMetricsRulesParams

func NewListTraceMetricsRulesParams() *ListTraceMetricsRulesParams

NewListTraceMetricsRulesParams creates a new ListTraceMetricsRulesParams 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 NewListTraceMetricsRulesParamsWithContext

func NewListTraceMetricsRulesParamsWithContext(ctx context.Context) *ListTraceMetricsRulesParams

NewListTraceMetricsRulesParamsWithContext creates a new ListTraceMetricsRulesParams object with the ability to set a context for a request.

func NewListTraceMetricsRulesParamsWithHTTPClient

func NewListTraceMetricsRulesParamsWithHTTPClient(client *http.Client) *ListTraceMetricsRulesParams

NewListTraceMetricsRulesParamsWithHTTPClient creates a new ListTraceMetricsRulesParams object with the ability to set a custom HTTPClient for a request.

func NewListTraceMetricsRulesParamsWithTimeout

func NewListTraceMetricsRulesParamsWithTimeout(timeout time.Duration) *ListTraceMetricsRulesParams

NewListTraceMetricsRulesParamsWithTimeout creates a new ListTraceMetricsRulesParams object with the ability to set a timeout on a request.

func (*ListTraceMetricsRulesParams) SetContext

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

SetContext adds the context to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) SetDefaults

func (o *ListTraceMetricsRulesParams) SetDefaults()

SetDefaults hydrates default values in the list trace metrics rules params (not the query body).

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

func (*ListTraceMetricsRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) SetMetricNames

func (o *ListTraceMetricsRulesParams) SetMetricNames(metricNames []string)

SetMetricNames adds the metricNames to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) SetNames

func (o *ListTraceMetricsRulesParams) SetNames(names []string)

SetNames adds the names to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) SetPageMaxSize

func (o *ListTraceMetricsRulesParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) SetPageToken

func (o *ListTraceMetricsRulesParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) SetSlugs

func (o *ListTraceMetricsRulesParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithContext

WithContext adds the context to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithDefaults

WithDefaults hydrates default values in the list trace metrics rules params (not the query body).

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

func (*ListTraceMetricsRulesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithMetricNames

func (o *ListTraceMetricsRulesParams) WithMetricNames(metricNames []string) *ListTraceMetricsRulesParams

WithMetricNames adds the metricNames to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithNames

WithNames adds the names to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithPageMaxSize

func (o *ListTraceMetricsRulesParams) WithPageMaxSize(pageMaxSize *int64) *ListTraceMetricsRulesParams

WithPageMaxSize adds the pageMaxSize to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithPageToken

func (o *ListTraceMetricsRulesParams) WithPageToken(pageToken *string) *ListTraceMetricsRulesParams

WithPageToken adds the pageToken to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithSlugs

WithSlugs adds the slugs to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WithTimeout

WithTimeout adds the timeout to the list trace metrics rules params

func (*ListTraceMetricsRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListTraceMetricsRulesReader

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

ListTraceMetricsRulesReader is a Reader for the ListTraceMetricsRules structure.

func (*ListTraceMetricsRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadTraceMetricsRuleDefault

type ReadTraceMetricsRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadTraceMetricsRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadTraceMetricsRuleDefault

func NewReadTraceMetricsRuleDefault(code int) *ReadTraceMetricsRuleDefault

NewReadTraceMetricsRuleDefault creates a ReadTraceMetricsRuleDefault with default headers values

func (*ReadTraceMetricsRuleDefault) Code

func (o *ReadTraceMetricsRuleDefault) Code() int

Code gets the status code for the read trace metrics rule default response

func (*ReadTraceMetricsRuleDefault) Error

func (*ReadTraceMetricsRuleDefault) GetPayload

func (*ReadTraceMetricsRuleDefault) IsClientError

func (o *ReadTraceMetricsRuleDefault) IsClientError() bool

IsClientError returns true when this read trace metrics rule default response has a 4xx status code

func (*ReadTraceMetricsRuleDefault) IsCode

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

IsCode returns true when this read trace metrics rule default response a status code equal to that given

func (*ReadTraceMetricsRuleDefault) IsRedirect

func (o *ReadTraceMetricsRuleDefault) IsRedirect() bool

IsRedirect returns true when this read trace metrics rule default response has a 3xx status code

func (*ReadTraceMetricsRuleDefault) IsServerError

func (o *ReadTraceMetricsRuleDefault) IsServerError() bool

IsServerError returns true when this read trace metrics rule default response has a 5xx status code

func (*ReadTraceMetricsRuleDefault) IsSuccess

func (o *ReadTraceMetricsRuleDefault) IsSuccess() bool

IsSuccess returns true when this read trace metrics rule default response has a 2xx status code

func (*ReadTraceMetricsRuleDefault) String

func (o *ReadTraceMetricsRuleDefault) String() string

type ReadTraceMetricsRuleInternalServerError

type ReadTraceMetricsRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadTraceMetricsRuleInternalServerError

func NewReadTraceMetricsRuleInternalServerError() *ReadTraceMetricsRuleInternalServerError

NewReadTraceMetricsRuleInternalServerError creates a ReadTraceMetricsRuleInternalServerError with default headers values

func (*ReadTraceMetricsRuleInternalServerError) Code

Code gets the status code for the read trace metrics rule internal server error response

func (*ReadTraceMetricsRuleInternalServerError) Error

func (*ReadTraceMetricsRuleInternalServerError) GetPayload

func (*ReadTraceMetricsRuleInternalServerError) IsClientError

func (o *ReadTraceMetricsRuleInternalServerError) IsClientError() bool

IsClientError returns true when this read trace metrics rule internal server error response has a 4xx status code

func (*ReadTraceMetricsRuleInternalServerError) IsCode

IsCode returns true when this read trace metrics rule internal server error response a status code equal to that given

func (*ReadTraceMetricsRuleInternalServerError) IsRedirect

IsRedirect returns true when this read trace metrics rule internal server error response has a 3xx status code

func (*ReadTraceMetricsRuleInternalServerError) IsServerError

func (o *ReadTraceMetricsRuleInternalServerError) IsServerError() bool

IsServerError returns true when this read trace metrics rule internal server error response has a 5xx status code

func (*ReadTraceMetricsRuleInternalServerError) IsSuccess

IsSuccess returns true when this read trace metrics rule internal server error response has a 2xx status code

func (*ReadTraceMetricsRuleInternalServerError) String

type ReadTraceMetricsRuleNotFound

type ReadTraceMetricsRuleNotFound struct {
	Payload *models.APIError
}

ReadTraceMetricsRuleNotFound describes a response with status code 404, with default header values.

Cannot read the TraceMetricsRule because the slug does not exist.

func NewReadTraceMetricsRuleNotFound

func NewReadTraceMetricsRuleNotFound() *ReadTraceMetricsRuleNotFound

NewReadTraceMetricsRuleNotFound creates a ReadTraceMetricsRuleNotFound with default headers values

func (*ReadTraceMetricsRuleNotFound) Code

Code gets the status code for the read trace metrics rule not found response

func (*ReadTraceMetricsRuleNotFound) Error

func (*ReadTraceMetricsRuleNotFound) GetPayload

func (o *ReadTraceMetricsRuleNotFound) GetPayload() *models.APIError

func (*ReadTraceMetricsRuleNotFound) IsClientError

func (o *ReadTraceMetricsRuleNotFound) IsClientError() bool

IsClientError returns true when this read trace metrics rule not found response has a 4xx status code

func (*ReadTraceMetricsRuleNotFound) IsCode

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

IsCode returns true when this read trace metrics rule not found response a status code equal to that given

func (*ReadTraceMetricsRuleNotFound) IsRedirect

func (o *ReadTraceMetricsRuleNotFound) IsRedirect() bool

IsRedirect returns true when this read trace metrics rule not found response has a 3xx status code

func (*ReadTraceMetricsRuleNotFound) IsServerError

func (o *ReadTraceMetricsRuleNotFound) IsServerError() bool

IsServerError returns true when this read trace metrics rule not found response has a 5xx status code

func (*ReadTraceMetricsRuleNotFound) IsSuccess

func (o *ReadTraceMetricsRuleNotFound) IsSuccess() bool

IsSuccess returns true when this read trace metrics rule not found response has a 2xx status code

func (*ReadTraceMetricsRuleNotFound) String

type ReadTraceMetricsRuleOK

type ReadTraceMetricsRuleOK struct {
	Payload *models.Configv1ReadTraceMetricsRuleResponse
}

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

A successful response.

func NewReadTraceMetricsRuleOK

func NewReadTraceMetricsRuleOK() *ReadTraceMetricsRuleOK

NewReadTraceMetricsRuleOK creates a ReadTraceMetricsRuleOK with default headers values

func (*ReadTraceMetricsRuleOK) Code

func (o *ReadTraceMetricsRuleOK) Code() int

Code gets the status code for the read trace metrics rule o k response

func (*ReadTraceMetricsRuleOK) Error

func (o *ReadTraceMetricsRuleOK) Error() string

func (*ReadTraceMetricsRuleOK) GetPayload

func (*ReadTraceMetricsRuleOK) IsClientError

func (o *ReadTraceMetricsRuleOK) IsClientError() bool

IsClientError returns true when this read trace metrics rule o k response has a 4xx status code

func (*ReadTraceMetricsRuleOK) IsCode

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

IsCode returns true when this read trace metrics rule o k response a status code equal to that given

func (*ReadTraceMetricsRuleOK) IsRedirect

func (o *ReadTraceMetricsRuleOK) IsRedirect() bool

IsRedirect returns true when this read trace metrics rule o k response has a 3xx status code

func (*ReadTraceMetricsRuleOK) IsServerError

func (o *ReadTraceMetricsRuleOK) IsServerError() bool

IsServerError returns true when this read trace metrics rule o k response has a 5xx status code

func (*ReadTraceMetricsRuleOK) IsSuccess

func (o *ReadTraceMetricsRuleOK) IsSuccess() bool

IsSuccess returns true when this read trace metrics rule o k response has a 2xx status code

func (*ReadTraceMetricsRuleOK) String

func (o *ReadTraceMetricsRuleOK) String() string

type ReadTraceMetricsRuleParams

type ReadTraceMetricsRuleParams struct {

	// Slug.
	Slug string

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

ReadTraceMetricsRuleParams contains all the parameters to send to the API endpoint

for the read trace metrics rule operation.

Typically these are written to a http.Request.

func NewReadTraceMetricsRuleParams

func NewReadTraceMetricsRuleParams() *ReadTraceMetricsRuleParams

NewReadTraceMetricsRuleParams creates a new ReadTraceMetricsRuleParams 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 NewReadTraceMetricsRuleParamsWithContext

func NewReadTraceMetricsRuleParamsWithContext(ctx context.Context) *ReadTraceMetricsRuleParams

NewReadTraceMetricsRuleParamsWithContext creates a new ReadTraceMetricsRuleParams object with the ability to set a context for a request.

func NewReadTraceMetricsRuleParamsWithHTTPClient

func NewReadTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *ReadTraceMetricsRuleParams

NewReadTraceMetricsRuleParamsWithHTTPClient creates a new ReadTraceMetricsRuleParams object with the ability to set a custom HTTPClient for a request.

func NewReadTraceMetricsRuleParamsWithTimeout

func NewReadTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *ReadTraceMetricsRuleParams

NewReadTraceMetricsRuleParamsWithTimeout creates a new ReadTraceMetricsRuleParams object with the ability to set a timeout on a request.

func (*ReadTraceMetricsRuleParams) SetContext

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

SetContext adds the context to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) SetDefaults

func (o *ReadTraceMetricsRuleParams) SetDefaults()

SetDefaults hydrates default values in the read trace metrics rule params (not the query body).

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

func (*ReadTraceMetricsRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) SetSlug

func (o *ReadTraceMetricsRuleParams) SetSlug(slug string)

SetSlug adds the slug to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) SetTimeout

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

SetTimeout adds the timeout to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) WithContext

WithContext adds the context to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) WithDefaults

WithDefaults hydrates default values in the read trace metrics rule params (not the query body).

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

func (*ReadTraceMetricsRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) WithSlug

WithSlug adds the slug to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) WithTimeout

WithTimeout adds the timeout to the read trace metrics rule params

func (*ReadTraceMetricsRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadTraceMetricsRuleReader

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

ReadTraceMetricsRuleReader is a Reader for the ReadTraceMetricsRule structure.

func (*ReadTraceMetricsRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateTraceMetricsRuleBadRequest

type UpdateTraceMetricsRuleBadRequest struct {
	Payload *models.APIError
}

UpdateTraceMetricsRuleBadRequest describes a response with status code 400, with default header values.

Cannot update the TraceMetricsRule because the request is invalid.

func NewUpdateTraceMetricsRuleBadRequest

func NewUpdateTraceMetricsRuleBadRequest() *UpdateTraceMetricsRuleBadRequest

NewUpdateTraceMetricsRuleBadRequest creates a UpdateTraceMetricsRuleBadRequest with default headers values

func (*UpdateTraceMetricsRuleBadRequest) Code

Code gets the status code for the update trace metrics rule bad request response

func (*UpdateTraceMetricsRuleBadRequest) Error

func (*UpdateTraceMetricsRuleBadRequest) GetPayload

func (*UpdateTraceMetricsRuleBadRequest) IsClientError

func (o *UpdateTraceMetricsRuleBadRequest) IsClientError() bool

IsClientError returns true when this update trace metrics rule bad request response has a 4xx status code

func (*UpdateTraceMetricsRuleBadRequest) IsCode

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

IsCode returns true when this update trace metrics rule bad request response a status code equal to that given

func (*UpdateTraceMetricsRuleBadRequest) IsRedirect

func (o *UpdateTraceMetricsRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this update trace metrics rule bad request response has a 3xx status code

func (*UpdateTraceMetricsRuleBadRequest) IsServerError

func (o *UpdateTraceMetricsRuleBadRequest) IsServerError() bool

IsServerError returns true when this update trace metrics rule bad request response has a 5xx status code

func (*UpdateTraceMetricsRuleBadRequest) IsSuccess

func (o *UpdateTraceMetricsRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this update trace metrics rule bad request response has a 2xx status code

func (*UpdateTraceMetricsRuleBadRequest) String

type UpdateTraceMetricsRuleConflict

type UpdateTraceMetricsRuleConflict struct {
	Payload *models.APIError
}

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

Cannot update the TraceMetricsRule because there is a conflict with an existing TraceMetricsRule.

func NewUpdateTraceMetricsRuleConflict

func NewUpdateTraceMetricsRuleConflict() *UpdateTraceMetricsRuleConflict

NewUpdateTraceMetricsRuleConflict creates a UpdateTraceMetricsRuleConflict with default headers values

func (*UpdateTraceMetricsRuleConflict) Code

Code gets the status code for the update trace metrics rule conflict response

func (*UpdateTraceMetricsRuleConflict) Error

func (*UpdateTraceMetricsRuleConflict) GetPayload

func (*UpdateTraceMetricsRuleConflict) IsClientError

func (o *UpdateTraceMetricsRuleConflict) IsClientError() bool

IsClientError returns true when this update trace metrics rule conflict response has a 4xx status code

func (*UpdateTraceMetricsRuleConflict) IsCode

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

IsCode returns true when this update trace metrics rule conflict response a status code equal to that given

func (*UpdateTraceMetricsRuleConflict) IsRedirect

func (o *UpdateTraceMetricsRuleConflict) IsRedirect() bool

IsRedirect returns true when this update trace metrics rule conflict response has a 3xx status code

func (*UpdateTraceMetricsRuleConflict) IsServerError

func (o *UpdateTraceMetricsRuleConflict) IsServerError() bool

IsServerError returns true when this update trace metrics rule conflict response has a 5xx status code

func (*UpdateTraceMetricsRuleConflict) IsSuccess

func (o *UpdateTraceMetricsRuleConflict) IsSuccess() bool

IsSuccess returns true when this update trace metrics rule conflict response has a 2xx status code

func (*UpdateTraceMetricsRuleConflict) String

type UpdateTraceMetricsRuleDefault

type UpdateTraceMetricsRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateTraceMetricsRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateTraceMetricsRuleDefault

func NewUpdateTraceMetricsRuleDefault(code int) *UpdateTraceMetricsRuleDefault

NewUpdateTraceMetricsRuleDefault creates a UpdateTraceMetricsRuleDefault with default headers values

func (*UpdateTraceMetricsRuleDefault) Code

Code gets the status code for the update trace metrics rule default response

func (*UpdateTraceMetricsRuleDefault) Error

func (*UpdateTraceMetricsRuleDefault) GetPayload

func (*UpdateTraceMetricsRuleDefault) IsClientError

func (o *UpdateTraceMetricsRuleDefault) IsClientError() bool

IsClientError returns true when this update trace metrics rule default response has a 4xx status code

func (*UpdateTraceMetricsRuleDefault) IsCode

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

IsCode returns true when this update trace metrics rule default response a status code equal to that given

func (*UpdateTraceMetricsRuleDefault) IsRedirect

func (o *UpdateTraceMetricsRuleDefault) IsRedirect() bool

IsRedirect returns true when this update trace metrics rule default response has a 3xx status code

func (*UpdateTraceMetricsRuleDefault) IsServerError

func (o *UpdateTraceMetricsRuleDefault) IsServerError() bool

IsServerError returns true when this update trace metrics rule default response has a 5xx status code

func (*UpdateTraceMetricsRuleDefault) IsSuccess

func (o *UpdateTraceMetricsRuleDefault) IsSuccess() bool

IsSuccess returns true when this update trace metrics rule default response has a 2xx status code

func (*UpdateTraceMetricsRuleDefault) String

type UpdateTraceMetricsRuleInternalServerError

type UpdateTraceMetricsRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateTraceMetricsRuleInternalServerError

func NewUpdateTraceMetricsRuleInternalServerError() *UpdateTraceMetricsRuleInternalServerError

NewUpdateTraceMetricsRuleInternalServerError creates a UpdateTraceMetricsRuleInternalServerError with default headers values

func (*UpdateTraceMetricsRuleInternalServerError) Code

Code gets the status code for the update trace metrics rule internal server error response

func (*UpdateTraceMetricsRuleInternalServerError) Error

func (*UpdateTraceMetricsRuleInternalServerError) GetPayload

func (*UpdateTraceMetricsRuleInternalServerError) IsClientError

IsClientError returns true when this update trace metrics rule internal server error response has a 4xx status code

func (*UpdateTraceMetricsRuleInternalServerError) IsCode

IsCode returns true when this update trace metrics rule internal server error response a status code equal to that given

func (*UpdateTraceMetricsRuleInternalServerError) IsRedirect

IsRedirect returns true when this update trace metrics rule internal server error response has a 3xx status code

func (*UpdateTraceMetricsRuleInternalServerError) IsServerError

IsServerError returns true when this update trace metrics rule internal server error response has a 5xx status code

func (*UpdateTraceMetricsRuleInternalServerError) IsSuccess

IsSuccess returns true when this update trace metrics rule internal server error response has a 2xx status code

func (*UpdateTraceMetricsRuleInternalServerError) String

type UpdateTraceMetricsRuleNotFound

type UpdateTraceMetricsRuleNotFound struct {
	Payload *models.APIError
}

UpdateTraceMetricsRuleNotFound describes a response with status code 404, with default header values.

Cannot update the TraceMetricsRule because the slug does not exist.

func NewUpdateTraceMetricsRuleNotFound

func NewUpdateTraceMetricsRuleNotFound() *UpdateTraceMetricsRuleNotFound

NewUpdateTraceMetricsRuleNotFound creates a UpdateTraceMetricsRuleNotFound with default headers values

func (*UpdateTraceMetricsRuleNotFound) Code

Code gets the status code for the update trace metrics rule not found response

func (*UpdateTraceMetricsRuleNotFound) Error

func (*UpdateTraceMetricsRuleNotFound) GetPayload

func (*UpdateTraceMetricsRuleNotFound) IsClientError

func (o *UpdateTraceMetricsRuleNotFound) IsClientError() bool

IsClientError returns true when this update trace metrics rule not found response has a 4xx status code

func (*UpdateTraceMetricsRuleNotFound) IsCode

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

IsCode returns true when this update trace metrics rule not found response a status code equal to that given

func (*UpdateTraceMetricsRuleNotFound) IsRedirect

func (o *UpdateTraceMetricsRuleNotFound) IsRedirect() bool

IsRedirect returns true when this update trace metrics rule not found response has a 3xx status code

func (*UpdateTraceMetricsRuleNotFound) IsServerError

func (o *UpdateTraceMetricsRuleNotFound) IsServerError() bool

IsServerError returns true when this update trace metrics rule not found response has a 5xx status code

func (*UpdateTraceMetricsRuleNotFound) IsSuccess

func (o *UpdateTraceMetricsRuleNotFound) IsSuccess() bool

IsSuccess returns true when this update trace metrics rule not found response has a 2xx status code

func (*UpdateTraceMetricsRuleNotFound) String

type UpdateTraceMetricsRuleOK

type UpdateTraceMetricsRuleOK struct {
	Payload *models.Configv1UpdateTraceMetricsRuleResponse
}

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

A successful response containing the updated TraceMetricsRule.

func NewUpdateTraceMetricsRuleOK

func NewUpdateTraceMetricsRuleOK() *UpdateTraceMetricsRuleOK

NewUpdateTraceMetricsRuleOK creates a UpdateTraceMetricsRuleOK with default headers values

func (*UpdateTraceMetricsRuleOK) Code

func (o *UpdateTraceMetricsRuleOK) Code() int

Code gets the status code for the update trace metrics rule o k response

func (*UpdateTraceMetricsRuleOK) Error

func (o *UpdateTraceMetricsRuleOK) Error() string

func (*UpdateTraceMetricsRuleOK) GetPayload

func (*UpdateTraceMetricsRuleOK) IsClientError

func (o *UpdateTraceMetricsRuleOK) IsClientError() bool

IsClientError returns true when this update trace metrics rule o k response has a 4xx status code

func (*UpdateTraceMetricsRuleOK) IsCode

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

IsCode returns true when this update trace metrics rule o k response a status code equal to that given

func (*UpdateTraceMetricsRuleOK) IsRedirect

func (o *UpdateTraceMetricsRuleOK) IsRedirect() bool

IsRedirect returns true when this update trace metrics rule o k response has a 3xx status code

func (*UpdateTraceMetricsRuleOK) IsServerError

func (o *UpdateTraceMetricsRuleOK) IsServerError() bool

IsServerError returns true when this update trace metrics rule o k response has a 5xx status code

func (*UpdateTraceMetricsRuleOK) IsSuccess

func (o *UpdateTraceMetricsRuleOK) IsSuccess() bool

IsSuccess returns true when this update trace metrics rule o k response has a 2xx status code

func (*UpdateTraceMetricsRuleOK) String

func (o *UpdateTraceMetricsRuleOK) String() string

type UpdateTraceMetricsRuleParams

type UpdateTraceMetricsRuleParams struct {

	// Body.
	Body *models.ConfigV1UpdateTraceMetricsRuleBody

	// Slug.
	Slug string

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

UpdateTraceMetricsRuleParams contains all the parameters to send to the API endpoint

for the update trace metrics rule operation.

Typically these are written to a http.Request.

func NewUpdateTraceMetricsRuleParams

func NewUpdateTraceMetricsRuleParams() *UpdateTraceMetricsRuleParams

NewUpdateTraceMetricsRuleParams creates a new UpdateTraceMetricsRuleParams 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 NewUpdateTraceMetricsRuleParamsWithContext

func NewUpdateTraceMetricsRuleParamsWithContext(ctx context.Context) *UpdateTraceMetricsRuleParams

NewUpdateTraceMetricsRuleParamsWithContext creates a new UpdateTraceMetricsRuleParams object with the ability to set a context for a request.

func NewUpdateTraceMetricsRuleParamsWithHTTPClient

func NewUpdateTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *UpdateTraceMetricsRuleParams

NewUpdateTraceMetricsRuleParamsWithHTTPClient creates a new UpdateTraceMetricsRuleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTraceMetricsRuleParamsWithTimeout

func NewUpdateTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *UpdateTraceMetricsRuleParams

NewUpdateTraceMetricsRuleParamsWithTimeout creates a new UpdateTraceMetricsRuleParams object with the ability to set a timeout on a request.

func (*UpdateTraceMetricsRuleParams) SetBody

SetBody adds the body to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) SetContext

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

SetContext adds the context to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) SetDefaults

func (o *UpdateTraceMetricsRuleParams) SetDefaults()

SetDefaults hydrates default values in the update trace metrics rule params (not the query body).

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

func (*UpdateTraceMetricsRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) SetSlug

func (o *UpdateTraceMetricsRuleParams) SetSlug(slug string)

SetSlug adds the slug to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) WithBody

WithBody adds the body to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) WithContext

WithContext adds the context to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) WithDefaults

WithDefaults hydrates default values in the update trace metrics rule params (not the query body).

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

func (*UpdateTraceMetricsRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) WithSlug

WithSlug adds the slug to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) WithTimeout

WithTimeout adds the timeout to the update trace metrics rule params

func (*UpdateTraceMetricsRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateTraceMetricsRuleReader

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

UpdateTraceMetricsRuleReader is a Reader for the UpdateTraceMetricsRule structure.

func (*UpdateTraceMetricsRuleReader) ReadResponse

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