Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type QueryMetricsWithExpressionsBadRequest
- type QueryMetricsWithExpressionsForbidden
- type QueryMetricsWithExpressionsInternalServerError
- type QueryMetricsWithExpressionsMultiStatus
- type QueryMetricsWithExpressionsOK
- 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
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(params *QueryMetricsWithExpressionsParams, authInfo runtime.ClientAuthInfoWriter, 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) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { QueryMetricsWithExpressions(params *QueryMetricsWithExpressionsParams, authInfo runtime.ClientAuthInfoWriter, 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) Error ¶
func (o *QueryMetricsWithExpressionsBadRequest) Error() string
func (*QueryMetricsWithExpressionsBadRequest) GetPayload ¶
func (o *QueryMetricsWithExpressionsBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *QueryMetricsWithExpressionsForbidden) Error() string
func (*QueryMetricsWithExpressionsForbidden) GetPayload ¶
func (o *QueryMetricsWithExpressionsForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *QueryMetricsWithExpressionsInternalServerError) Error() string
func (*QueryMetricsWithExpressionsInternalServerError) GetPayload ¶
func (o *QueryMetricsWithExpressionsInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *QueryMetricsWithExpressionsMultiStatus) Error() string
func (*QueryMetricsWithExpressionsMultiStatus) GetPayload ¶
func (o *QueryMetricsWithExpressionsMultiStatus) GetPayload() *models.QueryDataResponse
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) Error ¶
func (o *QueryMetricsWithExpressionsOK) Error() string
func (*QueryMetricsWithExpressionsOK) GetPayload ¶
func (o *QueryMetricsWithExpressionsOK) GetPayload() *models.QueryDataResponse
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) Error ¶
func (o *QueryMetricsWithExpressionsUnauthorized) Error() string
func (*QueryMetricsWithExpressionsUnauthorized) GetPayload ¶
func (o *QueryMetricsWithExpressionsUnauthorized) GetPayload() *models.ErrorResponseBody