Documentation
¶
Index ¶
- type Client
- func (a *Client) QueryMetricsWithExpressions(body *models.MetricRequest, opts ...ClientOption) (*QueryMetricsWithExpressionsOK, *QueryMetricsWithExpressionsMultiStatus, error)
- func (a *Client) QueryMetricsWithExpressionsWithParams(params *QueryMetricsWithExpressionsParams, opts ...ClientOption) (*QueryMetricsWithExpressionsOK, *QueryMetricsWithExpressionsMultiStatus, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type QueryMetricsWithExpressionsBadRequest
- func (o *QueryMetricsWithExpressionsBadRequest) Code() int
- func (o *QueryMetricsWithExpressionsBadRequest) Error() string
- func (o *QueryMetricsWithExpressionsBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *QueryMetricsWithExpressionsBadRequest) IsClientError() bool
- func (o *QueryMetricsWithExpressionsBadRequest) IsCode(code int) bool
- func (o *QueryMetricsWithExpressionsBadRequest) IsRedirect() bool
- func (o *QueryMetricsWithExpressionsBadRequest) IsServerError() bool
- func (o *QueryMetricsWithExpressionsBadRequest) IsSuccess() bool
- func (o *QueryMetricsWithExpressionsBadRequest) String() string
- type QueryMetricsWithExpressionsForbidden
- func (o *QueryMetricsWithExpressionsForbidden) Code() int
- func (o *QueryMetricsWithExpressionsForbidden) Error() string
- func (o *QueryMetricsWithExpressionsForbidden) GetPayload() *models.ErrorResponseBody
- func (o *QueryMetricsWithExpressionsForbidden) IsClientError() bool
- func (o *QueryMetricsWithExpressionsForbidden) IsCode(code int) bool
- func (o *QueryMetricsWithExpressionsForbidden) IsRedirect() bool
- func (o *QueryMetricsWithExpressionsForbidden) IsServerError() bool
- func (o *QueryMetricsWithExpressionsForbidden) IsSuccess() bool
- func (o *QueryMetricsWithExpressionsForbidden) String() string
- type QueryMetricsWithExpressionsInternalServerError
- func (o *QueryMetricsWithExpressionsInternalServerError) Code() int
- func (o *QueryMetricsWithExpressionsInternalServerError) Error() string
- func (o *QueryMetricsWithExpressionsInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *QueryMetricsWithExpressionsInternalServerError) IsClientError() bool
- func (o *QueryMetricsWithExpressionsInternalServerError) IsCode(code int) bool
- func (o *QueryMetricsWithExpressionsInternalServerError) IsRedirect() bool
- func (o *QueryMetricsWithExpressionsInternalServerError) IsServerError() bool
- func (o *QueryMetricsWithExpressionsInternalServerError) IsSuccess() bool
- func (o *QueryMetricsWithExpressionsInternalServerError) String() string
- type QueryMetricsWithExpressionsMultiStatus
- func (o *QueryMetricsWithExpressionsMultiStatus) Code() int
- func (o *QueryMetricsWithExpressionsMultiStatus) Error() string
- func (o *QueryMetricsWithExpressionsMultiStatus) GetPayload() *models.QueryDataResponse
- func (o *QueryMetricsWithExpressionsMultiStatus) IsClientError() bool
- func (o *QueryMetricsWithExpressionsMultiStatus) IsCode(code int) bool
- func (o *QueryMetricsWithExpressionsMultiStatus) IsRedirect() bool
- func (o *QueryMetricsWithExpressionsMultiStatus) IsServerError() bool
- func (o *QueryMetricsWithExpressionsMultiStatus) IsSuccess() bool
- func (o *QueryMetricsWithExpressionsMultiStatus) String() string
- type QueryMetricsWithExpressionsOK
- func (o *QueryMetricsWithExpressionsOK) Code() int
- func (o *QueryMetricsWithExpressionsOK) Error() string
- func (o *QueryMetricsWithExpressionsOK) GetPayload() *models.QueryDataResponse
- func (o *QueryMetricsWithExpressionsOK) IsClientError() bool
- func (o *QueryMetricsWithExpressionsOK) IsCode(code int) bool
- func (o *QueryMetricsWithExpressionsOK) IsRedirect() bool
- func (o *QueryMetricsWithExpressionsOK) IsServerError() bool
- func (o *QueryMetricsWithExpressionsOK) IsSuccess() bool
- func (o *QueryMetricsWithExpressionsOK) String() string
- type QueryMetricsWithExpressionsParams
- func NewQueryMetricsWithExpressionsParams() *QueryMetricsWithExpressionsParams
- func NewQueryMetricsWithExpressionsParamsWithContext(ctx context.Context) *QueryMetricsWithExpressionsParams
- func NewQueryMetricsWithExpressionsParamsWithHTTPClient(client *http.Client) *QueryMetricsWithExpressionsParams
- func NewQueryMetricsWithExpressionsParamsWithTimeout(timeout time.Duration) *QueryMetricsWithExpressionsParams
- func (o *QueryMetricsWithExpressionsParams) SetBody(body *models.MetricRequest)
- func (o *QueryMetricsWithExpressionsParams) SetContext(ctx context.Context)
- func (o *QueryMetricsWithExpressionsParams) SetDefaults()
- func (o *QueryMetricsWithExpressionsParams) SetHTTPClient(client *http.Client)
- func (o *QueryMetricsWithExpressionsParams) SetTimeout(timeout time.Duration)
- func (o *QueryMetricsWithExpressionsParams) WithBody(body *models.MetricRequest) *QueryMetricsWithExpressionsParams
- func (o *QueryMetricsWithExpressionsParams) WithContext(ctx context.Context) *QueryMetricsWithExpressionsParams
- func (o *QueryMetricsWithExpressionsParams) WithDefaults() *QueryMetricsWithExpressionsParams
- func (o *QueryMetricsWithExpressionsParams) WithHTTPClient(client *http.Client) *QueryMetricsWithExpressionsParams
- func (o *QueryMetricsWithExpressionsParams) WithTimeout(timeout time.Duration) *QueryMetricsWithExpressionsParams
- func (o *QueryMetricsWithExpressionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryMetricsWithExpressionsReader
- type QueryMetricsWithExpressionsUnauthorized
- func (o *QueryMetricsWithExpressionsUnauthorized) Code() int
- func (o *QueryMetricsWithExpressionsUnauthorized) Error() string
- func (o *QueryMetricsWithExpressionsUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *QueryMetricsWithExpressionsUnauthorized) IsClientError() bool
- func (o *QueryMetricsWithExpressionsUnauthorized) IsCode(code int) bool
- func (o *QueryMetricsWithExpressionsUnauthorized) IsRedirect() bool
- func (o *QueryMetricsWithExpressionsUnauthorized) IsServerError() bool
- func (o *QueryMetricsWithExpressionsUnauthorized) IsSuccess() bool
- func (o *QueryMetricsWithExpressionsUnauthorized) String() string
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 ds API
func (*Client) QueryMetricsWithExpressions ¶
func (a *Client) QueryMetricsWithExpressions(body *models.MetricRequest, opts ...ClientOption) (*QueryMetricsWithExpressionsOK, *QueryMetricsWithExpressionsMultiStatus, error)
QueryMetricsWithExpressions data source query metrics with expressions
If you are running Grafana Enterprise and have Fine-grained access control enabled you need to have a permission with action: `datasources:query`.
func (*Client) QueryMetricsWithExpressionsWithParams ¶
func (a *Client) QueryMetricsWithExpressionsWithParams(params *QueryMetricsWithExpressionsParams, opts ...ClientOption) (*QueryMetricsWithExpressionsOK, *QueryMetricsWithExpressionsMultiStatus, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
func WithAuthInfo ¶
func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption
WithAuthInfo changes the transport on the client
type ClientService ¶
type ClientService interface { QueryMetricsWithExpressions(body *models.MetricRequest, opts ...ClientOption) (*QueryMetricsWithExpressionsOK, *QueryMetricsWithExpressionsMultiStatus, error) QueryMetricsWithExpressionsWithParams(params *QueryMetricsWithExpressionsParams, opts ...ClientOption) (*QueryMetricsWithExpressionsOK, *QueryMetricsWithExpressionsMultiStatus, 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 ds API client.
type QueryMetricsWithExpressionsBadRequest ¶
type QueryMetricsWithExpressionsBadRequest struct {
Payload *models.ErrorResponseBody
}
QueryMetricsWithExpressionsBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewQueryMetricsWithExpressionsBadRequest ¶
func NewQueryMetricsWithExpressionsBadRequest() *QueryMetricsWithExpressionsBadRequest
NewQueryMetricsWithExpressionsBadRequest creates a QueryMetricsWithExpressionsBadRequest with default headers values
func (*QueryMetricsWithExpressionsBadRequest) Code ¶
func (o *QueryMetricsWithExpressionsBadRequest) Code() int
Code gets the status code for the query metrics with expressions bad request response
func (*QueryMetricsWithExpressionsBadRequest) Error ¶
func (o *QueryMetricsWithExpressionsBadRequest) Error() string
func (*QueryMetricsWithExpressionsBadRequest) GetPayload ¶
func (o *QueryMetricsWithExpressionsBadRequest) GetPayload() *models.ErrorResponseBody
func (*QueryMetricsWithExpressionsBadRequest) IsClientError ¶
func (o *QueryMetricsWithExpressionsBadRequest) IsClientError() bool
IsClientError returns true when this query metrics with expressions bad request response has a 4xx status code
func (*QueryMetricsWithExpressionsBadRequest) IsCode ¶
func (o *QueryMetricsWithExpressionsBadRequest) IsCode(code int) bool
IsCode returns true when this query metrics with expressions bad request response a status code equal to that given
func (*QueryMetricsWithExpressionsBadRequest) IsRedirect ¶
func (o *QueryMetricsWithExpressionsBadRequest) IsRedirect() bool
IsRedirect returns true when this query metrics with expressions bad request response has a 3xx status code
func (*QueryMetricsWithExpressionsBadRequest) IsServerError ¶
func (o *QueryMetricsWithExpressionsBadRequest) IsServerError() bool
IsServerError returns true when this query metrics with expressions bad request response has a 5xx status code
func (*QueryMetricsWithExpressionsBadRequest) IsSuccess ¶
func (o *QueryMetricsWithExpressionsBadRequest) IsSuccess() bool
IsSuccess returns true when this query metrics with expressions bad request response has a 2xx status code
func (*QueryMetricsWithExpressionsBadRequest) String ¶
func (o *QueryMetricsWithExpressionsBadRequest) String() string
type QueryMetricsWithExpressionsForbidden ¶
type QueryMetricsWithExpressionsForbidden struct {
Payload *models.ErrorResponseBody
}
QueryMetricsWithExpressionsForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewQueryMetricsWithExpressionsForbidden ¶
func NewQueryMetricsWithExpressionsForbidden() *QueryMetricsWithExpressionsForbidden
NewQueryMetricsWithExpressionsForbidden creates a QueryMetricsWithExpressionsForbidden with default headers values
func (*QueryMetricsWithExpressionsForbidden) Code ¶
func (o *QueryMetricsWithExpressionsForbidden) Code() int
Code gets the status code for the query metrics with expressions forbidden response
func (*QueryMetricsWithExpressionsForbidden) Error ¶
func (o *QueryMetricsWithExpressionsForbidden) Error() string
func (*QueryMetricsWithExpressionsForbidden) GetPayload ¶
func (o *QueryMetricsWithExpressionsForbidden) GetPayload() *models.ErrorResponseBody
func (*QueryMetricsWithExpressionsForbidden) IsClientError ¶
func (o *QueryMetricsWithExpressionsForbidden) IsClientError() bool
IsClientError returns true when this query metrics with expressions forbidden response has a 4xx status code
func (*QueryMetricsWithExpressionsForbidden) IsCode ¶
func (o *QueryMetricsWithExpressionsForbidden) IsCode(code int) bool
IsCode returns true when this query metrics with expressions forbidden response a status code equal to that given
func (*QueryMetricsWithExpressionsForbidden) IsRedirect ¶
func (o *QueryMetricsWithExpressionsForbidden) IsRedirect() bool
IsRedirect returns true when this query metrics with expressions forbidden response has a 3xx status code
func (*QueryMetricsWithExpressionsForbidden) IsServerError ¶
func (o *QueryMetricsWithExpressionsForbidden) IsServerError() bool
IsServerError returns true when this query metrics with expressions forbidden response has a 5xx status code
func (*QueryMetricsWithExpressionsForbidden) IsSuccess ¶
func (o *QueryMetricsWithExpressionsForbidden) IsSuccess() bool
IsSuccess returns true when this query metrics with expressions forbidden response has a 2xx status code
func (*QueryMetricsWithExpressionsForbidden) String ¶
func (o *QueryMetricsWithExpressionsForbidden) String() string
type QueryMetricsWithExpressionsInternalServerError ¶
type QueryMetricsWithExpressionsInternalServerError struct {
Payload *models.ErrorResponseBody
}
QueryMetricsWithExpressionsInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewQueryMetricsWithExpressionsInternalServerError ¶
func NewQueryMetricsWithExpressionsInternalServerError() *QueryMetricsWithExpressionsInternalServerError
NewQueryMetricsWithExpressionsInternalServerError creates a QueryMetricsWithExpressionsInternalServerError with default headers values
func (*QueryMetricsWithExpressionsInternalServerError) Code ¶
func (o *QueryMetricsWithExpressionsInternalServerError) Code() int
Code gets the status code for the query metrics with expressions internal server error response
func (*QueryMetricsWithExpressionsInternalServerError) Error ¶
func (o *QueryMetricsWithExpressionsInternalServerError) Error() string
func (*QueryMetricsWithExpressionsInternalServerError) GetPayload ¶
func (o *QueryMetricsWithExpressionsInternalServerError) GetPayload() *models.ErrorResponseBody
func (*QueryMetricsWithExpressionsInternalServerError) IsClientError ¶
func (o *QueryMetricsWithExpressionsInternalServerError) IsClientError() bool
IsClientError returns true when this query metrics with expressions internal server error response has a 4xx status code
func (*QueryMetricsWithExpressionsInternalServerError) IsCode ¶
func (o *QueryMetricsWithExpressionsInternalServerError) IsCode(code int) bool
IsCode returns true when this query metrics with expressions internal server error response a status code equal to that given
func (*QueryMetricsWithExpressionsInternalServerError) IsRedirect ¶
func (o *QueryMetricsWithExpressionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this query metrics with expressions internal server error response has a 3xx status code
func (*QueryMetricsWithExpressionsInternalServerError) IsServerError ¶
func (o *QueryMetricsWithExpressionsInternalServerError) IsServerError() bool
IsServerError returns true when this query metrics with expressions internal server error response has a 5xx status code
func (*QueryMetricsWithExpressionsInternalServerError) IsSuccess ¶
func (o *QueryMetricsWithExpressionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this query metrics with expressions internal server error response has a 2xx status code
func (*QueryMetricsWithExpressionsInternalServerError) String ¶
func (o *QueryMetricsWithExpressionsInternalServerError) String() string
type QueryMetricsWithExpressionsMultiStatus ¶
type QueryMetricsWithExpressionsMultiStatus struct {
Payload *models.QueryDataResponse
}
QueryMetricsWithExpressionsMultiStatus describes a response with status code 207, with default header values.
(empty)
func NewQueryMetricsWithExpressionsMultiStatus ¶
func NewQueryMetricsWithExpressionsMultiStatus() *QueryMetricsWithExpressionsMultiStatus
NewQueryMetricsWithExpressionsMultiStatus creates a QueryMetricsWithExpressionsMultiStatus with default headers values
func (*QueryMetricsWithExpressionsMultiStatus) Code ¶
func (o *QueryMetricsWithExpressionsMultiStatus) Code() int
Code gets the status code for the query metrics with expressions multi status response
func (*QueryMetricsWithExpressionsMultiStatus) Error ¶
func (o *QueryMetricsWithExpressionsMultiStatus) Error() string
func (*QueryMetricsWithExpressionsMultiStatus) GetPayload ¶
func (o *QueryMetricsWithExpressionsMultiStatus) GetPayload() *models.QueryDataResponse
func (*QueryMetricsWithExpressionsMultiStatus) IsClientError ¶
func (o *QueryMetricsWithExpressionsMultiStatus) IsClientError() bool
IsClientError returns true when this query metrics with expressions multi status response has a 4xx status code
func (*QueryMetricsWithExpressionsMultiStatus) IsCode ¶
func (o *QueryMetricsWithExpressionsMultiStatus) IsCode(code int) bool
IsCode returns true when this query metrics with expressions multi status response a status code equal to that given
func (*QueryMetricsWithExpressionsMultiStatus) IsRedirect ¶
func (o *QueryMetricsWithExpressionsMultiStatus) IsRedirect() bool
IsRedirect returns true when this query metrics with expressions multi status response has a 3xx status code
func (*QueryMetricsWithExpressionsMultiStatus) IsServerError ¶
func (o *QueryMetricsWithExpressionsMultiStatus) IsServerError() bool
IsServerError returns true when this query metrics with expressions multi status response has a 5xx status code
func (*QueryMetricsWithExpressionsMultiStatus) IsSuccess ¶
func (o *QueryMetricsWithExpressionsMultiStatus) IsSuccess() bool
IsSuccess returns true when this query metrics with expressions multi status response has a 2xx status code
func (*QueryMetricsWithExpressionsMultiStatus) String ¶
func (o *QueryMetricsWithExpressionsMultiStatus) String() string
type QueryMetricsWithExpressionsOK ¶
type QueryMetricsWithExpressionsOK struct {
Payload *models.QueryDataResponse
}
QueryMetricsWithExpressionsOK describes a response with status code 200, with default header values.
(empty)
func NewQueryMetricsWithExpressionsOK ¶
func NewQueryMetricsWithExpressionsOK() *QueryMetricsWithExpressionsOK
NewQueryMetricsWithExpressionsOK creates a QueryMetricsWithExpressionsOK with default headers values
func (*QueryMetricsWithExpressionsOK) Code ¶
func (o *QueryMetricsWithExpressionsOK) Code() int
Code gets the status code for the query metrics with expressions Ok response
func (*QueryMetricsWithExpressionsOK) Error ¶
func (o *QueryMetricsWithExpressionsOK) Error() string
func (*QueryMetricsWithExpressionsOK) GetPayload ¶
func (o *QueryMetricsWithExpressionsOK) GetPayload() *models.QueryDataResponse
func (*QueryMetricsWithExpressionsOK) IsClientError ¶
func (o *QueryMetricsWithExpressionsOK) IsClientError() bool
IsClientError returns true when this query metrics with expressions Ok response has a 4xx status code
func (*QueryMetricsWithExpressionsOK) IsCode ¶
func (o *QueryMetricsWithExpressionsOK) IsCode(code int) bool
IsCode returns true when this query metrics with expressions Ok response a status code equal to that given
func (*QueryMetricsWithExpressionsOK) IsRedirect ¶
func (o *QueryMetricsWithExpressionsOK) IsRedirect() bool
IsRedirect returns true when this query metrics with expressions Ok response has a 3xx status code
func (*QueryMetricsWithExpressionsOK) IsServerError ¶
func (o *QueryMetricsWithExpressionsOK) IsServerError() bool
IsServerError returns true when this query metrics with expressions Ok response has a 5xx status code
func (*QueryMetricsWithExpressionsOK) IsSuccess ¶
func (o *QueryMetricsWithExpressionsOK) IsSuccess() bool
IsSuccess returns true when this query metrics with expressions Ok response has a 2xx status code
func (*QueryMetricsWithExpressionsOK) String ¶
func (o *QueryMetricsWithExpressionsOK) String() string
type QueryMetricsWithExpressionsParams ¶
type QueryMetricsWithExpressionsParams struct { // Body. Body *models.MetricRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QueryMetricsWithExpressionsParams contains all the parameters to send to the API endpoint
for the query metrics with expressions operation. Typically these are written to a http.Request.
func NewQueryMetricsWithExpressionsParams ¶
func NewQueryMetricsWithExpressionsParams() *QueryMetricsWithExpressionsParams
NewQueryMetricsWithExpressionsParams creates a new QueryMetricsWithExpressionsParams 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 NewQueryMetricsWithExpressionsParamsWithContext ¶
func NewQueryMetricsWithExpressionsParamsWithContext(ctx context.Context) *QueryMetricsWithExpressionsParams
NewQueryMetricsWithExpressionsParamsWithContext creates a new QueryMetricsWithExpressionsParams object with the ability to set a context for a request.
func NewQueryMetricsWithExpressionsParamsWithHTTPClient ¶
func NewQueryMetricsWithExpressionsParamsWithHTTPClient(client *http.Client) *QueryMetricsWithExpressionsParams
NewQueryMetricsWithExpressionsParamsWithHTTPClient creates a new QueryMetricsWithExpressionsParams object with the ability to set a custom HTTPClient for a request.
func NewQueryMetricsWithExpressionsParamsWithTimeout ¶
func NewQueryMetricsWithExpressionsParamsWithTimeout(timeout time.Duration) *QueryMetricsWithExpressionsParams
NewQueryMetricsWithExpressionsParamsWithTimeout creates a new QueryMetricsWithExpressionsParams object with the ability to set a timeout on a request.
func (*QueryMetricsWithExpressionsParams) SetBody ¶
func (o *QueryMetricsWithExpressionsParams) SetBody(body *models.MetricRequest)
SetBody adds the body to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) SetContext ¶
func (o *QueryMetricsWithExpressionsParams) SetContext(ctx context.Context)
SetContext adds the context to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) SetDefaults ¶
func (o *QueryMetricsWithExpressionsParams) SetDefaults()
SetDefaults hydrates default values in the query metrics with expressions params (not the query body).
All values with no default are reset to their zero value.
func (*QueryMetricsWithExpressionsParams) SetHTTPClient ¶
func (o *QueryMetricsWithExpressionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) SetTimeout ¶
func (o *QueryMetricsWithExpressionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) WithBody ¶
func (o *QueryMetricsWithExpressionsParams) WithBody(body *models.MetricRequest) *QueryMetricsWithExpressionsParams
WithBody adds the body to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) WithContext ¶
func (o *QueryMetricsWithExpressionsParams) WithContext(ctx context.Context) *QueryMetricsWithExpressionsParams
WithContext adds the context to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) WithDefaults ¶
func (o *QueryMetricsWithExpressionsParams) WithDefaults() *QueryMetricsWithExpressionsParams
WithDefaults hydrates default values in the query metrics with expressions params (not the query body).
All values with no default are reset to their zero value.
func (*QueryMetricsWithExpressionsParams) WithHTTPClient ¶
func (o *QueryMetricsWithExpressionsParams) WithHTTPClient(client *http.Client) *QueryMetricsWithExpressionsParams
WithHTTPClient adds the HTTPClient to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) WithTimeout ¶
func (o *QueryMetricsWithExpressionsParams) WithTimeout(timeout time.Duration) *QueryMetricsWithExpressionsParams
WithTimeout adds the timeout to the query metrics with expressions params
func (*QueryMetricsWithExpressionsParams) WriteToRequest ¶
func (o *QueryMetricsWithExpressionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QueryMetricsWithExpressionsReader ¶
type QueryMetricsWithExpressionsReader struct {
// contains filtered or unexported fields
}
QueryMetricsWithExpressionsReader is a Reader for the QueryMetricsWithExpressions structure.
func (*QueryMetricsWithExpressionsReader) ReadResponse ¶
func (o *QueryMetricsWithExpressionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QueryMetricsWithExpressionsUnauthorized ¶
type QueryMetricsWithExpressionsUnauthorized struct {
}QueryMetricsWithExpressionsUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewQueryMetricsWithExpressionsUnauthorized ¶
func NewQueryMetricsWithExpressionsUnauthorized() *QueryMetricsWithExpressionsUnauthorized
NewQueryMetricsWithExpressionsUnauthorized creates a QueryMetricsWithExpressionsUnauthorized with default headers values
func (*QueryMetricsWithExpressionsUnauthorized) Code ¶
func (o *QueryMetricsWithExpressionsUnauthorized) Code() int
Code gets the status code for the query metrics with expressions unauthorized response
func (*QueryMetricsWithExpressionsUnauthorized) Error ¶
func (o *QueryMetricsWithExpressionsUnauthorized) Error() string
func (*QueryMetricsWithExpressionsUnauthorized) GetPayload ¶
func (o *QueryMetricsWithExpressionsUnauthorized) GetPayload() *models.ErrorResponseBody
func (*QueryMetricsWithExpressionsUnauthorized) IsClientError ¶
func (o *QueryMetricsWithExpressionsUnauthorized) IsClientError() bool
IsClientError returns true when this query metrics with expressions unauthorized response has a 4xx status code
func (*QueryMetricsWithExpressionsUnauthorized) IsCode ¶
func (o *QueryMetricsWithExpressionsUnauthorized) IsCode(code int) bool
IsCode returns true when this query metrics with expressions unauthorized response a status code equal to that given
func (*QueryMetricsWithExpressionsUnauthorized) IsRedirect ¶
func (o *QueryMetricsWithExpressionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this query metrics with expressions unauthorized response has a 3xx status code
func (*QueryMetricsWithExpressionsUnauthorized) IsServerError ¶
func (o *QueryMetricsWithExpressionsUnauthorized) IsServerError() bool
IsServerError returns true when this query metrics with expressions unauthorized response has a 5xx status code
func (*QueryMetricsWithExpressionsUnauthorized) IsSuccess ¶
func (o *QueryMetricsWithExpressionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this query metrics with expressions unauthorized response has a 2xx status code
func (*QueryMetricsWithExpressionsUnauthorized) String ¶
func (o *QueryMetricsWithExpressionsUnauthorized) String() string