Documentation
¶
Index ¶
- type Client
- type ClientService
- type DetailsItems0
- type GetBody
- type GetDefault
- type GetDefaultBody
- type GetOK
- type GetOKBody
- type GetParams
- func (o *GetParams) SetBody(body GetBody)
- func (o *GetParams) SetContext(ctx context.Context)
- func (o *GetParams) SetHTTPClient(client *http.Client)
- func (o *GetParams) SetTimeout(timeout time.Duration)
- func (o *GetParams) WithBody(body GetBody) *GetParams
- func (o *GetParams) WithContext(ctx context.Context) *GetParams
- func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams
- func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams
- func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReader
- type LabelsAnon
- type LabelsAnonNameItems0
- type LabelsItems0
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 filters API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { Get(params *GetParams) (*GetOK, 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 filters 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
type GetBody ¶
type GetBody 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"` // main metric name MainMetricName string `json:"main_metric_name,omitempty"` // labels Labels []*LabelsItems0 `json:"labels"` }
GetBody FiltersRequest contains period for which we need filters. swagger:model GetBody
func (*GetBody) MarshalBinary ¶
MarshalBinary interface implementation
func (*GetBody) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GetDefault ¶
type GetDefault struct { Payload *GetDefaultBody // contains filtered or unexported fields }
GetDefault handles this case with default header values.
An unexpected error response.
func NewGetDefault ¶
func NewGetDefault(code int) *GetDefault
NewGetDefault creates a GetDefault with default headers values
func (*GetDefault) Code ¶
func (o *GetDefault) Code() int
Code gets the status code for the get default response
func (*GetDefault) Error ¶
func (o *GetDefault) Error() string
func (*GetDefault) GetPayload ¶
func (o *GetDefault) GetPayload() *GetDefaultBody
type GetDefaultBody ¶
type GetDefaultBody struct { // error Error string `json:"error,omitempty"` // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` // details Details []*DetailsItems0 `json:"details"` }
GetDefaultBody get default body swagger:model GetDefaultBody
func (*GetDefaultBody) MarshalBinary ¶
func (o *GetDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetDefaultBody) UnmarshalBinary ¶
func (o *GetDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetOK ¶
type GetOK struct {
Payload *GetOKBody
}
GetOK handles this case with default header values.
A successful response.
func (*GetOK) GetPayload ¶
type GetOKBody ¶
type GetOKBody struct { // labels Labels map[string]LabelsAnon `json:"labels,omitempty"` }
GetOKBody FiltersReply is map of labels for given period by key. // Key is label's name and value is label's value and how many times it occur. swagger:model GetOKBody
func (*GetOKBody) MarshalBinary ¶
MarshalBinary interface implementation
func (*GetOKBody) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GetParams ¶
type GetParams struct { /*Body*/ Body GetBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request
func NewGetParams ¶
func NewGetParams() *GetParams
NewGetParams creates a new GetParams object with the default values initialized.
func NewGetParamsWithContext ¶
NewGetParamsWithContext creates a new GetParams object with the default values initialized, and the ability to set a context for a request
func NewGetParamsWithHTTPClient ¶
NewGetParamsWithHTTPClient creates a new GetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetParamsWithTimeout ¶
NewGetParamsWithTimeout creates a new GetParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetParams) SetContext ¶
SetContext adds the context to the get params
func (*GetParams) SetHTTPClient ¶
SetHTTPClient adds the HTTPClient to the get params
func (*GetParams) SetTimeout ¶
SetTimeout adds the timeout to the get params
func (*GetParams) WithContext ¶
WithContext adds the context to the get params
func (*GetParams) WithHTTPClient ¶
WithHTTPClient adds the HTTPClient to the get params
func (*GetParams) WithTimeout ¶
WithTimeout adds the timeout to the get params
func (*GetParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetReader ¶
type GetReader struct {
// contains filtered or unexported fields
}
GetReader is a Reader for the Get structure.
func (*GetReader) ReadResponse ¶
func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LabelsAnon ¶
type LabelsAnon struct { // name Name []*LabelsAnonNameItems0 `json:"name"` }
LabelsAnon ListLabels is list of label's values: duplicates are impossible. 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
type LabelsAnonNameItems0 ¶
type LabelsAnonNameItems0 struct { // value Value string `json:"value,omitempty"` // main metric percent MainMetricPercent float32 `json:"main_metric_percent,omitempty"` // main metric per sec MainMetricPerSec float32 `json:"main_metric_per_sec,omitempty"` }
LabelsAnonNameItems0 Values is label values and main metric percent and per second. swagger:model LabelsAnonNameItems0
func (*LabelsAnonNameItems0) MarshalBinary ¶
func (o *LabelsAnonNameItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LabelsAnonNameItems0) UnmarshalBinary ¶
func (o *LabelsAnonNameItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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