Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateTraceMetricsRule(params *CreateTraceMetricsRuleParams, opts ...ClientOption) (*CreateTraceMetricsRuleOK, error)
- func (a *Client) DeleteTraceMetricsRule(params *DeleteTraceMetricsRuleParams, opts ...ClientOption) (*DeleteTraceMetricsRuleOK, error)
- func (a *Client) ListTraceMetricsRules(params *ListTraceMetricsRulesParams, opts ...ClientOption) (*ListTraceMetricsRulesOK, error)
- func (a *Client) ReadTraceMetricsRule(params *ReadTraceMetricsRuleParams, opts ...ClientOption) (*ReadTraceMetricsRuleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateTraceMetricsRule(params *UpdateTraceMetricsRuleParams, opts ...ClientOption) (*UpdateTraceMetricsRuleOK, error)
- type ClientOption
- type ClientService
- type CreateTraceMetricsRuleBadRequest
- func (o *CreateTraceMetricsRuleBadRequest) Code() int
- func (o *CreateTraceMetricsRuleBadRequest) Error() string
- func (o *CreateTraceMetricsRuleBadRequest) GetPayload() *models.APIError
- func (o *CreateTraceMetricsRuleBadRequest) IsClientError() bool
- func (o *CreateTraceMetricsRuleBadRequest) IsCode(code int) bool
- func (o *CreateTraceMetricsRuleBadRequest) IsRedirect() bool
- func (o *CreateTraceMetricsRuleBadRequest) IsServerError() bool
- func (o *CreateTraceMetricsRuleBadRequest) IsSuccess() bool
- func (o *CreateTraceMetricsRuleBadRequest) String() string
- type CreateTraceMetricsRuleConflict
- func (o *CreateTraceMetricsRuleConflict) Code() int
- func (o *CreateTraceMetricsRuleConflict) Error() string
- func (o *CreateTraceMetricsRuleConflict) GetPayload() *models.APIError
- func (o *CreateTraceMetricsRuleConflict) IsClientError() bool
- func (o *CreateTraceMetricsRuleConflict) IsCode(code int) bool
- func (o *CreateTraceMetricsRuleConflict) IsRedirect() bool
- func (o *CreateTraceMetricsRuleConflict) IsServerError() bool
- func (o *CreateTraceMetricsRuleConflict) IsSuccess() bool
- func (o *CreateTraceMetricsRuleConflict) String() string
- type CreateTraceMetricsRuleDefault
- func (o *CreateTraceMetricsRuleDefault) Code() int
- func (o *CreateTraceMetricsRuleDefault) Error() string
- func (o *CreateTraceMetricsRuleDefault) GetPayload() models.GenericError
- func (o *CreateTraceMetricsRuleDefault) IsClientError() bool
- func (o *CreateTraceMetricsRuleDefault) IsCode(code int) bool
- func (o *CreateTraceMetricsRuleDefault) IsRedirect() bool
- func (o *CreateTraceMetricsRuleDefault) IsServerError() bool
- func (o *CreateTraceMetricsRuleDefault) IsSuccess() bool
- func (o *CreateTraceMetricsRuleDefault) String() string
- type CreateTraceMetricsRuleInternalServerError
- func (o *CreateTraceMetricsRuleInternalServerError) Code() int
- func (o *CreateTraceMetricsRuleInternalServerError) Error() string
- func (o *CreateTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
- func (o *CreateTraceMetricsRuleInternalServerError) IsClientError() bool
- func (o *CreateTraceMetricsRuleInternalServerError) IsCode(code int) bool
- func (o *CreateTraceMetricsRuleInternalServerError) IsRedirect() bool
- func (o *CreateTraceMetricsRuleInternalServerError) IsServerError() bool
- func (o *CreateTraceMetricsRuleInternalServerError) IsSuccess() bool
- func (o *CreateTraceMetricsRuleInternalServerError) String() string
- type CreateTraceMetricsRuleOK
- func (o *CreateTraceMetricsRuleOK) Code() int
- func (o *CreateTraceMetricsRuleOK) Error() string
- func (o *CreateTraceMetricsRuleOK) GetPayload() *models.Configv1CreateTraceMetricsRuleResponse
- func (o *CreateTraceMetricsRuleOK) IsClientError() bool
- func (o *CreateTraceMetricsRuleOK) IsCode(code int) bool
- func (o *CreateTraceMetricsRuleOK) IsRedirect() bool
- func (o *CreateTraceMetricsRuleOK) IsServerError() bool
- func (o *CreateTraceMetricsRuleOK) IsSuccess() bool
- func (o *CreateTraceMetricsRuleOK) String() string
- type CreateTraceMetricsRuleParams
- func NewCreateTraceMetricsRuleParams() *CreateTraceMetricsRuleParams
- func NewCreateTraceMetricsRuleParamsWithContext(ctx context.Context) *CreateTraceMetricsRuleParams
- func NewCreateTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *CreateTraceMetricsRuleParams
- func NewCreateTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *CreateTraceMetricsRuleParams
- func (o *CreateTraceMetricsRuleParams) SetBody(body *models.Configv1CreateTraceMetricsRuleRequest)
- func (o *CreateTraceMetricsRuleParams) SetContext(ctx context.Context)
- func (o *CreateTraceMetricsRuleParams) SetDefaults()
- func (o *CreateTraceMetricsRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateTraceMetricsRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateTraceMetricsRuleParams) WithBody(body *models.Configv1CreateTraceMetricsRuleRequest) *CreateTraceMetricsRuleParams
- func (o *CreateTraceMetricsRuleParams) WithContext(ctx context.Context) *CreateTraceMetricsRuleParams
- func (o *CreateTraceMetricsRuleParams) WithDefaults() *CreateTraceMetricsRuleParams
- func (o *CreateTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *CreateTraceMetricsRuleParams
- func (o *CreateTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *CreateTraceMetricsRuleParams
- func (o *CreateTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTraceMetricsRuleReader
- type DeleteTraceMetricsRuleBadRequest
- func (o *DeleteTraceMetricsRuleBadRequest) Code() int
- func (o *DeleteTraceMetricsRuleBadRequest) Error() string
- func (o *DeleteTraceMetricsRuleBadRequest) GetPayload() *models.APIError
- func (o *DeleteTraceMetricsRuleBadRequest) IsClientError() bool
- func (o *DeleteTraceMetricsRuleBadRequest) IsCode(code int) bool
- func (o *DeleteTraceMetricsRuleBadRequest) IsRedirect() bool
- func (o *DeleteTraceMetricsRuleBadRequest) IsServerError() bool
- func (o *DeleteTraceMetricsRuleBadRequest) IsSuccess() bool
- func (o *DeleteTraceMetricsRuleBadRequest) String() string
- type DeleteTraceMetricsRuleDefault
- func (o *DeleteTraceMetricsRuleDefault) Code() int
- func (o *DeleteTraceMetricsRuleDefault) Error() string
- func (o *DeleteTraceMetricsRuleDefault) GetPayload() models.GenericError
- func (o *DeleteTraceMetricsRuleDefault) IsClientError() bool
- func (o *DeleteTraceMetricsRuleDefault) IsCode(code int) bool
- func (o *DeleteTraceMetricsRuleDefault) IsRedirect() bool
- func (o *DeleteTraceMetricsRuleDefault) IsServerError() bool
- func (o *DeleteTraceMetricsRuleDefault) IsSuccess() bool
- func (o *DeleteTraceMetricsRuleDefault) String() string
- type DeleteTraceMetricsRuleInternalServerError
- func (o *DeleteTraceMetricsRuleInternalServerError) Code() int
- func (o *DeleteTraceMetricsRuleInternalServerError) Error() string
- func (o *DeleteTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
- func (o *DeleteTraceMetricsRuleInternalServerError) IsClientError() bool
- func (o *DeleteTraceMetricsRuleInternalServerError) IsCode(code int) bool
- func (o *DeleteTraceMetricsRuleInternalServerError) IsRedirect() bool
- func (o *DeleteTraceMetricsRuleInternalServerError) IsServerError() bool
- func (o *DeleteTraceMetricsRuleInternalServerError) IsSuccess() bool
- func (o *DeleteTraceMetricsRuleInternalServerError) String() string
- type DeleteTraceMetricsRuleNotFound
- func (o *DeleteTraceMetricsRuleNotFound) Code() int
- func (o *DeleteTraceMetricsRuleNotFound) Error() string
- func (o *DeleteTraceMetricsRuleNotFound) GetPayload() *models.APIError
- func (o *DeleteTraceMetricsRuleNotFound) IsClientError() bool
- func (o *DeleteTraceMetricsRuleNotFound) IsCode(code int) bool
- func (o *DeleteTraceMetricsRuleNotFound) IsRedirect() bool
- func (o *DeleteTraceMetricsRuleNotFound) IsServerError() bool
- func (o *DeleteTraceMetricsRuleNotFound) IsSuccess() bool
- func (o *DeleteTraceMetricsRuleNotFound) String() string
- type DeleteTraceMetricsRuleOK
- func (o *DeleteTraceMetricsRuleOK) Code() int
- func (o *DeleteTraceMetricsRuleOK) Error() string
- func (o *DeleteTraceMetricsRuleOK) GetPayload() models.Configv1DeleteTraceMetricsRuleResponse
- func (o *DeleteTraceMetricsRuleOK) IsClientError() bool
- func (o *DeleteTraceMetricsRuleOK) IsCode(code int) bool
- func (o *DeleteTraceMetricsRuleOK) IsRedirect() bool
- func (o *DeleteTraceMetricsRuleOK) IsServerError() bool
- func (o *DeleteTraceMetricsRuleOK) IsSuccess() bool
- func (o *DeleteTraceMetricsRuleOK) String() string
- type DeleteTraceMetricsRuleParams
- func NewDeleteTraceMetricsRuleParams() *DeleteTraceMetricsRuleParams
- func NewDeleteTraceMetricsRuleParamsWithContext(ctx context.Context) *DeleteTraceMetricsRuleParams
- func NewDeleteTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *DeleteTraceMetricsRuleParams
- func NewDeleteTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *DeleteTraceMetricsRuleParams
- func (o *DeleteTraceMetricsRuleParams) SetContext(ctx context.Context)
- func (o *DeleteTraceMetricsRuleParams) SetDefaults()
- func (o *DeleteTraceMetricsRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTraceMetricsRuleParams) SetSlug(slug string)
- func (o *DeleteTraceMetricsRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTraceMetricsRuleParams) WithContext(ctx context.Context) *DeleteTraceMetricsRuleParams
- func (o *DeleteTraceMetricsRuleParams) WithDefaults() *DeleteTraceMetricsRuleParams
- func (o *DeleteTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *DeleteTraceMetricsRuleParams
- func (o *DeleteTraceMetricsRuleParams) WithSlug(slug string) *DeleteTraceMetricsRuleParams
- func (o *DeleteTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *DeleteTraceMetricsRuleParams
- func (o *DeleteTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTraceMetricsRuleReader
- type ListTraceMetricsRulesDefault
- func (o *ListTraceMetricsRulesDefault) Code() int
- func (o *ListTraceMetricsRulesDefault) Error() string
- func (o *ListTraceMetricsRulesDefault) GetPayload() models.GenericError
- func (o *ListTraceMetricsRulesDefault) IsClientError() bool
- func (o *ListTraceMetricsRulesDefault) IsCode(code int) bool
- func (o *ListTraceMetricsRulesDefault) IsRedirect() bool
- func (o *ListTraceMetricsRulesDefault) IsServerError() bool
- func (o *ListTraceMetricsRulesDefault) IsSuccess() bool
- func (o *ListTraceMetricsRulesDefault) String() string
- type ListTraceMetricsRulesInternalServerError
- func (o *ListTraceMetricsRulesInternalServerError) Code() int
- func (o *ListTraceMetricsRulesInternalServerError) Error() string
- func (o *ListTraceMetricsRulesInternalServerError) GetPayload() *models.APIError
- func (o *ListTraceMetricsRulesInternalServerError) IsClientError() bool
- func (o *ListTraceMetricsRulesInternalServerError) IsCode(code int) bool
- func (o *ListTraceMetricsRulesInternalServerError) IsRedirect() bool
- func (o *ListTraceMetricsRulesInternalServerError) IsServerError() bool
- func (o *ListTraceMetricsRulesInternalServerError) IsSuccess() bool
- func (o *ListTraceMetricsRulesInternalServerError) String() string
- type ListTraceMetricsRulesOK
- func (o *ListTraceMetricsRulesOK) Code() int
- func (o *ListTraceMetricsRulesOK) Error() string
- func (o *ListTraceMetricsRulesOK) GetPayload() *models.Configv1ListTraceMetricsRulesResponse
- func (o *ListTraceMetricsRulesOK) IsClientError() bool
- func (o *ListTraceMetricsRulesOK) IsCode(code int) bool
- func (o *ListTraceMetricsRulesOK) IsRedirect() bool
- func (o *ListTraceMetricsRulesOK) IsServerError() bool
- func (o *ListTraceMetricsRulesOK) IsSuccess() bool
- func (o *ListTraceMetricsRulesOK) String() string
- type ListTraceMetricsRulesParams
- func NewListTraceMetricsRulesParams() *ListTraceMetricsRulesParams
- func NewListTraceMetricsRulesParamsWithContext(ctx context.Context) *ListTraceMetricsRulesParams
- func NewListTraceMetricsRulesParamsWithHTTPClient(client *http.Client) *ListTraceMetricsRulesParams
- func NewListTraceMetricsRulesParamsWithTimeout(timeout time.Duration) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) SetContext(ctx context.Context)
- func (o *ListTraceMetricsRulesParams) SetDefaults()
- func (o *ListTraceMetricsRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListTraceMetricsRulesParams) SetMetricNames(metricNames []string)
- func (o *ListTraceMetricsRulesParams) SetNames(names []string)
- func (o *ListTraceMetricsRulesParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListTraceMetricsRulesParams) SetPageToken(pageToken *string)
- func (o *ListTraceMetricsRulesParams) SetSlugs(slugs []string)
- func (o *ListTraceMetricsRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListTraceMetricsRulesParams) WithContext(ctx context.Context) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithDefaults() *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithHTTPClient(client *http.Client) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithMetricNames(metricNames []string) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithNames(names []string) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithPageMaxSize(pageMaxSize *int64) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithPageToken(pageToken *string) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithSlugs(slugs []string) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WithTimeout(timeout time.Duration) *ListTraceMetricsRulesParams
- func (o *ListTraceMetricsRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTraceMetricsRulesReader
- type ReadTraceMetricsRuleDefault
- func (o *ReadTraceMetricsRuleDefault) Code() int
- func (o *ReadTraceMetricsRuleDefault) Error() string
- func (o *ReadTraceMetricsRuleDefault) GetPayload() models.GenericError
- func (o *ReadTraceMetricsRuleDefault) IsClientError() bool
- func (o *ReadTraceMetricsRuleDefault) IsCode(code int) bool
- func (o *ReadTraceMetricsRuleDefault) IsRedirect() bool
- func (o *ReadTraceMetricsRuleDefault) IsServerError() bool
- func (o *ReadTraceMetricsRuleDefault) IsSuccess() bool
- func (o *ReadTraceMetricsRuleDefault) String() string
- type ReadTraceMetricsRuleInternalServerError
- func (o *ReadTraceMetricsRuleInternalServerError) Code() int
- func (o *ReadTraceMetricsRuleInternalServerError) Error() string
- func (o *ReadTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
- func (o *ReadTraceMetricsRuleInternalServerError) IsClientError() bool
- func (o *ReadTraceMetricsRuleInternalServerError) IsCode(code int) bool
- func (o *ReadTraceMetricsRuleInternalServerError) IsRedirect() bool
- func (o *ReadTraceMetricsRuleInternalServerError) IsServerError() bool
- func (o *ReadTraceMetricsRuleInternalServerError) IsSuccess() bool
- func (o *ReadTraceMetricsRuleInternalServerError) String() string
- type ReadTraceMetricsRuleNotFound
- func (o *ReadTraceMetricsRuleNotFound) Code() int
- func (o *ReadTraceMetricsRuleNotFound) Error() string
- func (o *ReadTraceMetricsRuleNotFound) GetPayload() *models.APIError
- func (o *ReadTraceMetricsRuleNotFound) IsClientError() bool
- func (o *ReadTraceMetricsRuleNotFound) IsCode(code int) bool
- func (o *ReadTraceMetricsRuleNotFound) IsRedirect() bool
- func (o *ReadTraceMetricsRuleNotFound) IsServerError() bool
- func (o *ReadTraceMetricsRuleNotFound) IsSuccess() bool
- func (o *ReadTraceMetricsRuleNotFound) String() string
- type ReadTraceMetricsRuleOK
- func (o *ReadTraceMetricsRuleOK) Code() int
- func (o *ReadTraceMetricsRuleOK) Error() string
- func (o *ReadTraceMetricsRuleOK) GetPayload() *models.Configv1ReadTraceMetricsRuleResponse
- func (o *ReadTraceMetricsRuleOK) IsClientError() bool
- func (o *ReadTraceMetricsRuleOK) IsCode(code int) bool
- func (o *ReadTraceMetricsRuleOK) IsRedirect() bool
- func (o *ReadTraceMetricsRuleOK) IsServerError() bool
- func (o *ReadTraceMetricsRuleOK) IsSuccess() bool
- func (o *ReadTraceMetricsRuleOK) String() string
- type ReadTraceMetricsRuleParams
- func NewReadTraceMetricsRuleParams() *ReadTraceMetricsRuleParams
- func NewReadTraceMetricsRuleParamsWithContext(ctx context.Context) *ReadTraceMetricsRuleParams
- func NewReadTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *ReadTraceMetricsRuleParams
- func NewReadTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *ReadTraceMetricsRuleParams
- func (o *ReadTraceMetricsRuleParams) SetContext(ctx context.Context)
- func (o *ReadTraceMetricsRuleParams) SetDefaults()
- func (o *ReadTraceMetricsRuleParams) SetHTTPClient(client *http.Client)
- func (o *ReadTraceMetricsRuleParams) SetSlug(slug string)
- func (o *ReadTraceMetricsRuleParams) SetTimeout(timeout time.Duration)
- func (o *ReadTraceMetricsRuleParams) WithContext(ctx context.Context) *ReadTraceMetricsRuleParams
- func (o *ReadTraceMetricsRuleParams) WithDefaults() *ReadTraceMetricsRuleParams
- func (o *ReadTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *ReadTraceMetricsRuleParams
- func (o *ReadTraceMetricsRuleParams) WithSlug(slug string) *ReadTraceMetricsRuleParams
- func (o *ReadTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *ReadTraceMetricsRuleParams
- func (o *ReadTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadTraceMetricsRuleReader
- type UpdateTraceMetricsRuleBadRequest
- func (o *UpdateTraceMetricsRuleBadRequest) Code() int
- func (o *UpdateTraceMetricsRuleBadRequest) Error() string
- func (o *UpdateTraceMetricsRuleBadRequest) GetPayload() *models.APIError
- func (o *UpdateTraceMetricsRuleBadRequest) IsClientError() bool
- func (o *UpdateTraceMetricsRuleBadRequest) IsCode(code int) bool
- func (o *UpdateTraceMetricsRuleBadRequest) IsRedirect() bool
- func (o *UpdateTraceMetricsRuleBadRequest) IsServerError() bool
- func (o *UpdateTraceMetricsRuleBadRequest) IsSuccess() bool
- func (o *UpdateTraceMetricsRuleBadRequest) String() string
- type UpdateTraceMetricsRuleConflict
- func (o *UpdateTraceMetricsRuleConflict) Code() int
- func (o *UpdateTraceMetricsRuleConflict) Error() string
- func (o *UpdateTraceMetricsRuleConflict) GetPayload() *models.APIError
- func (o *UpdateTraceMetricsRuleConflict) IsClientError() bool
- func (o *UpdateTraceMetricsRuleConflict) IsCode(code int) bool
- func (o *UpdateTraceMetricsRuleConflict) IsRedirect() bool
- func (o *UpdateTraceMetricsRuleConflict) IsServerError() bool
- func (o *UpdateTraceMetricsRuleConflict) IsSuccess() bool
- func (o *UpdateTraceMetricsRuleConflict) String() string
- type UpdateTraceMetricsRuleDefault
- func (o *UpdateTraceMetricsRuleDefault) Code() int
- func (o *UpdateTraceMetricsRuleDefault) Error() string
- func (o *UpdateTraceMetricsRuleDefault) GetPayload() models.GenericError
- func (o *UpdateTraceMetricsRuleDefault) IsClientError() bool
- func (o *UpdateTraceMetricsRuleDefault) IsCode(code int) bool
- func (o *UpdateTraceMetricsRuleDefault) IsRedirect() bool
- func (o *UpdateTraceMetricsRuleDefault) IsServerError() bool
- func (o *UpdateTraceMetricsRuleDefault) IsSuccess() bool
- func (o *UpdateTraceMetricsRuleDefault) String() string
- type UpdateTraceMetricsRuleInternalServerError
- func (o *UpdateTraceMetricsRuleInternalServerError) Code() int
- func (o *UpdateTraceMetricsRuleInternalServerError) Error() string
- func (o *UpdateTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
- func (o *UpdateTraceMetricsRuleInternalServerError) IsClientError() bool
- func (o *UpdateTraceMetricsRuleInternalServerError) IsCode(code int) bool
- func (o *UpdateTraceMetricsRuleInternalServerError) IsRedirect() bool
- func (o *UpdateTraceMetricsRuleInternalServerError) IsServerError() bool
- func (o *UpdateTraceMetricsRuleInternalServerError) IsSuccess() bool
- func (o *UpdateTraceMetricsRuleInternalServerError) String() string
- type UpdateTraceMetricsRuleNotFound
- func (o *UpdateTraceMetricsRuleNotFound) Code() int
- func (o *UpdateTraceMetricsRuleNotFound) Error() string
- func (o *UpdateTraceMetricsRuleNotFound) GetPayload() *models.APIError
- func (o *UpdateTraceMetricsRuleNotFound) IsClientError() bool
- func (o *UpdateTraceMetricsRuleNotFound) IsCode(code int) bool
- func (o *UpdateTraceMetricsRuleNotFound) IsRedirect() bool
- func (o *UpdateTraceMetricsRuleNotFound) IsServerError() bool
- func (o *UpdateTraceMetricsRuleNotFound) IsSuccess() bool
- func (o *UpdateTraceMetricsRuleNotFound) String() string
- type UpdateTraceMetricsRuleOK
- func (o *UpdateTraceMetricsRuleOK) Code() int
- func (o *UpdateTraceMetricsRuleOK) Error() string
- func (o *UpdateTraceMetricsRuleOK) GetPayload() *models.Configv1UpdateTraceMetricsRuleResponse
- func (o *UpdateTraceMetricsRuleOK) IsClientError() bool
- func (o *UpdateTraceMetricsRuleOK) IsCode(code int) bool
- func (o *UpdateTraceMetricsRuleOK) IsRedirect() bool
- func (o *UpdateTraceMetricsRuleOK) IsServerError() bool
- func (o *UpdateTraceMetricsRuleOK) IsSuccess() bool
- func (o *UpdateTraceMetricsRuleOK) String() string
- type UpdateTraceMetricsRuleParams
- func NewUpdateTraceMetricsRuleParams() *UpdateTraceMetricsRuleParams
- func NewUpdateTraceMetricsRuleParamsWithContext(ctx context.Context) *UpdateTraceMetricsRuleParams
- func NewUpdateTraceMetricsRuleParamsWithHTTPClient(client *http.Client) *UpdateTraceMetricsRuleParams
- func NewUpdateTraceMetricsRuleParamsWithTimeout(timeout time.Duration) *UpdateTraceMetricsRuleParams
- func (o *UpdateTraceMetricsRuleParams) SetBody(body *models.ConfigV1UpdateTraceMetricsRuleBody)
- func (o *UpdateTraceMetricsRuleParams) SetContext(ctx context.Context)
- func (o *UpdateTraceMetricsRuleParams) SetDefaults()
- func (o *UpdateTraceMetricsRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateTraceMetricsRuleParams) SetSlug(slug string)
- func (o *UpdateTraceMetricsRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateTraceMetricsRuleParams) WithBody(body *models.ConfigV1UpdateTraceMetricsRuleBody) *UpdateTraceMetricsRuleParams
- func (o *UpdateTraceMetricsRuleParams) WithContext(ctx context.Context) *UpdateTraceMetricsRuleParams
- func (o *UpdateTraceMetricsRuleParams) WithDefaults() *UpdateTraceMetricsRuleParams
- func (o *UpdateTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *UpdateTraceMetricsRuleParams
- func (o *UpdateTraceMetricsRuleParams) WithSlug(slug string) *UpdateTraceMetricsRuleParams
- func (o *UpdateTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *UpdateTraceMetricsRuleParams
- func (o *UpdateTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateTraceMetricsRuleReader
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 ¶
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 ¶
func (o *CreateTraceMetricsRuleBadRequest) Code() int
Code gets the status code for the create trace metrics rule bad request response
func (*CreateTraceMetricsRuleBadRequest) Error ¶
func (o *CreateTraceMetricsRuleBadRequest) Error() string
func (*CreateTraceMetricsRuleBadRequest) GetPayload ¶
func (o *CreateTraceMetricsRuleBadRequest) GetPayload() *models.APIError
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 ¶
func (o *CreateTraceMetricsRuleBadRequest) String() string
type CreateTraceMetricsRuleConflict ¶
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 ¶
func (o *CreateTraceMetricsRuleConflict) Code() int
Code gets the status code for the create trace metrics rule conflict response
func (*CreateTraceMetricsRuleConflict) Error ¶
func (o *CreateTraceMetricsRuleConflict) Error() string
func (*CreateTraceMetricsRuleConflict) GetPayload ¶
func (o *CreateTraceMetricsRuleConflict) GetPayload() *models.APIError
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 ¶
func (o *CreateTraceMetricsRuleConflict) String() 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 ¶
func (o *CreateTraceMetricsRuleDefault) Code() int
Code gets the status code for the create trace metrics rule default response
func (*CreateTraceMetricsRuleDefault) Error ¶
func (o *CreateTraceMetricsRuleDefault) Error() string
func (*CreateTraceMetricsRuleDefault) GetPayload ¶
func (o *CreateTraceMetricsRuleDefault) GetPayload() models.GenericError
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 ¶
func (o *CreateTraceMetricsRuleDefault) String() string
type CreateTraceMetricsRuleInternalServerError ¶
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 ¶
func (o *CreateTraceMetricsRuleInternalServerError) Code() int
Code gets the status code for the create trace metrics rule internal server error response
func (*CreateTraceMetricsRuleInternalServerError) Error ¶
func (o *CreateTraceMetricsRuleInternalServerError) Error() string
func (*CreateTraceMetricsRuleInternalServerError) GetPayload ¶
func (o *CreateTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
func (*CreateTraceMetricsRuleInternalServerError) IsClientError ¶
func (o *CreateTraceMetricsRuleInternalServerError) IsClientError() bool
IsClientError returns true when this create trace metrics rule internal server error response has a 4xx status code
func (*CreateTraceMetricsRuleInternalServerError) IsCode ¶
func (o *CreateTraceMetricsRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this create trace metrics rule internal server error response a status code equal to that given
func (*CreateTraceMetricsRuleInternalServerError) IsRedirect ¶
func (o *CreateTraceMetricsRuleInternalServerError) IsRedirect() bool
IsRedirect returns true when this create trace metrics rule internal server error response has a 3xx status code
func (*CreateTraceMetricsRuleInternalServerError) IsServerError ¶
func (o *CreateTraceMetricsRuleInternalServerError) IsServerError() bool
IsServerError returns true when this create trace metrics rule internal server error response has a 5xx status code
func (*CreateTraceMetricsRuleInternalServerError) IsSuccess ¶
func (o *CreateTraceMetricsRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this create trace metrics rule internal server error response has a 2xx status code
func (*CreateTraceMetricsRuleInternalServerError) String ¶
func (o *CreateTraceMetricsRuleInternalServerError) String() 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 (o *CreateTraceMetricsRuleOK) GetPayload() *models.Configv1CreateTraceMetricsRuleResponse
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 ¶
func (o *CreateTraceMetricsRuleParams) SetBody(body *models.Configv1CreateTraceMetricsRuleRequest)
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 ¶
func (o *CreateTraceMetricsRuleParams) WithBody(body *models.Configv1CreateTraceMetricsRuleRequest) *CreateTraceMetricsRuleParams
WithBody adds the body to the create trace metrics rule params
func (*CreateTraceMetricsRuleParams) WithContext ¶
func (o *CreateTraceMetricsRuleParams) WithContext(ctx context.Context) *CreateTraceMetricsRuleParams
WithContext adds the context to the create trace metrics rule params
func (*CreateTraceMetricsRuleParams) WithDefaults ¶
func (o *CreateTraceMetricsRuleParams) WithDefaults() *CreateTraceMetricsRuleParams
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 ¶
func (o *CreateTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *CreateTraceMetricsRuleParams
WithHTTPClient adds the HTTPClient to the create trace metrics rule params
func (*CreateTraceMetricsRuleParams) WithTimeout ¶
func (o *CreateTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *CreateTraceMetricsRuleParams
WithTimeout adds the timeout to the create trace metrics rule params
func (*CreateTraceMetricsRuleParams) WriteToRequest ¶
func (o *CreateTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *DeleteTraceMetricsRuleBadRequest) Code() int
Code gets the status code for the delete trace metrics rule bad request response
func (*DeleteTraceMetricsRuleBadRequest) Error ¶
func (o *DeleteTraceMetricsRuleBadRequest) Error() string
func (*DeleteTraceMetricsRuleBadRequest) GetPayload ¶
func (o *DeleteTraceMetricsRuleBadRequest) GetPayload() *models.APIError
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 ¶
func (o *DeleteTraceMetricsRuleBadRequest) String() 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 ¶
func (o *DeleteTraceMetricsRuleDefault) Code() int
Code gets the status code for the delete trace metrics rule default response
func (*DeleteTraceMetricsRuleDefault) Error ¶
func (o *DeleteTraceMetricsRuleDefault) Error() string
func (*DeleteTraceMetricsRuleDefault) GetPayload ¶
func (o *DeleteTraceMetricsRuleDefault) GetPayload() models.GenericError
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 ¶
func (o *DeleteTraceMetricsRuleDefault) String() string
type DeleteTraceMetricsRuleInternalServerError ¶
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 ¶
func (o *DeleteTraceMetricsRuleInternalServerError) Code() int
Code gets the status code for the delete trace metrics rule internal server error response
func (*DeleteTraceMetricsRuleInternalServerError) Error ¶
func (o *DeleteTraceMetricsRuleInternalServerError) Error() string
func (*DeleteTraceMetricsRuleInternalServerError) GetPayload ¶
func (o *DeleteTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
func (*DeleteTraceMetricsRuleInternalServerError) IsClientError ¶
func (o *DeleteTraceMetricsRuleInternalServerError) IsClientError() bool
IsClientError returns true when this delete trace metrics rule internal server error response has a 4xx status code
func (*DeleteTraceMetricsRuleInternalServerError) IsCode ¶
func (o *DeleteTraceMetricsRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this delete trace metrics rule internal server error response a status code equal to that given
func (*DeleteTraceMetricsRuleInternalServerError) IsRedirect ¶
func (o *DeleteTraceMetricsRuleInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete trace metrics rule internal server error response has a 3xx status code
func (*DeleteTraceMetricsRuleInternalServerError) IsServerError ¶
func (o *DeleteTraceMetricsRuleInternalServerError) IsServerError() bool
IsServerError returns true when this delete trace metrics rule internal server error response has a 5xx status code
func (*DeleteTraceMetricsRuleInternalServerError) IsSuccess ¶
func (o *DeleteTraceMetricsRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete trace metrics rule internal server error response has a 2xx status code
func (*DeleteTraceMetricsRuleInternalServerError) String ¶
func (o *DeleteTraceMetricsRuleInternalServerError) String() string
type DeleteTraceMetricsRuleNotFound ¶
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 ¶
func (o *DeleteTraceMetricsRuleNotFound) Code() int
Code gets the status code for the delete trace metrics rule not found response
func (*DeleteTraceMetricsRuleNotFound) Error ¶
func (o *DeleteTraceMetricsRuleNotFound) Error() string
func (*DeleteTraceMetricsRuleNotFound) GetPayload ¶
func (o *DeleteTraceMetricsRuleNotFound) GetPayload() *models.APIError
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 ¶
func (o *DeleteTraceMetricsRuleNotFound) String() 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 (o *DeleteTraceMetricsRuleOK) GetPayload() models.Configv1DeleteTraceMetricsRuleResponse
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 ¶
func (o *DeleteTraceMetricsRuleParams) WithContext(ctx context.Context) *DeleteTraceMetricsRuleParams
WithContext adds the context to the delete trace metrics rule params
func (*DeleteTraceMetricsRuleParams) WithDefaults ¶
func (o *DeleteTraceMetricsRuleParams) WithDefaults() *DeleteTraceMetricsRuleParams
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 ¶
func (o *DeleteTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *DeleteTraceMetricsRuleParams
WithHTTPClient adds the HTTPClient to the delete trace metrics rule params
func (*DeleteTraceMetricsRuleParams) WithSlug ¶
func (o *DeleteTraceMetricsRuleParams) WithSlug(slug string) *DeleteTraceMetricsRuleParams
WithSlug adds the slug to the delete trace metrics rule params
func (*DeleteTraceMetricsRuleParams) WithTimeout ¶
func (o *DeleteTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *DeleteTraceMetricsRuleParams
WithTimeout adds the timeout to the delete trace metrics rule params
func (*DeleteTraceMetricsRuleParams) WriteToRequest ¶
func (o *DeleteTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListTraceMetricsRulesDefault) Code() int
Code gets the status code for the list trace metrics rules default response
func (*ListTraceMetricsRulesDefault) Error ¶
func (o *ListTraceMetricsRulesDefault) Error() string
func (*ListTraceMetricsRulesDefault) GetPayload ¶
func (o *ListTraceMetricsRulesDefault) GetPayload() models.GenericError
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 ¶
func (o *ListTraceMetricsRulesDefault) String() string
type ListTraceMetricsRulesInternalServerError ¶
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 ¶
func (o *ListTraceMetricsRulesInternalServerError) Code() int
Code gets the status code for the list trace metrics rules internal server error response
func (*ListTraceMetricsRulesInternalServerError) Error ¶
func (o *ListTraceMetricsRulesInternalServerError) Error() string
func (*ListTraceMetricsRulesInternalServerError) GetPayload ¶
func (o *ListTraceMetricsRulesInternalServerError) GetPayload() *models.APIError
func (*ListTraceMetricsRulesInternalServerError) IsClientError ¶
func (o *ListTraceMetricsRulesInternalServerError) IsClientError() bool
IsClientError returns true when this list trace metrics rules internal server error response has a 4xx status code
func (*ListTraceMetricsRulesInternalServerError) IsCode ¶
func (o *ListTraceMetricsRulesInternalServerError) IsCode(code int) bool
IsCode returns true when this list trace metrics rules internal server error response a status code equal to that given
func (*ListTraceMetricsRulesInternalServerError) IsRedirect ¶
func (o *ListTraceMetricsRulesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list trace metrics rules internal server error response has a 3xx status code
func (*ListTraceMetricsRulesInternalServerError) IsServerError ¶
func (o *ListTraceMetricsRulesInternalServerError) IsServerError() bool
IsServerError returns true when this list trace metrics rules internal server error response has a 5xx status code
func (*ListTraceMetricsRulesInternalServerError) IsSuccess ¶
func (o *ListTraceMetricsRulesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list trace metrics rules internal server error response has a 2xx status code
func (*ListTraceMetricsRulesInternalServerError) String ¶
func (o *ListTraceMetricsRulesInternalServerError) String() 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 (o *ListTraceMetricsRulesOK) GetPayload() *models.Configv1ListTraceMetricsRulesResponse
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 ¶
func (o *ListTraceMetricsRulesParams) WithContext(ctx context.Context) *ListTraceMetricsRulesParams
WithContext adds the context to the list trace metrics rules params
func (*ListTraceMetricsRulesParams) WithDefaults ¶
func (o *ListTraceMetricsRulesParams) WithDefaults() *ListTraceMetricsRulesParams
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 ¶
func (o *ListTraceMetricsRulesParams) WithHTTPClient(client *http.Client) *ListTraceMetricsRulesParams
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 ¶
func (o *ListTraceMetricsRulesParams) WithNames(names []string) *ListTraceMetricsRulesParams
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 ¶
func (o *ListTraceMetricsRulesParams) WithSlugs(slugs []string) *ListTraceMetricsRulesParams
WithSlugs adds the slugs to the list trace metrics rules params
func (*ListTraceMetricsRulesParams) WithTimeout ¶
func (o *ListTraceMetricsRulesParams) WithTimeout(timeout time.Duration) *ListTraceMetricsRulesParams
WithTimeout adds the timeout to the list trace metrics rules params
func (*ListTraceMetricsRulesParams) WriteToRequest ¶
func (o *ListTraceMetricsRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ReadTraceMetricsRuleDefault) Error() string
func (*ReadTraceMetricsRuleDefault) GetPayload ¶
func (o *ReadTraceMetricsRuleDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *ReadTraceMetricsRuleInternalServerError) Code() int
Code gets the status code for the read trace metrics rule internal server error response
func (*ReadTraceMetricsRuleInternalServerError) Error ¶
func (o *ReadTraceMetricsRuleInternalServerError) Error() string
func (*ReadTraceMetricsRuleInternalServerError) GetPayload ¶
func (o *ReadTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ReadTraceMetricsRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this read trace metrics rule internal server error response a status code equal to that given
func (*ReadTraceMetricsRuleInternalServerError) IsRedirect ¶
func (o *ReadTraceMetricsRuleInternalServerError) IsRedirect() bool
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 ¶
func (o *ReadTraceMetricsRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this read trace metrics rule internal server error response has a 2xx status code
func (*ReadTraceMetricsRuleInternalServerError) String ¶
func (o *ReadTraceMetricsRuleInternalServerError) String() string
type ReadTraceMetricsRuleNotFound ¶
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 ¶
func (o *ReadTraceMetricsRuleNotFound) Code() int
Code gets the status code for the read trace metrics rule not found response
func (*ReadTraceMetricsRuleNotFound) Error ¶
func (o *ReadTraceMetricsRuleNotFound) Error() string
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 ¶
func (o *ReadTraceMetricsRuleNotFound) String() 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 (o *ReadTraceMetricsRuleOK) GetPayload() *models.Configv1ReadTraceMetricsRuleResponse
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 ¶
func (o *ReadTraceMetricsRuleParams) WithContext(ctx context.Context) *ReadTraceMetricsRuleParams
WithContext adds the context to the read trace metrics rule params
func (*ReadTraceMetricsRuleParams) WithDefaults ¶
func (o *ReadTraceMetricsRuleParams) WithDefaults() *ReadTraceMetricsRuleParams
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 ¶
func (o *ReadTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *ReadTraceMetricsRuleParams
WithHTTPClient adds the HTTPClient to the read trace metrics rule params
func (*ReadTraceMetricsRuleParams) WithSlug ¶
func (o *ReadTraceMetricsRuleParams) WithSlug(slug string) *ReadTraceMetricsRuleParams
WithSlug adds the slug to the read trace metrics rule params
func (*ReadTraceMetricsRuleParams) WithTimeout ¶
func (o *ReadTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *ReadTraceMetricsRuleParams
WithTimeout adds the timeout to the read trace metrics rule params
func (*ReadTraceMetricsRuleParams) WriteToRequest ¶
func (o *ReadTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *UpdateTraceMetricsRuleBadRequest) Code() int
Code gets the status code for the update trace metrics rule bad request response
func (*UpdateTraceMetricsRuleBadRequest) Error ¶
func (o *UpdateTraceMetricsRuleBadRequest) Error() string
func (*UpdateTraceMetricsRuleBadRequest) GetPayload ¶
func (o *UpdateTraceMetricsRuleBadRequest) GetPayload() *models.APIError
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 ¶
func (o *UpdateTraceMetricsRuleBadRequest) String() string
type UpdateTraceMetricsRuleConflict ¶
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 ¶
func (o *UpdateTraceMetricsRuleConflict) Code() int
Code gets the status code for the update trace metrics rule conflict response
func (*UpdateTraceMetricsRuleConflict) Error ¶
func (o *UpdateTraceMetricsRuleConflict) Error() string
func (*UpdateTraceMetricsRuleConflict) GetPayload ¶
func (o *UpdateTraceMetricsRuleConflict) GetPayload() *models.APIError
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 ¶
func (o *UpdateTraceMetricsRuleConflict) String() 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 ¶
func (o *UpdateTraceMetricsRuleDefault) Code() int
Code gets the status code for the update trace metrics rule default response
func (*UpdateTraceMetricsRuleDefault) Error ¶
func (o *UpdateTraceMetricsRuleDefault) Error() string
func (*UpdateTraceMetricsRuleDefault) GetPayload ¶
func (o *UpdateTraceMetricsRuleDefault) GetPayload() models.GenericError
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 ¶
func (o *UpdateTraceMetricsRuleDefault) String() string
type UpdateTraceMetricsRuleInternalServerError ¶
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 ¶
func (o *UpdateTraceMetricsRuleInternalServerError) Code() int
Code gets the status code for the update trace metrics rule internal server error response
func (*UpdateTraceMetricsRuleInternalServerError) Error ¶
func (o *UpdateTraceMetricsRuleInternalServerError) Error() string
func (*UpdateTraceMetricsRuleInternalServerError) GetPayload ¶
func (o *UpdateTraceMetricsRuleInternalServerError) GetPayload() *models.APIError
func (*UpdateTraceMetricsRuleInternalServerError) IsClientError ¶
func (o *UpdateTraceMetricsRuleInternalServerError) IsClientError() bool
IsClientError returns true when this update trace metrics rule internal server error response has a 4xx status code
func (*UpdateTraceMetricsRuleInternalServerError) IsCode ¶
func (o *UpdateTraceMetricsRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this update trace metrics rule internal server error response a status code equal to that given
func (*UpdateTraceMetricsRuleInternalServerError) IsRedirect ¶
func (o *UpdateTraceMetricsRuleInternalServerError) IsRedirect() bool
IsRedirect returns true when this update trace metrics rule internal server error response has a 3xx status code
func (*UpdateTraceMetricsRuleInternalServerError) IsServerError ¶
func (o *UpdateTraceMetricsRuleInternalServerError) IsServerError() bool
IsServerError returns true when this update trace metrics rule internal server error response has a 5xx status code
func (*UpdateTraceMetricsRuleInternalServerError) IsSuccess ¶
func (o *UpdateTraceMetricsRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this update trace metrics rule internal server error response has a 2xx status code
func (*UpdateTraceMetricsRuleInternalServerError) String ¶
func (o *UpdateTraceMetricsRuleInternalServerError) String() string
type UpdateTraceMetricsRuleNotFound ¶
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 ¶
func (o *UpdateTraceMetricsRuleNotFound) Code() int
Code gets the status code for the update trace metrics rule not found response
func (*UpdateTraceMetricsRuleNotFound) Error ¶
func (o *UpdateTraceMetricsRuleNotFound) Error() string
func (*UpdateTraceMetricsRuleNotFound) GetPayload ¶
func (o *UpdateTraceMetricsRuleNotFound) GetPayload() *models.APIError
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 ¶
func (o *UpdateTraceMetricsRuleNotFound) String() 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 (o *UpdateTraceMetricsRuleOK) GetPayload() *models.Configv1UpdateTraceMetricsRuleResponse
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 ¶
func (o *UpdateTraceMetricsRuleParams) SetBody(body *models.ConfigV1UpdateTraceMetricsRuleBody)
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 ¶
func (o *UpdateTraceMetricsRuleParams) WithBody(body *models.ConfigV1UpdateTraceMetricsRuleBody) *UpdateTraceMetricsRuleParams
WithBody adds the body to the update trace metrics rule params
func (*UpdateTraceMetricsRuleParams) WithContext ¶
func (o *UpdateTraceMetricsRuleParams) WithContext(ctx context.Context) *UpdateTraceMetricsRuleParams
WithContext adds the context to the update trace metrics rule params
func (*UpdateTraceMetricsRuleParams) WithDefaults ¶
func (o *UpdateTraceMetricsRuleParams) WithDefaults() *UpdateTraceMetricsRuleParams
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 ¶
func (o *UpdateTraceMetricsRuleParams) WithHTTPClient(client *http.Client) *UpdateTraceMetricsRuleParams
WithHTTPClient adds the HTTPClient to the update trace metrics rule params
func (*UpdateTraceMetricsRuleParams) WithSlug ¶
func (o *UpdateTraceMetricsRuleParams) WithSlug(slug string) *UpdateTraceMetricsRuleParams
WithSlug adds the slug to the update trace metrics rule params
func (*UpdateTraceMetricsRuleParams) WithTimeout ¶
func (o *UpdateTraceMetricsRuleParams) WithTimeout(timeout time.Duration) *UpdateTraceMetricsRuleParams
WithTimeout adds the timeout to the update trace metrics rule params
func (*UpdateTraceMetricsRuleParams) WriteToRequest ¶
func (o *UpdateTraceMetricsRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_trace_metrics_rule_parameters.go
- create_trace_metrics_rule_responses.go
- delete_trace_metrics_rule_parameters.go
- delete_trace_metrics_rule_responses.go
- list_trace_metrics_rules_parameters.go
- list_trace_metrics_rules_responses.go
- read_trace_metrics_rule_parameters.go
- read_trace_metrics_rule_responses.go
- trace_metrics_rule_client.go
- update_trace_metrics_rule_parameters.go
- update_trace_metrics_rule_responses.go