derived_metric

package
v1.0.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for derived metric API

func (*Client) CreateDerivedMetric

func (a *Client) CreateDerivedMetric(params *CreateDerivedMetricParams, opts ...ClientOption) (*CreateDerivedMetricOK, error)

CreateDerivedMetric create derived metric API

func (*Client) DeleteDerivedMetric

func (a *Client) DeleteDerivedMetric(params *DeleteDerivedMetricParams, opts ...ClientOption) (*DeleteDerivedMetricOK, error)

DeleteDerivedMetric delete derived metric API

func (*Client) ListDerivedMetrics

func (a *Client) ListDerivedMetrics(params *ListDerivedMetricsParams, opts ...ClientOption) (*ListDerivedMetricsOK, error)

ListDerivedMetrics list derived metrics API

func (*Client) ReadDerivedMetric

func (a *Client) ReadDerivedMetric(params *ReadDerivedMetricParams, opts ...ClientOption) (*ReadDerivedMetricOK, error)

ReadDerivedMetric read derived metric API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateDerivedMetric

func (a *Client) UpdateDerivedMetric(params *UpdateDerivedMetricParams, opts ...ClientOption) (*UpdateDerivedMetricOK, error)

UpdateDerivedMetric update derived metric API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDerivedMetric(params *CreateDerivedMetricParams, opts ...ClientOption) (*CreateDerivedMetricOK, error)

	DeleteDerivedMetric(params *DeleteDerivedMetricParams, opts ...ClientOption) (*DeleteDerivedMetricOK, error)

	ListDerivedMetrics(params *ListDerivedMetricsParams, opts ...ClientOption) (*ListDerivedMetricsOK, error)

	ReadDerivedMetric(params *ReadDerivedMetricParams, opts ...ClientOption) (*ReadDerivedMetricOK, error)

	UpdateDerivedMetric(params *UpdateDerivedMetricParams, opts ...ClientOption) (*UpdateDerivedMetricOK, 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 derived metric API client.

type CreateDerivedMetricBadRequest

type CreateDerivedMetricBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the DerivedMetric because the request is invalid.

func NewCreateDerivedMetricBadRequest

func NewCreateDerivedMetricBadRequest() *CreateDerivedMetricBadRequest

NewCreateDerivedMetricBadRequest creates a CreateDerivedMetricBadRequest with default headers values

func (*CreateDerivedMetricBadRequest) Code

Code gets the status code for the create derived metric bad request response

func (*CreateDerivedMetricBadRequest) Error

func (*CreateDerivedMetricBadRequest) GetPayload

func (*CreateDerivedMetricBadRequest) IsClientError

func (o *CreateDerivedMetricBadRequest) IsClientError() bool

IsClientError returns true when this create derived metric bad request response has a 4xx status code

func (*CreateDerivedMetricBadRequest) IsCode

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

IsCode returns true when this create derived metric bad request response a status code equal to that given

func (*CreateDerivedMetricBadRequest) IsRedirect

func (o *CreateDerivedMetricBadRequest) IsRedirect() bool

IsRedirect returns true when this create derived metric bad request response has a 3xx status code

func (*CreateDerivedMetricBadRequest) IsServerError

func (o *CreateDerivedMetricBadRequest) IsServerError() bool

IsServerError returns true when this create derived metric bad request response has a 5xx status code

func (*CreateDerivedMetricBadRequest) IsSuccess

func (o *CreateDerivedMetricBadRequest) IsSuccess() bool

IsSuccess returns true when this create derived metric bad request response has a 2xx status code

func (*CreateDerivedMetricBadRequest) String

type CreateDerivedMetricConflict

type CreateDerivedMetricConflict struct {
	Payload *models.APIError
}

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

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

func NewCreateDerivedMetricConflict

func NewCreateDerivedMetricConflict() *CreateDerivedMetricConflict

NewCreateDerivedMetricConflict creates a CreateDerivedMetricConflict with default headers values

func (*CreateDerivedMetricConflict) Code

func (o *CreateDerivedMetricConflict) Code() int

Code gets the status code for the create derived metric conflict response

func (*CreateDerivedMetricConflict) Error

func (*CreateDerivedMetricConflict) GetPayload

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

func (*CreateDerivedMetricConflict) IsClientError

func (o *CreateDerivedMetricConflict) IsClientError() bool

IsClientError returns true when this create derived metric conflict response has a 4xx status code

func (*CreateDerivedMetricConflict) IsCode

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

IsCode returns true when this create derived metric conflict response a status code equal to that given

func (*CreateDerivedMetricConflict) IsRedirect

func (o *CreateDerivedMetricConflict) IsRedirect() bool

IsRedirect returns true when this create derived metric conflict response has a 3xx status code

func (*CreateDerivedMetricConflict) IsServerError

func (o *CreateDerivedMetricConflict) IsServerError() bool

IsServerError returns true when this create derived metric conflict response has a 5xx status code

func (*CreateDerivedMetricConflict) IsSuccess

func (o *CreateDerivedMetricConflict) IsSuccess() bool

IsSuccess returns true when this create derived metric conflict response has a 2xx status code

func (*CreateDerivedMetricConflict) String

func (o *CreateDerivedMetricConflict) String() string

type CreateDerivedMetricDefault

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

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

An undefined error response.

func NewCreateDerivedMetricDefault

func NewCreateDerivedMetricDefault(code int) *CreateDerivedMetricDefault

NewCreateDerivedMetricDefault creates a CreateDerivedMetricDefault with default headers values

func (*CreateDerivedMetricDefault) Code

func (o *CreateDerivedMetricDefault) Code() int

Code gets the status code for the create derived metric default response

func (*CreateDerivedMetricDefault) Error

func (*CreateDerivedMetricDefault) GetPayload

func (*CreateDerivedMetricDefault) IsClientError

func (o *CreateDerivedMetricDefault) IsClientError() bool

IsClientError returns true when this create derived metric default response has a 4xx status code

func (*CreateDerivedMetricDefault) IsCode

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

IsCode returns true when this create derived metric default response a status code equal to that given

func (*CreateDerivedMetricDefault) IsRedirect

func (o *CreateDerivedMetricDefault) IsRedirect() bool

IsRedirect returns true when this create derived metric default response has a 3xx status code

func (*CreateDerivedMetricDefault) IsServerError

func (o *CreateDerivedMetricDefault) IsServerError() bool

IsServerError returns true when this create derived metric default response has a 5xx status code

func (*CreateDerivedMetricDefault) IsSuccess

func (o *CreateDerivedMetricDefault) IsSuccess() bool

IsSuccess returns true when this create derived metric default response has a 2xx status code

func (*CreateDerivedMetricDefault) String

func (o *CreateDerivedMetricDefault) String() string

type CreateDerivedMetricInternalServerError

type CreateDerivedMetricInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateDerivedMetricInternalServerError

func NewCreateDerivedMetricInternalServerError() *CreateDerivedMetricInternalServerError

NewCreateDerivedMetricInternalServerError creates a CreateDerivedMetricInternalServerError with default headers values

func (*CreateDerivedMetricInternalServerError) Code

Code gets the status code for the create derived metric internal server error response

func (*CreateDerivedMetricInternalServerError) Error

func (*CreateDerivedMetricInternalServerError) GetPayload

func (*CreateDerivedMetricInternalServerError) IsClientError

func (o *CreateDerivedMetricInternalServerError) IsClientError() bool

IsClientError returns true when this create derived metric internal server error response has a 4xx status code

func (*CreateDerivedMetricInternalServerError) IsCode

IsCode returns true when this create derived metric internal server error response a status code equal to that given

func (*CreateDerivedMetricInternalServerError) IsRedirect

IsRedirect returns true when this create derived metric internal server error response has a 3xx status code

func (*CreateDerivedMetricInternalServerError) IsServerError

func (o *CreateDerivedMetricInternalServerError) IsServerError() bool

IsServerError returns true when this create derived metric internal server error response has a 5xx status code

func (*CreateDerivedMetricInternalServerError) IsSuccess

IsSuccess returns true when this create derived metric internal server error response has a 2xx status code

func (*CreateDerivedMetricInternalServerError) String

type CreateDerivedMetricOK

type CreateDerivedMetricOK struct {
	Payload *models.Configv1CreateDerivedMetricResponse
}

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

A successful response containing the created DerivedMetric.

func NewCreateDerivedMetricOK

func NewCreateDerivedMetricOK() *CreateDerivedMetricOK

NewCreateDerivedMetricOK creates a CreateDerivedMetricOK with default headers values

func (*CreateDerivedMetricOK) Code

func (o *CreateDerivedMetricOK) Code() int

Code gets the status code for the create derived metric o k response

func (*CreateDerivedMetricOK) Error

func (o *CreateDerivedMetricOK) Error() string

func (*CreateDerivedMetricOK) GetPayload

func (*CreateDerivedMetricOK) IsClientError

func (o *CreateDerivedMetricOK) IsClientError() bool

IsClientError returns true when this create derived metric o k response has a 4xx status code

func (*CreateDerivedMetricOK) IsCode

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

IsCode returns true when this create derived metric o k response a status code equal to that given

func (*CreateDerivedMetricOK) IsRedirect

func (o *CreateDerivedMetricOK) IsRedirect() bool

IsRedirect returns true when this create derived metric o k response has a 3xx status code

func (*CreateDerivedMetricOK) IsServerError

func (o *CreateDerivedMetricOK) IsServerError() bool

IsServerError returns true when this create derived metric o k response has a 5xx status code

func (*CreateDerivedMetricOK) IsSuccess

func (o *CreateDerivedMetricOK) IsSuccess() bool

IsSuccess returns true when this create derived metric o k response has a 2xx status code

func (*CreateDerivedMetricOK) String

func (o *CreateDerivedMetricOK) String() string

type CreateDerivedMetricParams

type CreateDerivedMetricParams struct {

	// Body.
	Body *models.Configv1CreateDerivedMetricRequest

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

CreateDerivedMetricParams contains all the parameters to send to the API endpoint

for the create derived metric operation.

Typically these are written to a http.Request.

func NewCreateDerivedMetricParams

func NewCreateDerivedMetricParams() *CreateDerivedMetricParams

NewCreateDerivedMetricParams creates a new CreateDerivedMetricParams 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 NewCreateDerivedMetricParamsWithContext

func NewCreateDerivedMetricParamsWithContext(ctx context.Context) *CreateDerivedMetricParams

NewCreateDerivedMetricParamsWithContext creates a new CreateDerivedMetricParams object with the ability to set a context for a request.

func NewCreateDerivedMetricParamsWithHTTPClient

func NewCreateDerivedMetricParamsWithHTTPClient(client *http.Client) *CreateDerivedMetricParams

NewCreateDerivedMetricParamsWithHTTPClient creates a new CreateDerivedMetricParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDerivedMetricParamsWithTimeout

func NewCreateDerivedMetricParamsWithTimeout(timeout time.Duration) *CreateDerivedMetricParams

NewCreateDerivedMetricParamsWithTimeout creates a new CreateDerivedMetricParams object with the ability to set a timeout on a request.

func (*CreateDerivedMetricParams) SetBody

SetBody adds the body to the create derived metric params

func (*CreateDerivedMetricParams) SetContext

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

SetContext adds the context to the create derived metric params

func (*CreateDerivedMetricParams) SetDefaults

func (o *CreateDerivedMetricParams) SetDefaults()

SetDefaults hydrates default values in the create derived metric params (not the query body).

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

func (*CreateDerivedMetricParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create derived metric params

func (*CreateDerivedMetricParams) SetTimeout

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

SetTimeout adds the timeout to the create derived metric params

func (*CreateDerivedMetricParams) WithBody

WithBody adds the body to the create derived metric params

func (*CreateDerivedMetricParams) WithContext

WithContext adds the context to the create derived metric params

func (*CreateDerivedMetricParams) WithDefaults

WithDefaults hydrates default values in the create derived metric params (not the query body).

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

func (*CreateDerivedMetricParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create derived metric params

func (*CreateDerivedMetricParams) WithTimeout

WithTimeout adds the timeout to the create derived metric params

func (*CreateDerivedMetricParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDerivedMetricReader

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

CreateDerivedMetricReader is a Reader for the CreateDerivedMetric structure.

func (*CreateDerivedMetricReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDerivedMetricBadRequest

type DeleteDerivedMetricBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the DerivedMetric because it is in use.

func NewDeleteDerivedMetricBadRequest

func NewDeleteDerivedMetricBadRequest() *DeleteDerivedMetricBadRequest

NewDeleteDerivedMetricBadRequest creates a DeleteDerivedMetricBadRequest with default headers values

func (*DeleteDerivedMetricBadRequest) Code

Code gets the status code for the delete derived metric bad request response

func (*DeleteDerivedMetricBadRequest) Error

func (*DeleteDerivedMetricBadRequest) GetPayload

func (*DeleteDerivedMetricBadRequest) IsClientError

func (o *DeleteDerivedMetricBadRequest) IsClientError() bool

IsClientError returns true when this delete derived metric bad request response has a 4xx status code

func (*DeleteDerivedMetricBadRequest) IsCode

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

IsCode returns true when this delete derived metric bad request response a status code equal to that given

func (*DeleteDerivedMetricBadRequest) IsRedirect

func (o *DeleteDerivedMetricBadRequest) IsRedirect() bool

IsRedirect returns true when this delete derived metric bad request response has a 3xx status code

func (*DeleteDerivedMetricBadRequest) IsServerError

func (o *DeleteDerivedMetricBadRequest) IsServerError() bool

IsServerError returns true when this delete derived metric bad request response has a 5xx status code

func (*DeleteDerivedMetricBadRequest) IsSuccess

func (o *DeleteDerivedMetricBadRequest) IsSuccess() bool

IsSuccess returns true when this delete derived metric bad request response has a 2xx status code

func (*DeleteDerivedMetricBadRequest) String

type DeleteDerivedMetricDefault

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

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

An undefined error response.

func NewDeleteDerivedMetricDefault

func NewDeleteDerivedMetricDefault(code int) *DeleteDerivedMetricDefault

NewDeleteDerivedMetricDefault creates a DeleteDerivedMetricDefault with default headers values

func (*DeleteDerivedMetricDefault) Code

func (o *DeleteDerivedMetricDefault) Code() int

Code gets the status code for the delete derived metric default response

func (*DeleteDerivedMetricDefault) Error

func (*DeleteDerivedMetricDefault) GetPayload

func (*DeleteDerivedMetricDefault) IsClientError

func (o *DeleteDerivedMetricDefault) IsClientError() bool

IsClientError returns true when this delete derived metric default response has a 4xx status code

func (*DeleteDerivedMetricDefault) IsCode

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

IsCode returns true when this delete derived metric default response a status code equal to that given

func (*DeleteDerivedMetricDefault) IsRedirect

func (o *DeleteDerivedMetricDefault) IsRedirect() bool

IsRedirect returns true when this delete derived metric default response has a 3xx status code

func (*DeleteDerivedMetricDefault) IsServerError

func (o *DeleteDerivedMetricDefault) IsServerError() bool

IsServerError returns true when this delete derived metric default response has a 5xx status code

func (*DeleteDerivedMetricDefault) IsSuccess

func (o *DeleteDerivedMetricDefault) IsSuccess() bool

IsSuccess returns true when this delete derived metric default response has a 2xx status code

func (*DeleteDerivedMetricDefault) String

func (o *DeleteDerivedMetricDefault) String() string

type DeleteDerivedMetricInternalServerError

type DeleteDerivedMetricInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteDerivedMetricInternalServerError

func NewDeleteDerivedMetricInternalServerError() *DeleteDerivedMetricInternalServerError

NewDeleteDerivedMetricInternalServerError creates a DeleteDerivedMetricInternalServerError with default headers values

func (*DeleteDerivedMetricInternalServerError) Code

Code gets the status code for the delete derived metric internal server error response

func (*DeleteDerivedMetricInternalServerError) Error

func (*DeleteDerivedMetricInternalServerError) GetPayload

func (*DeleteDerivedMetricInternalServerError) IsClientError

func (o *DeleteDerivedMetricInternalServerError) IsClientError() bool

IsClientError returns true when this delete derived metric internal server error response has a 4xx status code

func (*DeleteDerivedMetricInternalServerError) IsCode

IsCode returns true when this delete derived metric internal server error response a status code equal to that given

func (*DeleteDerivedMetricInternalServerError) IsRedirect

IsRedirect returns true when this delete derived metric internal server error response has a 3xx status code

func (*DeleteDerivedMetricInternalServerError) IsServerError

func (o *DeleteDerivedMetricInternalServerError) IsServerError() bool

IsServerError returns true when this delete derived metric internal server error response has a 5xx status code

func (*DeleteDerivedMetricInternalServerError) IsSuccess

IsSuccess returns true when this delete derived metric internal server error response has a 2xx status code

func (*DeleteDerivedMetricInternalServerError) String

type DeleteDerivedMetricNotFound

type DeleteDerivedMetricNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the DerivedMetric because the slug does not exist.

func NewDeleteDerivedMetricNotFound

func NewDeleteDerivedMetricNotFound() *DeleteDerivedMetricNotFound

NewDeleteDerivedMetricNotFound creates a DeleteDerivedMetricNotFound with default headers values

func (*DeleteDerivedMetricNotFound) Code

func (o *DeleteDerivedMetricNotFound) Code() int

Code gets the status code for the delete derived metric not found response

func (*DeleteDerivedMetricNotFound) Error

func (*DeleteDerivedMetricNotFound) GetPayload

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

func (*DeleteDerivedMetricNotFound) IsClientError

func (o *DeleteDerivedMetricNotFound) IsClientError() bool

IsClientError returns true when this delete derived metric not found response has a 4xx status code

func (*DeleteDerivedMetricNotFound) IsCode

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

IsCode returns true when this delete derived metric not found response a status code equal to that given

func (*DeleteDerivedMetricNotFound) IsRedirect

func (o *DeleteDerivedMetricNotFound) IsRedirect() bool

IsRedirect returns true when this delete derived metric not found response has a 3xx status code

func (*DeleteDerivedMetricNotFound) IsServerError

func (o *DeleteDerivedMetricNotFound) IsServerError() bool

IsServerError returns true when this delete derived metric not found response has a 5xx status code

func (*DeleteDerivedMetricNotFound) IsSuccess

func (o *DeleteDerivedMetricNotFound) IsSuccess() bool

IsSuccess returns true when this delete derived metric not found response has a 2xx status code

func (*DeleteDerivedMetricNotFound) String

func (o *DeleteDerivedMetricNotFound) String() string

type DeleteDerivedMetricOK

type DeleteDerivedMetricOK struct {
	Payload models.Configv1DeleteDerivedMetricResponse
}

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

A successful response.

func NewDeleteDerivedMetricOK

func NewDeleteDerivedMetricOK() *DeleteDerivedMetricOK

NewDeleteDerivedMetricOK creates a DeleteDerivedMetricOK with default headers values

func (*DeleteDerivedMetricOK) Code

func (o *DeleteDerivedMetricOK) Code() int

Code gets the status code for the delete derived metric o k response

func (*DeleteDerivedMetricOK) Error

func (o *DeleteDerivedMetricOK) Error() string

func (*DeleteDerivedMetricOK) GetPayload

func (*DeleteDerivedMetricOK) IsClientError

func (o *DeleteDerivedMetricOK) IsClientError() bool

IsClientError returns true when this delete derived metric o k response has a 4xx status code

func (*DeleteDerivedMetricOK) IsCode

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

IsCode returns true when this delete derived metric o k response a status code equal to that given

func (*DeleteDerivedMetricOK) IsRedirect

func (o *DeleteDerivedMetricOK) IsRedirect() bool

IsRedirect returns true when this delete derived metric o k response has a 3xx status code

func (*DeleteDerivedMetricOK) IsServerError

func (o *DeleteDerivedMetricOK) IsServerError() bool

IsServerError returns true when this delete derived metric o k response has a 5xx status code

func (*DeleteDerivedMetricOK) IsSuccess

func (o *DeleteDerivedMetricOK) IsSuccess() bool

IsSuccess returns true when this delete derived metric o k response has a 2xx status code

func (*DeleteDerivedMetricOK) String

func (o *DeleteDerivedMetricOK) String() string

type DeleteDerivedMetricParams

type DeleteDerivedMetricParams struct {

	// Slug.
	Slug string

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

DeleteDerivedMetricParams contains all the parameters to send to the API endpoint

for the delete derived metric operation.

Typically these are written to a http.Request.

func NewDeleteDerivedMetricParams

func NewDeleteDerivedMetricParams() *DeleteDerivedMetricParams

NewDeleteDerivedMetricParams creates a new DeleteDerivedMetricParams 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 NewDeleteDerivedMetricParamsWithContext

func NewDeleteDerivedMetricParamsWithContext(ctx context.Context) *DeleteDerivedMetricParams

NewDeleteDerivedMetricParamsWithContext creates a new DeleteDerivedMetricParams object with the ability to set a context for a request.

func NewDeleteDerivedMetricParamsWithHTTPClient

func NewDeleteDerivedMetricParamsWithHTTPClient(client *http.Client) *DeleteDerivedMetricParams

NewDeleteDerivedMetricParamsWithHTTPClient creates a new DeleteDerivedMetricParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDerivedMetricParamsWithTimeout

func NewDeleteDerivedMetricParamsWithTimeout(timeout time.Duration) *DeleteDerivedMetricParams

NewDeleteDerivedMetricParamsWithTimeout creates a new DeleteDerivedMetricParams object with the ability to set a timeout on a request.

func (*DeleteDerivedMetricParams) SetContext

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

SetContext adds the context to the delete derived metric params

func (*DeleteDerivedMetricParams) SetDefaults

func (o *DeleteDerivedMetricParams) SetDefaults()

SetDefaults hydrates default values in the delete derived metric params (not the query body).

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

func (*DeleteDerivedMetricParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete derived metric params

func (*DeleteDerivedMetricParams) SetSlug

func (o *DeleteDerivedMetricParams) SetSlug(slug string)

SetSlug adds the slug to the delete derived metric params

func (*DeleteDerivedMetricParams) SetTimeout

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

SetTimeout adds the timeout to the delete derived metric params

func (*DeleteDerivedMetricParams) WithContext

WithContext adds the context to the delete derived metric params

func (*DeleteDerivedMetricParams) WithDefaults

WithDefaults hydrates default values in the delete derived metric params (not the query body).

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

func (*DeleteDerivedMetricParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete derived metric params

func (*DeleteDerivedMetricParams) WithSlug

WithSlug adds the slug to the delete derived metric params

func (*DeleteDerivedMetricParams) WithTimeout

WithTimeout adds the timeout to the delete derived metric params

func (*DeleteDerivedMetricParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDerivedMetricReader

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

DeleteDerivedMetricReader is a Reader for the DeleteDerivedMetric structure.

func (*DeleteDerivedMetricReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDerivedMetricsDefault

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

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

An undefined error response.

func NewListDerivedMetricsDefault

func NewListDerivedMetricsDefault(code int) *ListDerivedMetricsDefault

NewListDerivedMetricsDefault creates a ListDerivedMetricsDefault with default headers values

func (*ListDerivedMetricsDefault) Code

func (o *ListDerivedMetricsDefault) Code() int

Code gets the status code for the list derived metrics default response

func (*ListDerivedMetricsDefault) Error

func (o *ListDerivedMetricsDefault) Error() string

func (*ListDerivedMetricsDefault) GetPayload

func (*ListDerivedMetricsDefault) IsClientError

func (o *ListDerivedMetricsDefault) IsClientError() bool

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

func (*ListDerivedMetricsDefault) IsCode

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

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

func (*ListDerivedMetricsDefault) IsRedirect

func (o *ListDerivedMetricsDefault) IsRedirect() bool

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

func (*ListDerivedMetricsDefault) IsServerError

func (o *ListDerivedMetricsDefault) IsServerError() bool

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

func (*ListDerivedMetricsDefault) IsSuccess

func (o *ListDerivedMetricsDefault) IsSuccess() bool

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

func (*ListDerivedMetricsDefault) String

func (o *ListDerivedMetricsDefault) String() string

type ListDerivedMetricsInternalServerError

type ListDerivedMetricsInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListDerivedMetricsInternalServerError

func NewListDerivedMetricsInternalServerError() *ListDerivedMetricsInternalServerError

NewListDerivedMetricsInternalServerError creates a ListDerivedMetricsInternalServerError with default headers values

func (*ListDerivedMetricsInternalServerError) Code

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

func (*ListDerivedMetricsInternalServerError) Error

func (*ListDerivedMetricsInternalServerError) GetPayload

func (*ListDerivedMetricsInternalServerError) IsClientError

func (o *ListDerivedMetricsInternalServerError) IsClientError() bool

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

func (*ListDerivedMetricsInternalServerError) IsCode

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

func (*ListDerivedMetricsInternalServerError) IsRedirect

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

func (*ListDerivedMetricsInternalServerError) IsServerError

func (o *ListDerivedMetricsInternalServerError) IsServerError() bool

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

func (*ListDerivedMetricsInternalServerError) IsSuccess

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

func (*ListDerivedMetricsInternalServerError) String

type ListDerivedMetricsOK

type ListDerivedMetricsOK struct {
	Payload *models.Configv1ListDerivedMetricsResponse
}

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

A successful response.

func NewListDerivedMetricsOK

func NewListDerivedMetricsOK() *ListDerivedMetricsOK

NewListDerivedMetricsOK creates a ListDerivedMetricsOK with default headers values

func (*ListDerivedMetricsOK) Code

func (o *ListDerivedMetricsOK) Code() int

Code gets the status code for the list derived metrics o k response

func (*ListDerivedMetricsOK) Error

func (o *ListDerivedMetricsOK) Error() string

func (*ListDerivedMetricsOK) GetPayload

func (*ListDerivedMetricsOK) IsClientError

func (o *ListDerivedMetricsOK) IsClientError() bool

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

func (*ListDerivedMetricsOK) IsCode

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

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

func (*ListDerivedMetricsOK) IsRedirect

func (o *ListDerivedMetricsOK) IsRedirect() bool

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

func (*ListDerivedMetricsOK) IsServerError

func (o *ListDerivedMetricsOK) IsServerError() bool

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

func (*ListDerivedMetricsOK) IsSuccess

func (o *ListDerivedMetricsOK) IsSuccess() bool

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

func (*ListDerivedMetricsOK) String

func (o *ListDerivedMetricsOK) String() string

type ListDerivedMetricsParams

type ListDerivedMetricsParams struct {

	/* Names.

	   Filters results by name, where any DerivedMetric 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 DerivedMetric 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
}

ListDerivedMetricsParams contains all the parameters to send to the API endpoint

for the list derived metrics operation.

Typically these are written to a http.Request.

func NewListDerivedMetricsParams

func NewListDerivedMetricsParams() *ListDerivedMetricsParams

NewListDerivedMetricsParams creates a new ListDerivedMetricsParams 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 NewListDerivedMetricsParamsWithContext

func NewListDerivedMetricsParamsWithContext(ctx context.Context) *ListDerivedMetricsParams

NewListDerivedMetricsParamsWithContext creates a new ListDerivedMetricsParams object with the ability to set a context for a request.

func NewListDerivedMetricsParamsWithHTTPClient

func NewListDerivedMetricsParamsWithHTTPClient(client *http.Client) *ListDerivedMetricsParams

NewListDerivedMetricsParamsWithHTTPClient creates a new ListDerivedMetricsParams object with the ability to set a custom HTTPClient for a request.

func NewListDerivedMetricsParamsWithTimeout

func NewListDerivedMetricsParamsWithTimeout(timeout time.Duration) *ListDerivedMetricsParams

NewListDerivedMetricsParamsWithTimeout creates a new ListDerivedMetricsParams object with the ability to set a timeout on a request.

func (*ListDerivedMetricsParams) SetContext

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

SetContext adds the context to the list derived metrics params

func (*ListDerivedMetricsParams) SetDefaults

func (o *ListDerivedMetricsParams) SetDefaults()

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

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

func (*ListDerivedMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list derived metrics params

func (*ListDerivedMetricsParams) SetNames

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

SetNames adds the names to the list derived metrics params

func (*ListDerivedMetricsParams) SetPageMaxSize

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

SetPageMaxSize adds the pageMaxSize to the list derived metrics params

func (*ListDerivedMetricsParams) SetPageToken

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

SetPageToken adds the pageToken to the list derived metrics params

func (*ListDerivedMetricsParams) SetSlugs

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

SetSlugs adds the slugs to the list derived metrics params

func (*ListDerivedMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the list derived metrics params

func (*ListDerivedMetricsParams) WithContext

WithContext adds the context to the list derived metrics params

func (*ListDerivedMetricsParams) WithDefaults

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

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

func (*ListDerivedMetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list derived metrics params

func (*ListDerivedMetricsParams) WithNames

WithNames adds the names to the list derived metrics params

func (*ListDerivedMetricsParams) WithPageMaxSize

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

WithPageMaxSize adds the pageMaxSize to the list derived metrics params

func (*ListDerivedMetricsParams) WithPageToken

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

WithPageToken adds the pageToken to the list derived metrics params

func (*ListDerivedMetricsParams) WithSlugs

WithSlugs adds the slugs to the list derived metrics params

func (*ListDerivedMetricsParams) WithTimeout

WithTimeout adds the timeout to the list derived metrics params

func (*ListDerivedMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDerivedMetricsReader

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

ListDerivedMetricsReader is a Reader for the ListDerivedMetrics structure.

func (*ListDerivedMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadDerivedMetricDefault

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

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

An undefined error response.

func NewReadDerivedMetricDefault

func NewReadDerivedMetricDefault(code int) *ReadDerivedMetricDefault

NewReadDerivedMetricDefault creates a ReadDerivedMetricDefault with default headers values

func (*ReadDerivedMetricDefault) Code

func (o *ReadDerivedMetricDefault) Code() int

Code gets the status code for the read derived metric default response

func (*ReadDerivedMetricDefault) Error

func (o *ReadDerivedMetricDefault) Error() string

func (*ReadDerivedMetricDefault) GetPayload

func (*ReadDerivedMetricDefault) IsClientError

func (o *ReadDerivedMetricDefault) IsClientError() bool

IsClientError returns true when this read derived metric default response has a 4xx status code

func (*ReadDerivedMetricDefault) IsCode

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

IsCode returns true when this read derived metric default response a status code equal to that given

func (*ReadDerivedMetricDefault) IsRedirect

func (o *ReadDerivedMetricDefault) IsRedirect() bool

IsRedirect returns true when this read derived metric default response has a 3xx status code

func (*ReadDerivedMetricDefault) IsServerError

func (o *ReadDerivedMetricDefault) IsServerError() bool

IsServerError returns true when this read derived metric default response has a 5xx status code

func (*ReadDerivedMetricDefault) IsSuccess

func (o *ReadDerivedMetricDefault) IsSuccess() bool

IsSuccess returns true when this read derived metric default response has a 2xx status code

func (*ReadDerivedMetricDefault) String

func (o *ReadDerivedMetricDefault) String() string

type ReadDerivedMetricInternalServerError

type ReadDerivedMetricInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadDerivedMetricInternalServerError

func NewReadDerivedMetricInternalServerError() *ReadDerivedMetricInternalServerError

NewReadDerivedMetricInternalServerError creates a ReadDerivedMetricInternalServerError with default headers values

func (*ReadDerivedMetricInternalServerError) Code

Code gets the status code for the read derived metric internal server error response

func (*ReadDerivedMetricInternalServerError) Error

func (*ReadDerivedMetricInternalServerError) GetPayload

func (*ReadDerivedMetricInternalServerError) IsClientError

func (o *ReadDerivedMetricInternalServerError) IsClientError() bool

IsClientError returns true when this read derived metric internal server error response has a 4xx status code

func (*ReadDerivedMetricInternalServerError) IsCode

IsCode returns true when this read derived metric internal server error response a status code equal to that given

func (*ReadDerivedMetricInternalServerError) IsRedirect

IsRedirect returns true when this read derived metric internal server error response has a 3xx status code

func (*ReadDerivedMetricInternalServerError) IsServerError

func (o *ReadDerivedMetricInternalServerError) IsServerError() bool

IsServerError returns true when this read derived metric internal server error response has a 5xx status code

func (*ReadDerivedMetricInternalServerError) IsSuccess

IsSuccess returns true when this read derived metric internal server error response has a 2xx status code

func (*ReadDerivedMetricInternalServerError) String

type ReadDerivedMetricNotFound

type ReadDerivedMetricNotFound struct {
	Payload *models.APIError
}

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

Cannot read the DerivedMetric because the slug does not exist.

func NewReadDerivedMetricNotFound

func NewReadDerivedMetricNotFound() *ReadDerivedMetricNotFound

NewReadDerivedMetricNotFound creates a ReadDerivedMetricNotFound with default headers values

func (*ReadDerivedMetricNotFound) Code

func (o *ReadDerivedMetricNotFound) Code() int

Code gets the status code for the read derived metric not found response

func (*ReadDerivedMetricNotFound) Error

func (o *ReadDerivedMetricNotFound) Error() string

func (*ReadDerivedMetricNotFound) GetPayload

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

func (*ReadDerivedMetricNotFound) IsClientError

func (o *ReadDerivedMetricNotFound) IsClientError() bool

IsClientError returns true when this read derived metric not found response has a 4xx status code

func (*ReadDerivedMetricNotFound) IsCode

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

IsCode returns true when this read derived metric not found response a status code equal to that given

func (*ReadDerivedMetricNotFound) IsRedirect

func (o *ReadDerivedMetricNotFound) IsRedirect() bool

IsRedirect returns true when this read derived metric not found response has a 3xx status code

func (*ReadDerivedMetricNotFound) IsServerError

func (o *ReadDerivedMetricNotFound) IsServerError() bool

IsServerError returns true when this read derived metric not found response has a 5xx status code

func (*ReadDerivedMetricNotFound) IsSuccess

func (o *ReadDerivedMetricNotFound) IsSuccess() bool

IsSuccess returns true when this read derived metric not found response has a 2xx status code

func (*ReadDerivedMetricNotFound) String

func (o *ReadDerivedMetricNotFound) String() string

type ReadDerivedMetricOK

type ReadDerivedMetricOK struct {
	Payload *models.Configv1ReadDerivedMetricResponse
}

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

A successful response.

func NewReadDerivedMetricOK

func NewReadDerivedMetricOK() *ReadDerivedMetricOK

NewReadDerivedMetricOK creates a ReadDerivedMetricOK with default headers values

func (*ReadDerivedMetricOK) Code

func (o *ReadDerivedMetricOK) Code() int

Code gets the status code for the read derived metric o k response

func (*ReadDerivedMetricOK) Error

func (o *ReadDerivedMetricOK) Error() string

func (*ReadDerivedMetricOK) GetPayload

func (*ReadDerivedMetricOK) IsClientError

func (o *ReadDerivedMetricOK) IsClientError() bool

IsClientError returns true when this read derived metric o k response has a 4xx status code

func (*ReadDerivedMetricOK) IsCode

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

IsCode returns true when this read derived metric o k response a status code equal to that given

func (*ReadDerivedMetricOK) IsRedirect

func (o *ReadDerivedMetricOK) IsRedirect() bool

IsRedirect returns true when this read derived metric o k response has a 3xx status code

func (*ReadDerivedMetricOK) IsServerError

func (o *ReadDerivedMetricOK) IsServerError() bool

IsServerError returns true when this read derived metric o k response has a 5xx status code

func (*ReadDerivedMetricOK) IsSuccess

func (o *ReadDerivedMetricOK) IsSuccess() bool

IsSuccess returns true when this read derived metric o k response has a 2xx status code

func (*ReadDerivedMetricOK) String

func (o *ReadDerivedMetricOK) String() string

type ReadDerivedMetricParams

type ReadDerivedMetricParams struct {

	// Slug.
	Slug string

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

ReadDerivedMetricParams contains all the parameters to send to the API endpoint

for the read derived metric operation.

Typically these are written to a http.Request.

func NewReadDerivedMetricParams

func NewReadDerivedMetricParams() *ReadDerivedMetricParams

NewReadDerivedMetricParams creates a new ReadDerivedMetricParams 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 NewReadDerivedMetricParamsWithContext

func NewReadDerivedMetricParamsWithContext(ctx context.Context) *ReadDerivedMetricParams

NewReadDerivedMetricParamsWithContext creates a new ReadDerivedMetricParams object with the ability to set a context for a request.

func NewReadDerivedMetricParamsWithHTTPClient

func NewReadDerivedMetricParamsWithHTTPClient(client *http.Client) *ReadDerivedMetricParams

NewReadDerivedMetricParamsWithHTTPClient creates a new ReadDerivedMetricParams object with the ability to set a custom HTTPClient for a request.

func NewReadDerivedMetricParamsWithTimeout

func NewReadDerivedMetricParamsWithTimeout(timeout time.Duration) *ReadDerivedMetricParams

NewReadDerivedMetricParamsWithTimeout creates a new ReadDerivedMetricParams object with the ability to set a timeout on a request.

func (*ReadDerivedMetricParams) SetContext

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

SetContext adds the context to the read derived metric params

func (*ReadDerivedMetricParams) SetDefaults

func (o *ReadDerivedMetricParams) SetDefaults()

SetDefaults hydrates default values in the read derived metric params (not the query body).

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

func (*ReadDerivedMetricParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read derived metric params

func (*ReadDerivedMetricParams) SetSlug

func (o *ReadDerivedMetricParams) SetSlug(slug string)

SetSlug adds the slug to the read derived metric params

func (*ReadDerivedMetricParams) SetTimeout

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

SetTimeout adds the timeout to the read derived metric params

func (*ReadDerivedMetricParams) WithContext

WithContext adds the context to the read derived metric params

func (*ReadDerivedMetricParams) WithDefaults

WithDefaults hydrates default values in the read derived metric params (not the query body).

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

func (*ReadDerivedMetricParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read derived metric params

func (*ReadDerivedMetricParams) WithSlug

WithSlug adds the slug to the read derived metric params

func (*ReadDerivedMetricParams) WithTimeout

WithTimeout adds the timeout to the read derived metric params

func (*ReadDerivedMetricParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadDerivedMetricReader

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

ReadDerivedMetricReader is a Reader for the ReadDerivedMetric structure.

func (*ReadDerivedMetricReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDerivedMetricBadRequest

type UpdateDerivedMetricBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the DerivedMetric because the request is invalid.

func NewUpdateDerivedMetricBadRequest

func NewUpdateDerivedMetricBadRequest() *UpdateDerivedMetricBadRequest

NewUpdateDerivedMetricBadRequest creates a UpdateDerivedMetricBadRequest with default headers values

func (*UpdateDerivedMetricBadRequest) Code

Code gets the status code for the update derived metric bad request response

func (*UpdateDerivedMetricBadRequest) Error

func (*UpdateDerivedMetricBadRequest) GetPayload

func (*UpdateDerivedMetricBadRequest) IsClientError

func (o *UpdateDerivedMetricBadRequest) IsClientError() bool

IsClientError returns true when this update derived metric bad request response has a 4xx status code

func (*UpdateDerivedMetricBadRequest) IsCode

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

IsCode returns true when this update derived metric bad request response a status code equal to that given

func (*UpdateDerivedMetricBadRequest) IsRedirect

func (o *UpdateDerivedMetricBadRequest) IsRedirect() bool

IsRedirect returns true when this update derived metric bad request response has a 3xx status code

func (*UpdateDerivedMetricBadRequest) IsServerError

func (o *UpdateDerivedMetricBadRequest) IsServerError() bool

IsServerError returns true when this update derived metric bad request response has a 5xx status code

func (*UpdateDerivedMetricBadRequest) IsSuccess

func (o *UpdateDerivedMetricBadRequest) IsSuccess() bool

IsSuccess returns true when this update derived metric bad request response has a 2xx status code

func (*UpdateDerivedMetricBadRequest) String

type UpdateDerivedMetricBody

type UpdateDerivedMetricBody struct {

	// If true, the DerivedMetric will be created if it does not already exist, identified by slug. If false, an error will be returned if the DerivedMetric does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// derived metric
	DerivedMetric *models.Configv1DerivedMetric `json:"derived_metric,omitempty"`

	// If true, the DerivedMetric will not be created nor updated, and no response DerivedMetric will be returned. The response will return an error if the given DerivedMetric is invalid.
	DryRun bool `json:"dry_run,omitempty"`
}

UpdateDerivedMetricBody update derived metric body swagger:model UpdateDerivedMetricBody

func (*UpdateDerivedMetricBody) ContextValidate

func (o *UpdateDerivedMetricBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update derived metric body based on the context it is used

func (*UpdateDerivedMetricBody) MarshalBinary

func (o *UpdateDerivedMetricBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateDerivedMetricBody) UnmarshalBinary

func (o *UpdateDerivedMetricBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateDerivedMetricBody) Validate

func (o *UpdateDerivedMetricBody) Validate(formats strfmt.Registry) error

Validate validates this update derived metric body

type UpdateDerivedMetricConflict

type UpdateDerivedMetricConflict struct {
	Payload *models.APIError
}

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

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

func NewUpdateDerivedMetricConflict

func NewUpdateDerivedMetricConflict() *UpdateDerivedMetricConflict

NewUpdateDerivedMetricConflict creates a UpdateDerivedMetricConflict with default headers values

func (*UpdateDerivedMetricConflict) Code

func (o *UpdateDerivedMetricConflict) Code() int

Code gets the status code for the update derived metric conflict response

func (*UpdateDerivedMetricConflict) Error

func (*UpdateDerivedMetricConflict) GetPayload

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

func (*UpdateDerivedMetricConflict) IsClientError

func (o *UpdateDerivedMetricConflict) IsClientError() bool

IsClientError returns true when this update derived metric conflict response has a 4xx status code

func (*UpdateDerivedMetricConflict) IsCode

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

IsCode returns true when this update derived metric conflict response a status code equal to that given

func (*UpdateDerivedMetricConflict) IsRedirect

func (o *UpdateDerivedMetricConflict) IsRedirect() bool

IsRedirect returns true when this update derived metric conflict response has a 3xx status code

func (*UpdateDerivedMetricConflict) IsServerError

func (o *UpdateDerivedMetricConflict) IsServerError() bool

IsServerError returns true when this update derived metric conflict response has a 5xx status code

func (*UpdateDerivedMetricConflict) IsSuccess

func (o *UpdateDerivedMetricConflict) IsSuccess() bool

IsSuccess returns true when this update derived metric conflict response has a 2xx status code

func (*UpdateDerivedMetricConflict) String

func (o *UpdateDerivedMetricConflict) String() string

type UpdateDerivedMetricDefault

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

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

An undefined error response.

func NewUpdateDerivedMetricDefault

func NewUpdateDerivedMetricDefault(code int) *UpdateDerivedMetricDefault

NewUpdateDerivedMetricDefault creates a UpdateDerivedMetricDefault with default headers values

func (*UpdateDerivedMetricDefault) Code

func (o *UpdateDerivedMetricDefault) Code() int

Code gets the status code for the update derived metric default response

func (*UpdateDerivedMetricDefault) Error

func (*UpdateDerivedMetricDefault) GetPayload

func (*UpdateDerivedMetricDefault) IsClientError

func (o *UpdateDerivedMetricDefault) IsClientError() bool

IsClientError returns true when this update derived metric default response has a 4xx status code

func (*UpdateDerivedMetricDefault) IsCode

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

IsCode returns true when this update derived metric default response a status code equal to that given

func (*UpdateDerivedMetricDefault) IsRedirect

func (o *UpdateDerivedMetricDefault) IsRedirect() bool

IsRedirect returns true when this update derived metric default response has a 3xx status code

func (*UpdateDerivedMetricDefault) IsServerError

func (o *UpdateDerivedMetricDefault) IsServerError() bool

IsServerError returns true when this update derived metric default response has a 5xx status code

func (*UpdateDerivedMetricDefault) IsSuccess

func (o *UpdateDerivedMetricDefault) IsSuccess() bool

IsSuccess returns true when this update derived metric default response has a 2xx status code

func (*UpdateDerivedMetricDefault) String

func (o *UpdateDerivedMetricDefault) String() string

type UpdateDerivedMetricInternalServerError

type UpdateDerivedMetricInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateDerivedMetricInternalServerError

func NewUpdateDerivedMetricInternalServerError() *UpdateDerivedMetricInternalServerError

NewUpdateDerivedMetricInternalServerError creates a UpdateDerivedMetricInternalServerError with default headers values

func (*UpdateDerivedMetricInternalServerError) Code

Code gets the status code for the update derived metric internal server error response

func (*UpdateDerivedMetricInternalServerError) Error

func (*UpdateDerivedMetricInternalServerError) GetPayload

func (*UpdateDerivedMetricInternalServerError) IsClientError

func (o *UpdateDerivedMetricInternalServerError) IsClientError() bool

IsClientError returns true when this update derived metric internal server error response has a 4xx status code

func (*UpdateDerivedMetricInternalServerError) IsCode

IsCode returns true when this update derived metric internal server error response a status code equal to that given

func (*UpdateDerivedMetricInternalServerError) IsRedirect

IsRedirect returns true when this update derived metric internal server error response has a 3xx status code

func (*UpdateDerivedMetricInternalServerError) IsServerError

func (o *UpdateDerivedMetricInternalServerError) IsServerError() bool

IsServerError returns true when this update derived metric internal server error response has a 5xx status code

func (*UpdateDerivedMetricInternalServerError) IsSuccess

IsSuccess returns true when this update derived metric internal server error response has a 2xx status code

func (*UpdateDerivedMetricInternalServerError) String

type UpdateDerivedMetricNotFound

type UpdateDerivedMetricNotFound struct {
	Payload *models.APIError
}

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

Cannot update the DerivedMetric because the slug does not exist.

func NewUpdateDerivedMetricNotFound

func NewUpdateDerivedMetricNotFound() *UpdateDerivedMetricNotFound

NewUpdateDerivedMetricNotFound creates a UpdateDerivedMetricNotFound with default headers values

func (*UpdateDerivedMetricNotFound) Code

func (o *UpdateDerivedMetricNotFound) Code() int

Code gets the status code for the update derived metric not found response

func (*UpdateDerivedMetricNotFound) Error

func (*UpdateDerivedMetricNotFound) GetPayload

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

func (*UpdateDerivedMetricNotFound) IsClientError

func (o *UpdateDerivedMetricNotFound) IsClientError() bool

IsClientError returns true when this update derived metric not found response has a 4xx status code

func (*UpdateDerivedMetricNotFound) IsCode

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

IsCode returns true when this update derived metric not found response a status code equal to that given

func (*UpdateDerivedMetricNotFound) IsRedirect

func (o *UpdateDerivedMetricNotFound) IsRedirect() bool

IsRedirect returns true when this update derived metric not found response has a 3xx status code

func (*UpdateDerivedMetricNotFound) IsServerError

func (o *UpdateDerivedMetricNotFound) IsServerError() bool

IsServerError returns true when this update derived metric not found response has a 5xx status code

func (*UpdateDerivedMetricNotFound) IsSuccess

func (o *UpdateDerivedMetricNotFound) IsSuccess() bool

IsSuccess returns true when this update derived metric not found response has a 2xx status code

func (*UpdateDerivedMetricNotFound) String

func (o *UpdateDerivedMetricNotFound) String() string

type UpdateDerivedMetricOK

type UpdateDerivedMetricOK struct {
	Payload *models.Configv1UpdateDerivedMetricResponse
}

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

A successful response containing the updated DerivedMetric.

func NewUpdateDerivedMetricOK

func NewUpdateDerivedMetricOK() *UpdateDerivedMetricOK

NewUpdateDerivedMetricOK creates a UpdateDerivedMetricOK with default headers values

func (*UpdateDerivedMetricOK) Code

func (o *UpdateDerivedMetricOK) Code() int

Code gets the status code for the update derived metric o k response

func (*UpdateDerivedMetricOK) Error

func (o *UpdateDerivedMetricOK) Error() string

func (*UpdateDerivedMetricOK) GetPayload

func (*UpdateDerivedMetricOK) IsClientError

func (o *UpdateDerivedMetricOK) IsClientError() bool

IsClientError returns true when this update derived metric o k response has a 4xx status code

func (*UpdateDerivedMetricOK) IsCode

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

IsCode returns true when this update derived metric o k response a status code equal to that given

func (*UpdateDerivedMetricOK) IsRedirect

func (o *UpdateDerivedMetricOK) IsRedirect() bool

IsRedirect returns true when this update derived metric o k response has a 3xx status code

func (*UpdateDerivedMetricOK) IsServerError

func (o *UpdateDerivedMetricOK) IsServerError() bool

IsServerError returns true when this update derived metric o k response has a 5xx status code

func (*UpdateDerivedMetricOK) IsSuccess

func (o *UpdateDerivedMetricOK) IsSuccess() bool

IsSuccess returns true when this update derived metric o k response has a 2xx status code

func (*UpdateDerivedMetricOK) String

func (o *UpdateDerivedMetricOK) String() string

type UpdateDerivedMetricParams

type UpdateDerivedMetricParams struct {

	// Body.
	Body UpdateDerivedMetricBody

	// Slug.
	Slug string

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

UpdateDerivedMetricParams contains all the parameters to send to the API endpoint

for the update derived metric operation.

Typically these are written to a http.Request.

func NewUpdateDerivedMetricParams

func NewUpdateDerivedMetricParams() *UpdateDerivedMetricParams

NewUpdateDerivedMetricParams creates a new UpdateDerivedMetricParams 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 NewUpdateDerivedMetricParamsWithContext

func NewUpdateDerivedMetricParamsWithContext(ctx context.Context) *UpdateDerivedMetricParams

NewUpdateDerivedMetricParamsWithContext creates a new UpdateDerivedMetricParams object with the ability to set a context for a request.

func NewUpdateDerivedMetricParamsWithHTTPClient

func NewUpdateDerivedMetricParamsWithHTTPClient(client *http.Client) *UpdateDerivedMetricParams

NewUpdateDerivedMetricParamsWithHTTPClient creates a new UpdateDerivedMetricParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateDerivedMetricParamsWithTimeout

func NewUpdateDerivedMetricParamsWithTimeout(timeout time.Duration) *UpdateDerivedMetricParams

NewUpdateDerivedMetricParamsWithTimeout creates a new UpdateDerivedMetricParams object with the ability to set a timeout on a request.

func (*UpdateDerivedMetricParams) SetBody

SetBody adds the body to the update derived metric params

func (*UpdateDerivedMetricParams) SetContext

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

SetContext adds the context to the update derived metric params

func (*UpdateDerivedMetricParams) SetDefaults

func (o *UpdateDerivedMetricParams) SetDefaults()

SetDefaults hydrates default values in the update derived metric params (not the query body).

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

func (*UpdateDerivedMetricParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update derived metric params

func (*UpdateDerivedMetricParams) SetSlug

func (o *UpdateDerivedMetricParams) SetSlug(slug string)

SetSlug adds the slug to the update derived metric params

func (*UpdateDerivedMetricParams) SetTimeout

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

SetTimeout adds the timeout to the update derived metric params

func (*UpdateDerivedMetricParams) WithBody

WithBody adds the body to the update derived metric params

func (*UpdateDerivedMetricParams) WithContext

WithContext adds the context to the update derived metric params

func (*UpdateDerivedMetricParams) WithDefaults

WithDefaults hydrates default values in the update derived metric params (not the query body).

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

func (*UpdateDerivedMetricParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update derived metric params

func (*UpdateDerivedMetricParams) WithSlug

WithSlug adds the slug to the update derived metric params

func (*UpdateDerivedMetricParams) WithTimeout

WithTimeout adds the timeout to the update derived metric params

func (*UpdateDerivedMetricParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDerivedMetricReader

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

UpdateDerivedMetricReader is a Reader for the UpdateDerivedMetric structure.

func (*UpdateDerivedMetricReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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