Documentation
¶
Index ¶
- Constants
- type Client
- func (a *Client) GetLabels(params *GetLabelsParams) (*GetLabelsOK, error)
- func (a *Client) GetMetrics(params *GetMetricsParams) (*GetMetricsOK, error)
- func (a *Client) GetQueryExample(params *GetQueryExampleParams) (*GetQueryExampleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DetailsItems0
- type GetLabelsBody
- type GetLabelsDefault
- type GetLabelsDefaultBody
- type GetLabelsOK
- type GetLabelsOKBody
- type GetLabelsParams
- func (o *GetLabelsParams) SetBody(body GetLabelsBody)
- func (o *GetLabelsParams) SetContext(ctx context.Context)
- func (o *GetLabelsParams) SetHTTPClient(client *http.Client)
- func (o *GetLabelsParams) SetTimeout(timeout time.Duration)
- func (o *GetLabelsParams) WithBody(body GetLabelsBody) *GetLabelsParams
- func (o *GetLabelsParams) WithContext(ctx context.Context) *GetLabelsParams
- func (o *GetLabelsParams) WithHTTPClient(client *http.Client) *GetLabelsParams
- func (o *GetLabelsParams) WithTimeout(timeout time.Duration) *GetLabelsParams
- func (o *GetLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLabelsReader
- type GetMetricsBody
- type GetMetricsDefault
- type GetMetricsDefaultBody
- type GetMetricsOK
- type GetMetricsOKBody
- type GetMetricsParams
- func (o *GetMetricsParams) SetBody(body GetMetricsBody)
- func (o *GetMetricsParams) SetContext(ctx context.Context)
- func (o *GetMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetMetricsParams) WithBody(body GetMetricsBody) *GetMetricsParams
- func (o *GetMetricsParams) WithContext(ctx context.Context) *GetMetricsParams
- func (o *GetMetricsParams) WithHTTPClient(client *http.Client) *GetMetricsParams
- func (o *GetMetricsParams) WithTimeout(timeout time.Duration) *GetMetricsParams
- func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMetricsReader
- type GetQueryExampleBody
- type GetQueryExampleDefault
- type GetQueryExampleDefaultBody
- type GetQueryExampleOK
- type GetQueryExampleOKBody
- type GetQueryExampleParams
- func NewGetQueryExampleParams() *GetQueryExampleParams
- func NewGetQueryExampleParamsWithContext(ctx context.Context) *GetQueryExampleParams
- func NewGetQueryExampleParamsWithHTTPClient(client *http.Client) *GetQueryExampleParams
- func NewGetQueryExampleParamsWithTimeout(timeout time.Duration) *GetQueryExampleParams
- func (o *GetQueryExampleParams) SetBody(body GetQueryExampleBody)
- func (o *GetQueryExampleParams) SetContext(ctx context.Context)
- func (o *GetQueryExampleParams) SetHTTPClient(client *http.Client)
- func (o *GetQueryExampleParams) SetTimeout(timeout time.Duration)
- func (o *GetQueryExampleParams) WithBody(body GetQueryExampleBody) *GetQueryExampleParams
- func (o *GetQueryExampleParams) WithContext(ctx context.Context) *GetQueryExampleParams
- func (o *GetQueryExampleParams) WithHTTPClient(client *http.Client) *GetQueryExampleParams
- func (o *GetQueryExampleParams) WithTimeout(timeout time.Duration) *GetQueryExampleParams
- func (o *GetQueryExampleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetQueryExampleReader
- type LabelsAnon
- type LabelsItems0
- type MetricsAnon
- type QueryExamplesItems0
- type SparklineItems0
- type TotalsAnon
Constants ¶
const ( // QueryExamplesItems0ExampleFormatEXAMPLEFORMATINVALID captures enum value "EXAMPLE_FORMAT_INVALID" QueryExamplesItems0ExampleFormatEXAMPLEFORMATINVALID string = "EXAMPLE_FORMAT_INVALID" // QueryExamplesItems0ExampleFormatEXAMPLE captures enum value "EXAMPLE" QueryExamplesItems0ExampleFormatEXAMPLE string = "EXAMPLE" // QueryExamplesItems0ExampleFormatFINGERPRINT captures enum value "FINGERPRINT" QueryExamplesItems0ExampleFormatFINGERPRINT string = "FINGERPRINT" )
const ( // QueryExamplesItems0ExampleTypeEXAMPLETYPEINVALID captures enum value "EXAMPLE_TYPE_INVALID" QueryExamplesItems0ExampleTypeEXAMPLETYPEINVALID string = "EXAMPLE_TYPE_INVALID" // QueryExamplesItems0ExampleTypeRANDOM captures enum value "RANDOM" QueryExamplesItems0ExampleTypeRANDOM string = "RANDOM" // QueryExamplesItems0ExampleTypeSLOWEST captures enum value "SLOWEST" QueryExamplesItems0ExampleTypeSLOWEST string = "SLOWEST" // QueryExamplesItems0ExampleTypeFASTEST captures enum value "FASTEST" QueryExamplesItems0ExampleTypeFASTEST string = "FASTEST" // QueryExamplesItems0ExampleTypeWITHERROR captures enum value "WITH_ERROR" QueryExamplesItems0ExampleTypeWITHERROR string = "WITH_ERROR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for object details API
func (*Client) GetLabels ¶
func (a *Client) GetLabels(params *GetLabelsParams) (*GetLabelsOK, error)
GetLabels gets labels gets list of labels for object details
func (*Client) GetMetrics ¶
func (a *Client) GetMetrics(params *GetMetricsParams) (*GetMetricsOK, error)
GetMetrics gets metrics gets map of metrics for specific filtering
func (*Client) GetQueryExample ¶
func (a *Client) GetQueryExample(params *GetQueryExampleParams) (*GetQueryExampleOK, error)
GetQueryExample gets query example gets list of query examples
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
GetLabels(params *GetLabelsParams) (*GetLabelsOK, error)
GetMetrics(params *GetMetricsParams) (*GetMetricsOK, error)
GetQueryExample(params *GetQueryExampleParams) (*GetQueryExampleOK, 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 object details API client.
type DetailsItems0 ¶
type DetailsItems0 struct {
// type url
TypeURL string `json:"type_url,omitempty"`
// value
// Format: byte
Value strfmt.Base64 `json:"value,omitempty"`
}
DetailsItems0 details items0 swagger:model DetailsItems0
func (*DetailsItems0) MarshalBinary ¶
func (o *DetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DetailsItems0) UnmarshalBinary ¶
func (o *DetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DetailsItems0) Validate ¶
func (o *DetailsItems0) Validate(formats strfmt.Registry) error
Validate validates this details items0
type GetLabelsBody ¶
type GetLabelsBody struct {
// period start from
// Format: date-time
PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"`
// period start to
// Format: date-time
PeriodStartTo strfmt.DateTime `json:"period_start_to,omitempty"`
// dimension value: ex: queryid - 1D410B4BE5060972.
FilterBy string `json:"filter_by,omitempty"`
// one of dimension: queryid | host ...
GroupBy string `json:"group_by,omitempty"`
}
GetLabelsBody ObjectDetailsLabelsRequest defines filtering of object detail's labels for specific value of // dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetLabelsBody
func (*GetLabelsBody) MarshalBinary ¶
func (o *GetLabelsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetLabelsBody) UnmarshalBinary ¶
func (o *GetLabelsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetLabelsBody) Validate ¶
func (o *GetLabelsBody) Validate(formats strfmt.Registry) error
Validate validates this get labels body
type GetLabelsDefault ¶
type GetLabelsDefault struct {
Payload *GetLabelsDefaultBody
// contains filtered or unexported fields
}
GetLabelsDefault handles this case with default header values.
An unexpected error response.
func NewGetLabelsDefault ¶
func NewGetLabelsDefault(code int) *GetLabelsDefault
NewGetLabelsDefault creates a GetLabelsDefault with default headers values
func (*GetLabelsDefault) Code ¶
func (o *GetLabelsDefault) Code() int
Code gets the status code for the get labels default response
func (*GetLabelsDefault) Error ¶
func (o *GetLabelsDefault) Error() string
func (*GetLabelsDefault) GetPayload ¶
func (o *GetLabelsDefault) GetPayload() *GetLabelsDefaultBody
type GetLabelsDefaultBody ¶
type GetLabelsDefaultBody struct {
// error
Error string `json:"error,omitempty"`
// code
Code int32 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
// details
Details []*DetailsItems0 `json:"details"`
}
GetLabelsDefaultBody get labels default body swagger:model GetLabelsDefaultBody
func (*GetLabelsDefaultBody) MarshalBinary ¶
func (o *GetLabelsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetLabelsDefaultBody) UnmarshalBinary ¶
func (o *GetLabelsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetLabelsDefaultBody) Validate ¶
func (o *GetLabelsDefaultBody) Validate(formats strfmt.Registry) error
Validate validates this get labels default body
type GetLabelsOK ¶
type GetLabelsOK struct {
Payload *GetLabelsOKBody
}
GetLabelsOK handles this case with default header values.
A successful response.
func NewGetLabelsOK ¶
func NewGetLabelsOK() *GetLabelsOK
NewGetLabelsOK creates a GetLabelsOK with default headers values
func (*GetLabelsOK) Error ¶
func (o *GetLabelsOK) Error() string
func (*GetLabelsOK) GetPayload ¶
func (o *GetLabelsOK) GetPayload() *GetLabelsOKBody
type GetLabelsOKBody ¶
type GetLabelsOKBody struct {
// labels
Labels map[string]LabelsAnon `json:"labels,omitempty"`
}
GetLabelsOKBody ObjectDetailsLabelsReply is a map of labels names as keys and labels values as a list. swagger:model GetLabelsOKBody
func (*GetLabelsOKBody) MarshalBinary ¶
func (o *GetLabelsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetLabelsOKBody) UnmarshalBinary ¶
func (o *GetLabelsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetLabelsOKBody) Validate ¶
func (o *GetLabelsOKBody) Validate(formats strfmt.Registry) error
Validate validates this get labels OK body
type GetLabelsParams ¶
type GetLabelsParams struct {
/*Body*/
Body GetLabelsBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetLabelsParams contains all the parameters to send to the API endpoint for the get labels operation typically these are written to a http.Request
func NewGetLabelsParams ¶
func NewGetLabelsParams() *GetLabelsParams
NewGetLabelsParams creates a new GetLabelsParams object with the default values initialized.
func NewGetLabelsParamsWithContext ¶
func NewGetLabelsParamsWithContext(ctx context.Context) *GetLabelsParams
NewGetLabelsParamsWithContext creates a new GetLabelsParams object with the default values initialized, and the ability to set a context for a request
func NewGetLabelsParamsWithHTTPClient ¶
func NewGetLabelsParamsWithHTTPClient(client *http.Client) *GetLabelsParams
NewGetLabelsParamsWithHTTPClient creates a new GetLabelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetLabelsParamsWithTimeout ¶
func NewGetLabelsParamsWithTimeout(timeout time.Duration) *GetLabelsParams
NewGetLabelsParamsWithTimeout creates a new GetLabelsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetLabelsParams) SetBody ¶
func (o *GetLabelsParams) SetBody(body GetLabelsBody)
SetBody adds the body to the get labels params
func (*GetLabelsParams) SetContext ¶
func (o *GetLabelsParams) SetContext(ctx context.Context)
SetContext adds the context to the get labels params
func (*GetLabelsParams) SetHTTPClient ¶
func (o *GetLabelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get labels params
func (*GetLabelsParams) SetTimeout ¶
func (o *GetLabelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get labels params
func (*GetLabelsParams) WithBody ¶
func (o *GetLabelsParams) WithBody(body GetLabelsBody) *GetLabelsParams
WithBody adds the body to the get labels params
func (*GetLabelsParams) WithContext ¶
func (o *GetLabelsParams) WithContext(ctx context.Context) *GetLabelsParams
WithContext adds the context to the get labels params
func (*GetLabelsParams) WithHTTPClient ¶
func (o *GetLabelsParams) WithHTTPClient(client *http.Client) *GetLabelsParams
WithHTTPClient adds the HTTPClient to the get labels params
func (*GetLabelsParams) WithTimeout ¶
func (o *GetLabelsParams) WithTimeout(timeout time.Duration) *GetLabelsParams
WithTimeout adds the timeout to the get labels params
func (*GetLabelsParams) WriteToRequest ¶
func (o *GetLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLabelsReader ¶
type GetLabelsReader struct {
// contains filtered or unexported fields
}
GetLabelsReader is a Reader for the GetLabels structure.
func (*GetLabelsReader) ReadResponse ¶
func (o *GetLabelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMetricsBody ¶
type GetMetricsBody struct {
// period start from
// Format: date-time
PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"`
// period start to
// Format: date-time
PeriodStartTo strfmt.DateTime `json:"period_start_to,omitempty"`
// dimension value: ex: queryid - 1D410B4BE5060972.
FilterBy string `json:"filter_by,omitempty"`
// one of dimension: queryid | host ...
GroupBy string `json:"group_by,omitempty"`
// labels
Labels []*LabelsItems0 `json:"labels"`
// include only fields
IncludeOnlyFields []string `json:"include_only_fields"`
// retrieve only values for totals, excluding N/A values
Totals bool `json:"totals,omitempty"`
}
GetMetricsBody MetricsRequest defines filtering of metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetMetricsBody
func (*GetMetricsBody) MarshalBinary ¶
func (o *GetMetricsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMetricsBody) UnmarshalBinary ¶
func (o *GetMetricsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetMetricsBody) Validate ¶
func (o *GetMetricsBody) Validate(formats strfmt.Registry) error
Validate validates this get metrics body
type GetMetricsDefault ¶
type GetMetricsDefault struct {
Payload *GetMetricsDefaultBody
// contains filtered or unexported fields
}
GetMetricsDefault handles this case with default header values.
An unexpected error response.
func NewGetMetricsDefault ¶
func NewGetMetricsDefault(code int) *GetMetricsDefault
NewGetMetricsDefault creates a GetMetricsDefault with default headers values
func (*GetMetricsDefault) Code ¶
func (o *GetMetricsDefault) Code() int
Code gets the status code for the get metrics default response
func (*GetMetricsDefault) Error ¶
func (o *GetMetricsDefault) Error() string
func (*GetMetricsDefault) GetPayload ¶
func (o *GetMetricsDefault) GetPayload() *GetMetricsDefaultBody
type GetMetricsDefaultBody ¶
type GetMetricsDefaultBody struct {
// error
Error string `json:"error,omitempty"`
// code
Code int32 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
// details
Details []*DetailsItems0 `json:"details"`
}
GetMetricsDefaultBody get metrics default body swagger:model GetMetricsDefaultBody
func (*GetMetricsDefaultBody) MarshalBinary ¶
func (o *GetMetricsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMetricsDefaultBody) UnmarshalBinary ¶
func (o *GetMetricsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetMetricsDefaultBody) Validate ¶
func (o *GetMetricsDefaultBody) Validate(formats strfmt.Registry) error
Validate validates this get metrics default body
type GetMetricsOK ¶
type GetMetricsOK struct {
Payload *GetMetricsOKBody
}
GetMetricsOK handles this case with default header values.
A successful response.
func NewGetMetricsOK ¶
func NewGetMetricsOK() *GetMetricsOK
NewGetMetricsOK creates a GetMetricsOK with default headers values
func (*GetMetricsOK) Error ¶
func (o *GetMetricsOK) Error() string
func (*GetMetricsOK) GetPayload ¶
func (o *GetMetricsOK) GetPayload() *GetMetricsOKBody
type GetMetricsOKBody ¶
type GetMetricsOKBody struct {
// metrics
Metrics map[string]MetricsAnon `json:"metrics,omitempty"`
// sparkline
Sparkline []*SparklineItems0 `json:"sparkline"`
// totals
Totals map[string]TotalsAnon `json:"totals,omitempty"`
// fingerprint
Fingerprint string `json:"fingerprint,omitempty"`
}
GetMetricsOKBody MetricsReply defines metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetMetricsOKBody
func (*GetMetricsOKBody) MarshalBinary ¶
func (o *GetMetricsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMetricsOKBody) UnmarshalBinary ¶
func (o *GetMetricsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetMetricsOKBody) Validate ¶
func (o *GetMetricsOKBody) Validate(formats strfmt.Registry) error
Validate validates this get metrics OK body
type GetMetricsParams ¶
type GetMetricsParams struct {
/*Body*/
Body GetMetricsBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetMetricsParams contains all the parameters to send to the API endpoint for the get metrics operation typically these are written to a http.Request
func NewGetMetricsParams ¶
func NewGetMetricsParams() *GetMetricsParams
NewGetMetricsParams creates a new GetMetricsParams object with the default values initialized.
func NewGetMetricsParamsWithContext ¶
func NewGetMetricsParamsWithContext(ctx context.Context) *GetMetricsParams
NewGetMetricsParamsWithContext creates a new GetMetricsParams object with the default values initialized, and the ability to set a context for a request
func NewGetMetricsParamsWithHTTPClient ¶
func NewGetMetricsParamsWithHTTPClient(client *http.Client) *GetMetricsParams
NewGetMetricsParamsWithHTTPClient creates a new GetMetricsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetMetricsParamsWithTimeout ¶
func NewGetMetricsParamsWithTimeout(timeout time.Duration) *GetMetricsParams
NewGetMetricsParamsWithTimeout creates a new GetMetricsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetMetricsParams) SetBody ¶
func (o *GetMetricsParams) SetBody(body GetMetricsBody)
SetBody adds the body to the get metrics params
func (*GetMetricsParams) SetContext ¶
func (o *GetMetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the get metrics params
func (*GetMetricsParams) SetHTTPClient ¶
func (o *GetMetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get metrics params
func (*GetMetricsParams) SetTimeout ¶
func (o *GetMetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get metrics params
func (*GetMetricsParams) WithBody ¶
func (o *GetMetricsParams) WithBody(body GetMetricsBody) *GetMetricsParams
WithBody adds the body to the get metrics params
func (*GetMetricsParams) WithContext ¶
func (o *GetMetricsParams) WithContext(ctx context.Context) *GetMetricsParams
WithContext adds the context to the get metrics params
func (*GetMetricsParams) WithHTTPClient ¶
func (o *GetMetricsParams) WithHTTPClient(client *http.Client) *GetMetricsParams
WithHTTPClient adds the HTTPClient to the get metrics params
func (*GetMetricsParams) WithTimeout ¶
func (o *GetMetricsParams) WithTimeout(timeout time.Duration) *GetMetricsParams
WithTimeout adds the timeout to the get metrics params
func (*GetMetricsParams) WriteToRequest ¶
func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMetricsReader ¶
type GetMetricsReader struct {
// contains filtered or unexported fields
}
GetMetricsReader is a Reader for the GetMetrics structure.
func (*GetMetricsReader) ReadResponse ¶
func (o *GetMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetQueryExampleBody ¶
type GetQueryExampleBody struct {
// period start from
// Format: date-time
PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"`
// period start to
// Format: date-time
PeriodStartTo strfmt.DateTime `json:"period_start_to,omitempty"`
// dimension value: ex: queryid - 1D410B4BE5060972.
FilterBy string `json:"filter_by,omitempty"`
// one of dimension: queryid | host ...
GroupBy string `json:"group_by,omitempty"`
// labels
Labels []*LabelsItems0 `json:"labels"`
// limit
Limit int64 `json:"limit,omitempty"`
}
GetQueryExampleBody QueryExampleRequest defines filtering of query examples for specific value of // dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetQueryExampleBody
func (*GetQueryExampleBody) MarshalBinary ¶
func (o *GetQueryExampleBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetQueryExampleBody) UnmarshalBinary ¶
func (o *GetQueryExampleBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetQueryExampleBody) Validate ¶
func (o *GetQueryExampleBody) Validate(formats strfmt.Registry) error
Validate validates this get query example body
type GetQueryExampleDefault ¶
type GetQueryExampleDefault struct {
Payload *GetQueryExampleDefaultBody
// contains filtered or unexported fields
}
GetQueryExampleDefault handles this case with default header values.
An unexpected error response.
func NewGetQueryExampleDefault ¶
func NewGetQueryExampleDefault(code int) *GetQueryExampleDefault
NewGetQueryExampleDefault creates a GetQueryExampleDefault with default headers values
func (*GetQueryExampleDefault) Code ¶
func (o *GetQueryExampleDefault) Code() int
Code gets the status code for the get query example default response
func (*GetQueryExampleDefault) Error ¶
func (o *GetQueryExampleDefault) Error() string
func (*GetQueryExampleDefault) GetPayload ¶
func (o *GetQueryExampleDefault) GetPayload() *GetQueryExampleDefaultBody
type GetQueryExampleDefaultBody ¶
type GetQueryExampleDefaultBody struct {
// error
Error string `json:"error,omitempty"`
// code
Code int32 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
// details
Details []*DetailsItems0 `json:"details"`
}
GetQueryExampleDefaultBody get query example default body swagger:model GetQueryExampleDefaultBody
func (*GetQueryExampleDefaultBody) MarshalBinary ¶
func (o *GetQueryExampleDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetQueryExampleDefaultBody) UnmarshalBinary ¶
func (o *GetQueryExampleDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetQueryExampleDefaultBody) Validate ¶
func (o *GetQueryExampleDefaultBody) Validate(formats strfmt.Registry) error
Validate validates this get query example default body
type GetQueryExampleOK ¶
type GetQueryExampleOK struct {
Payload *GetQueryExampleOKBody
}
GetQueryExampleOK handles this case with default header values.
A successful response.
func NewGetQueryExampleOK ¶
func NewGetQueryExampleOK() *GetQueryExampleOK
NewGetQueryExampleOK creates a GetQueryExampleOK with default headers values
func (*GetQueryExampleOK) Error ¶
func (o *GetQueryExampleOK) Error() string
func (*GetQueryExampleOK) GetPayload ¶
func (o *GetQueryExampleOK) GetPayload() *GetQueryExampleOKBody
type GetQueryExampleOKBody ¶
type GetQueryExampleOKBody struct {
// query examples
QueryExamples []*QueryExamplesItems0 `json:"query_examples"`
}
GetQueryExampleOKBody QueryExampleReply list of query examples. swagger:model GetQueryExampleOKBody
func (*GetQueryExampleOKBody) MarshalBinary ¶
func (o *GetQueryExampleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetQueryExampleOKBody) UnmarshalBinary ¶
func (o *GetQueryExampleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetQueryExampleOKBody) Validate ¶
func (o *GetQueryExampleOKBody) Validate(formats strfmt.Registry) error
Validate validates this get query example OK body
type GetQueryExampleParams ¶
type GetQueryExampleParams struct {
/*Body*/
Body GetQueryExampleBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetQueryExampleParams contains all the parameters to send to the API endpoint for the get query example operation typically these are written to a http.Request
func NewGetQueryExampleParams ¶
func NewGetQueryExampleParams() *GetQueryExampleParams
NewGetQueryExampleParams creates a new GetQueryExampleParams object with the default values initialized.
func NewGetQueryExampleParamsWithContext ¶
func NewGetQueryExampleParamsWithContext(ctx context.Context) *GetQueryExampleParams
NewGetQueryExampleParamsWithContext creates a new GetQueryExampleParams object with the default values initialized, and the ability to set a context for a request
func NewGetQueryExampleParamsWithHTTPClient ¶
func NewGetQueryExampleParamsWithHTTPClient(client *http.Client) *GetQueryExampleParams
NewGetQueryExampleParamsWithHTTPClient creates a new GetQueryExampleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetQueryExampleParamsWithTimeout ¶
func NewGetQueryExampleParamsWithTimeout(timeout time.Duration) *GetQueryExampleParams
NewGetQueryExampleParamsWithTimeout creates a new GetQueryExampleParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetQueryExampleParams) SetBody ¶
func (o *GetQueryExampleParams) SetBody(body GetQueryExampleBody)
SetBody adds the body to the get query example params
func (*GetQueryExampleParams) SetContext ¶
func (o *GetQueryExampleParams) SetContext(ctx context.Context)
SetContext adds the context to the get query example params
func (*GetQueryExampleParams) SetHTTPClient ¶
func (o *GetQueryExampleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get query example params
func (*GetQueryExampleParams) SetTimeout ¶
func (o *GetQueryExampleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get query example params
func (*GetQueryExampleParams) WithBody ¶
func (o *GetQueryExampleParams) WithBody(body GetQueryExampleBody) *GetQueryExampleParams
WithBody adds the body to the get query example params
func (*GetQueryExampleParams) WithContext ¶
func (o *GetQueryExampleParams) WithContext(ctx context.Context) *GetQueryExampleParams
WithContext adds the context to the get query example params
func (*GetQueryExampleParams) WithHTTPClient ¶
func (o *GetQueryExampleParams) WithHTTPClient(client *http.Client) *GetQueryExampleParams
WithHTTPClient adds the HTTPClient to the get query example params
func (*GetQueryExampleParams) WithTimeout ¶
func (o *GetQueryExampleParams) WithTimeout(timeout time.Duration) *GetQueryExampleParams
WithTimeout adds the timeout to the get query example params
func (*GetQueryExampleParams) WriteToRequest ¶
func (o *GetQueryExampleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetQueryExampleReader ¶
type GetQueryExampleReader struct {
// contains filtered or unexported fields
}
GetQueryExampleReader is a Reader for the GetQueryExample structure.
func (*GetQueryExampleReader) ReadResponse ¶
func (o *GetQueryExampleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LabelsAnon ¶
type LabelsAnon struct {
// values
Values []string `json:"values"`
}
LabelsAnon ListLabelValues is list of label's values. swagger:model LabelsAnon
func (*LabelsAnon) MarshalBinary ¶
func (o *LabelsAnon) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LabelsAnon) UnmarshalBinary ¶
func (o *LabelsAnon) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*LabelsAnon) Validate ¶
func (o *LabelsAnon) Validate(formats strfmt.Registry) error
Validate validates this labels anon
type LabelsItems0 ¶
type LabelsItems0 struct {
// key
Key string `json:"key,omitempty"`
// value
Value []string `json:"value"`
}
LabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. swagger:model LabelsItems0
func (*LabelsItems0) MarshalBinary ¶
func (o *LabelsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LabelsItems0) UnmarshalBinary ¶
func (o *LabelsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*LabelsItems0) Validate ¶
func (o *LabelsItems0) Validate(formats strfmt.Registry) error
Validate validates this labels items0
type MetricsAnon ¶
type MetricsAnon struct {
// rate
Rate float32 `json:"rate,omitempty"`
// cnt
Cnt float32 `json:"cnt,omitempty"`
// sum
Sum float32 `json:"sum,omitempty"`
// min
Min float32 `json:"min,omitempty"`
// max
Max float32 `json:"max,omitempty"`
// avg
Avg float32 `json:"avg,omitempty"`
// p99
P99 float32 `json:"p99,omitempty"`
// percent of total
PercentOfTotal float32 `json:"percent_of_total,omitempty"`
}
MetricsAnon MetricValues is statistics of specific metric. swagger:model MetricsAnon
func (*MetricsAnon) MarshalBinary ¶
func (o *MetricsAnon) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsAnon) UnmarshalBinary ¶
func (o *MetricsAnon) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*MetricsAnon) Validate ¶
func (o *MetricsAnon) Validate(formats strfmt.Registry) error
Validate validates this metrics anon
type QueryExamplesItems0 ¶
type QueryExamplesItems0 struct {
// example
Example string `json:"example,omitempty"`
// ExampleFormat is format of query example: real or query without values.
//
// Deprecated: is not used, should not be used, should be removed.
// Enum: [EXAMPLE_FORMAT_INVALID EXAMPLE FINGERPRINT]
ExampleFormat *string `json:"example_format,omitempty"`
// ExampleType is a type of query example selected for this query class in given period of time.
// Enum: [EXAMPLE_TYPE_INVALID RANDOM SLOWEST FASTEST WITH_ERROR]
ExampleType *string `json:"example_type,omitempty"`
// is truncated
IsTruncated int64 `json:"is_truncated,omitempty"`
// example metrics
ExampleMetrics string `json:"example_metrics,omitempty"`
// service id
ServiceID string `json:"service_id,omitempty"`
// service type
ServiceType string `json:"service_type,omitempty"`
// schema
Schema string `json:"schema,omitempty"`
// tables
Tables []string `json:"tables"`
}
QueryExamplesItems0 QueryExample shows query examples and their metrics. swagger:model QueryExamplesItems0
func (*QueryExamplesItems0) MarshalBinary ¶
func (o *QueryExamplesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*QueryExamplesItems0) UnmarshalBinary ¶
func (o *QueryExamplesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*QueryExamplesItems0) Validate ¶
func (o *QueryExamplesItems0) Validate(formats strfmt.Registry) error
Validate validates this query examples items0
type SparklineItems0 ¶
type SparklineItems0 struct {
// The serial number of the chart point from the largest time in the time interval to the lowest time in the time range.
Point int64 `json:"point,omitempty"`
// Duration beetween two points.
TimeFrame int64 `json:"time_frame,omitempty"`
// Time of point in format RFC3339.
Timestamp string `json:"timestamp,omitempty"`
// load is query_time / time_range.
Load float32 `json:"load,omitempty"`
// number of queries in bucket.
NumQueriesPerSec float32 `json:"num_queries_per_sec,omitempty"`
// number of queries with errors.
NumQueriesWithErrorsPerSec float32 `json:"num_queries_with_errors_per_sec,omitempty"`
// number of queries with warnings.
NumQueriesWithWarningsPerSec float32 `json:"num_queries_with_warnings_per_sec,omitempty"`
// The statement execution time in seconds.
MQueryTimeSumPerSec float32 `json:"m_query_time_sum_per_sec,omitempty"`
// The time to acquire locks in seconds.
MLockTimeSumPerSec float32 `json:"m_lock_time_sum_per_sec,omitempty"`
// The number of rows sent to the client.
MRowsSentSumPerSec float32 `json:"m_rows_sent_sum_per_sec,omitempty"`
// Number of rows scanned - SELECT.
MRowsExaminedSumPerSec float32 `json:"m_rows_examined_sum_per_sec,omitempty"`
// Number of rows changed - UPDATE, DELETE, INSERT.
MRowsAffectedSumPerSec float32 `json:"m_rows_affected_sum_per_sec,omitempty"`
// The number of rows read from tables.
MRowsReadSumPerSec float32 `json:"m_rows_read_sum_per_sec,omitempty"`
// The number of merge passes that the sort algorithm has had to do.
MMergePassesSumPerSec float32 `json:"m_merge_passes_sum_per_sec,omitempty"`
// Counts the number of page read operations scheduled.
MInnodbIorOpsSumPerSec float32 `json:"m_innodb_io_r_ops_sum_per_sec,omitempty"`
// Similar to innodb_IO_r_ops, but the unit is bytes.
MInnodbIorBytesSumPerSec float32 `json:"m_innodb_io_r_bytes_sum_per_sec,omitempty"`
// Shows how long (in seconds) it took InnoDB to actually read the data from storage.
MInnodbIorWaitSumPerSec float32 `json:"m_innodb_io_r_wait_sum_per_sec,omitempty"`
// Shows how long (in seconds) the query waited for row locks.
MInnodbRecLockWaitSumPerSec float32 `json:"m_innodb_rec_lock_wait_sum_per_sec,omitempty"`
// Shows how long (in seconds) the query spent either waiting to enter the InnoDB queue or inside that queue waiting for execution.
MInnodbQueueWaitSumPerSec float32 `json:"m_innodb_queue_wait_sum_per_sec,omitempty"`
// Counts approximately the number of unique pages the query accessed.
MInnodbPagesDistinctSumPerSec float32 `json:"m_innodb_pages_distinct_sum_per_sec,omitempty"`
// Shows how long the query is.
MQueryLengthSumPerSec float32 `json:"m_query_length_sum_per_sec,omitempty"`
// The number of bytes sent to all clients.
MBytesSentSumPerSec float32 `json:"m_bytes_sent_sum_per_sec,omitempty"`
// Number of temporary tables created on memory for the query.
MTmpTablesSumPerSec float32 `json:"m_tmp_tables_sum_per_sec,omitempty"`
// Number of temporary tables created on disk for the query.
MTmpDiskTablesSumPerSec float32 `json:"m_tmp_disk_tables_sum_per_sec,omitempty"`
// Total Size in bytes for all temporary tables used in the query.
MTmpTableSizesSumPerSec float32 `json:"m_tmp_table_sizes_sum_per_sec,omitempty"`
// Boolean metrics:
// - *_sum_per_sec - how many times this matric was true.
//
// Query Cache hits.
MQcHitSumPerSec float32 `json:"m_qc_hit_sum_per_sec,omitempty"`
// The query performed a full table scan.
MFullScanSumPerSec float32 `json:"m_full_scan_sum_per_sec,omitempty"`
// The query performed a full join (a join without indexes).
MFullJoinSumPerSec float32 `json:"m_full_join_sum_per_sec,omitempty"`
// The query created an implicit internal temporary table.
MTmpTableSumPerSec float32 `json:"m_tmp_table_sum_per_sec,omitempty"`
// The querys temporary table was stored on disk.
MTmpTableOnDiskSumPerSec float32 `json:"m_tmp_table_on_disk_sum_per_sec,omitempty"`
// The query used a filesort.
MFilesortSumPerSec float32 `json:"m_filesort_sum_per_sec,omitempty"`
// The filesort was performed on disk.
MFilesortOnDiskSumPerSec float32 `json:"m_filesort_on_disk_sum_per_sec,omitempty"`
// The number of joins that used a range search on a reference table.
MSelectFullRangeJoinSumPerSec float32 `json:"m_select_full_range_join_sum_per_sec,omitempty"`
// The number of joins that used ranges on the first table.
MSelectRangeSumPerSec float32 `json:"m_select_range_sum_per_sec,omitempty"`
// The number of joins without keys that check for key usage after each row.
MSelectRangeCheckSumPerSec float32 `json:"m_select_range_check_sum_per_sec,omitempty"`
// The number of sorts that were done using ranges.
MSortRangeSumPerSec float32 `json:"m_sort_range_sum_per_sec,omitempty"`
// The number of sorted rows.
MSortRowsSumPerSec float32 `json:"m_sort_rows_sum_per_sec,omitempty"`
// The number of sorts that were done by scanning the table.
MSortScanSumPerSec float32 `json:"m_sort_scan_sum_per_sec,omitempty"`
// The number of queries without index.
MNoIndexUsedSumPerSec float32 `json:"m_no_index_used_sum_per_sec,omitempty"`
// The number of queries without good index.
MNoGoodIndexUsedSumPerSec float32 `json:"m_no_good_index_used_sum_per_sec,omitempty"`
// MongoDB metrics.
//
// The number of returned documents.
MDocsReturnedSumPerSec float32 `json:"m_docs_returned_sum_per_sec,omitempty"`
// The response length of the query result in bytes.
MResponseLengthSumPerSec float32 `json:"m_response_length_sum_per_sec,omitempty"`
// The number of scanned documents.
MDocsScannedSumPerSec float32 `json:"m_docs_scanned_sum_per_sec,omitempty"`
//
// Total number of shared block cache hits by the statement.
MSharedBlksHitSumPerSec float32 `json:"m_shared_blks_hit_sum_per_sec,omitempty"`
MSharedBlksReadSumPerSec float32 `json:"m_shared_blks_read_sum_per_sec,omitempty"`
MSharedBlksDirtiedSumPerSec float32 `json:"m_shared_blks_dirtied_sum_per_sec,omitempty"`
MSharedBlksWrittenSumPerSec float32 `json:"m_shared_blks_written_sum_per_sec,omitempty"`
// Total number of local block cache hits by the statement.
MLocalBlksHitSumPerSec float32 `json:"m_local_blks_hit_sum_per_sec,omitempty"`
// Total number of local blocks read by the statement.
MLocalBlksReadSumPerSec float32 `json:"m_local_blks_read_sum_per_sec,omitempty"`
// Total number of local blocks dirtied by the statement.
MLocalBlksDirtiedSumPerSec float32 `json:"m_local_blks_dirtied_sum_per_sec,omitempty"`
// Total number of local blocks written by the statement.
MLocalBlksWrittenSumPerSec float32 `json:"m_local_blks_written_sum_per_sec,omitempty"`
// Total number of temp blocks read by the statement.
MTempBlksReadSumPerSec float32 `json:"m_temp_blks_read_sum_per_sec,omitempty"`
// Total number of temp blocks written by the statement.
MTempBlksWrittenSumPerSec float32 `json:"m_temp_blks_written_sum_per_sec,omitempty"`
// Total time the statement spent reading blocks, in milliseconds (if track_io_timing is enabled, otherwise zero).
MBlkReadTimeSumPerSec float32 `json:"m_blk_read_time_sum_per_sec,omitempty"`
// Total time the statement spent writing blocks, in milliseconds (if track_io_timing is enabled, otherwise zero).
MBlkWriteTimeSumPerSec float32 `json:"m_blk_write_time_sum_per_sec,omitempty"`
// Total time user spent in query.
MCPUUserTimeSumPerSec float32 `json:"m_cpu_user_time_sum_per_sec,omitempty"`
// Total time system spent in query.
MCPUSysTimeSumPerSec float32 `json:"m_cpu_sys_time_sum_per_sec,omitempty"`
}
SparklineItems0 Point contains values that represents abscissa (time) and ordinate (volume etc.) // of every point in a coordinate system of Sparklines. swagger:model SparklineItems0
func (*SparklineItems0) MarshalBinary ¶
func (o *SparklineItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SparklineItems0) UnmarshalBinary ¶
func (o *SparklineItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SparklineItems0) Validate ¶
func (o *SparklineItems0) Validate(formats strfmt.Registry) error
Validate validates this sparkline items0
type TotalsAnon ¶
type TotalsAnon struct {
// rate
Rate float32 `json:"rate,omitempty"`
// cnt
Cnt float32 `json:"cnt,omitempty"`
// sum
Sum float32 `json:"sum,omitempty"`
// min
Min float32 `json:"min,omitempty"`
// max
Max float32 `json:"max,omitempty"`
// avg
Avg float32 `json:"avg,omitempty"`
// p99
P99 float32 `json:"p99,omitempty"`
// percent of total
PercentOfTotal float32 `json:"percent_of_total,omitempty"`
}
TotalsAnon MetricValues is statistics of specific metric. swagger:model TotalsAnon
func (*TotalsAnon) MarshalBinary ¶
func (o *TotalsAnon) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TotalsAnon) UnmarshalBinary ¶
func (o *TotalsAnon) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*TotalsAnon) Validate ¶
func (o *TotalsAnon) Validate(formats strfmt.Registry) error
Validate validates this totals anon
Source Files
¶
- get_labels_parameters.go
- get_labels_responses.go
- get_metrics_parameters.go
- get_metrics_responses.go
- get_query_example_parameters.go
- get_query_example_responses.go
- object_details_client.go