Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetLogsBadRequest
- type GetLogsForbidden
- type GetLogsInternalServerError
- type GetLogsOK
- type GetLogsParams
- func (o *GetLogsParams) SetContext(ctx context.Context)
- func (o *GetLogsParams) SetCount(count float64)
- func (o *GetLogsParams) SetDefaults()
- func (o *GetLogsParams) SetDeviceID(deviceID []string)
- func (o *GetLogsParams) SetHTTPClient(client *http.Client)
- func (o *GetLogsParams) SetLevel(level *string)
- func (o *GetLogsParams) SetPage(page float64)
- func (o *GetLogsParams) SetPeriod(period *float64)
- func (o *GetLogsParams) SetQuery(query *string)
- func (o *GetLogsParams) SetSiteID(siteID *string)
- func (o *GetLogsParams) SetTag(tag *string)
- func (o *GetLogsParams) SetTimeout(timeout time.Duration)
- func (o *GetLogsParams) WithContext(ctx context.Context) *GetLogsParams
- func (o *GetLogsParams) WithCount(count float64) *GetLogsParams
- func (o *GetLogsParams) WithDefaults() *GetLogsParams
- func (o *GetLogsParams) WithDeviceID(deviceID []string) *GetLogsParams
- func (o *GetLogsParams) WithHTTPClient(client *http.Client) *GetLogsParams
- func (o *GetLogsParams) WithLevel(level *string) *GetLogsParams
- func (o *GetLogsParams) WithPage(page float64) *GetLogsParams
- func (o *GetLogsParams) WithPeriod(period *float64) *GetLogsParams
- func (o *GetLogsParams) WithQuery(query *string) *GetLogsParams
- func (o *GetLogsParams) WithSiteID(siteID *string) *GetLogsParams
- func (o *GetLogsParams) WithTag(tag *string) *GetLogsParams
- func (o *GetLogsParams) WithTimeout(timeout time.Duration) *GetLogsParams
- func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLogsReader
- type GetLogsUnauthorized
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 logs API
func (*Client) GetLogs ¶
func (a *Client) GetLogs(params *GetLogsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLogsOK, error)
GetLogs lists of all log items
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 { GetLogs(params *GetLogsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLogsOK, 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 logs API client.
type GetLogsBadRequest ¶
GetLogsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetLogsBadRequest ¶
func NewGetLogsBadRequest() *GetLogsBadRequest
NewGetLogsBadRequest creates a GetLogsBadRequest with default headers values
func (*GetLogsBadRequest) Error ¶
func (o *GetLogsBadRequest) Error() string
func (*GetLogsBadRequest) GetPayload ¶
func (o *GetLogsBadRequest) GetPayload() *models.Error
type GetLogsForbidden ¶
GetLogsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetLogsForbidden ¶
func NewGetLogsForbidden() *GetLogsForbidden
NewGetLogsForbidden creates a GetLogsForbidden with default headers values
func (*GetLogsForbidden) Error ¶
func (o *GetLogsForbidden) Error() string
func (*GetLogsForbidden) GetPayload ¶
func (o *GetLogsForbidden) GetPayload() *models.Error
type GetLogsInternalServerError ¶
GetLogsInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetLogsInternalServerError ¶
func NewGetLogsInternalServerError() *GetLogsInternalServerError
NewGetLogsInternalServerError creates a GetLogsInternalServerError with default headers values
func (*GetLogsInternalServerError) Error ¶
func (o *GetLogsInternalServerError) Error() string
func (*GetLogsInternalServerError) GetPayload ¶
func (o *GetLogsInternalServerError) GetPayload() *models.Error
type GetLogsOK ¶
GetLogsOK describes a response with status code 200, with default header values.
Successful
func NewGetLogsOK ¶
func NewGetLogsOK() *GetLogsOK
NewGetLogsOK creates a GetLogsOK with default headers values
func (*GetLogsOK) GetPayload ¶
type GetLogsParams ¶
type GetLogsParams struct { // Count. Count float64 // DeviceID. DeviceID []string // Level. Level *string // Page. Page float64 /* Period. Unix timestamp in milliseconds. */ Period *float64 /* Query. Search pattern. */ Query *string // SiteID. SiteID *string // Tag. Tag *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLogsParams contains all the parameters to send to the API endpoint
for the get logs operation. Typically these are written to a http.Request.
func NewGetLogsParams ¶
func NewGetLogsParams() *GetLogsParams
NewGetLogsParams creates a new GetLogsParams 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 NewGetLogsParamsWithContext ¶
func NewGetLogsParamsWithContext(ctx context.Context) *GetLogsParams
NewGetLogsParamsWithContext creates a new GetLogsParams object with the ability to set a context for a request.
func NewGetLogsParamsWithHTTPClient ¶
func NewGetLogsParamsWithHTTPClient(client *http.Client) *GetLogsParams
NewGetLogsParamsWithHTTPClient creates a new GetLogsParams object with the ability to set a custom HTTPClient for a request.
func NewGetLogsParamsWithTimeout ¶
func NewGetLogsParamsWithTimeout(timeout time.Duration) *GetLogsParams
NewGetLogsParamsWithTimeout creates a new GetLogsParams object with the ability to set a timeout on a request.
func (*GetLogsParams) SetContext ¶
func (o *GetLogsParams) SetContext(ctx context.Context)
SetContext adds the context to the get logs params
func (*GetLogsParams) SetCount ¶
func (o *GetLogsParams) SetCount(count float64)
SetCount adds the count to the get logs params
func (*GetLogsParams) SetDefaults ¶
func (o *GetLogsParams) SetDefaults()
SetDefaults hydrates default values in the get logs params (not the query body).
All values with no default are reset to their zero value.
func (*GetLogsParams) SetDeviceID ¶
func (o *GetLogsParams) SetDeviceID(deviceID []string)
SetDeviceID adds the deviceId to the get logs params
func (*GetLogsParams) SetHTTPClient ¶
func (o *GetLogsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get logs params
func (*GetLogsParams) SetLevel ¶
func (o *GetLogsParams) SetLevel(level *string)
SetLevel adds the level to the get logs params
func (*GetLogsParams) SetPage ¶
func (o *GetLogsParams) SetPage(page float64)
SetPage adds the page to the get logs params
func (*GetLogsParams) SetPeriod ¶
func (o *GetLogsParams) SetPeriod(period *float64)
SetPeriod adds the period to the get logs params
func (*GetLogsParams) SetQuery ¶
func (o *GetLogsParams) SetQuery(query *string)
SetQuery adds the query to the get logs params
func (*GetLogsParams) SetSiteID ¶
func (o *GetLogsParams) SetSiteID(siteID *string)
SetSiteID adds the siteId to the get logs params
func (*GetLogsParams) SetTag ¶
func (o *GetLogsParams) SetTag(tag *string)
SetTag adds the tag to the get logs params
func (*GetLogsParams) SetTimeout ¶
func (o *GetLogsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get logs params
func (*GetLogsParams) WithContext ¶
func (o *GetLogsParams) WithContext(ctx context.Context) *GetLogsParams
WithContext adds the context to the get logs params
func (*GetLogsParams) WithCount ¶
func (o *GetLogsParams) WithCount(count float64) *GetLogsParams
WithCount adds the count to the get logs params
func (*GetLogsParams) WithDefaults ¶
func (o *GetLogsParams) WithDefaults() *GetLogsParams
WithDefaults hydrates default values in the get logs params (not the query body).
All values with no default are reset to their zero value.
func (*GetLogsParams) WithDeviceID ¶
func (o *GetLogsParams) WithDeviceID(deviceID []string) *GetLogsParams
WithDeviceID adds the deviceID to the get logs params
func (*GetLogsParams) WithHTTPClient ¶
func (o *GetLogsParams) WithHTTPClient(client *http.Client) *GetLogsParams
WithHTTPClient adds the HTTPClient to the get logs params
func (*GetLogsParams) WithLevel ¶
func (o *GetLogsParams) WithLevel(level *string) *GetLogsParams
WithLevel adds the level to the get logs params
func (*GetLogsParams) WithPage ¶
func (o *GetLogsParams) WithPage(page float64) *GetLogsParams
WithPage adds the page to the get logs params
func (*GetLogsParams) WithPeriod ¶
func (o *GetLogsParams) WithPeriod(period *float64) *GetLogsParams
WithPeriod adds the period to the get logs params
func (*GetLogsParams) WithQuery ¶
func (o *GetLogsParams) WithQuery(query *string) *GetLogsParams
WithQuery adds the query to the get logs params
func (*GetLogsParams) WithSiteID ¶
func (o *GetLogsParams) WithSiteID(siteID *string) *GetLogsParams
WithSiteID adds the siteID to the get logs params
func (*GetLogsParams) WithTag ¶
func (o *GetLogsParams) WithTag(tag *string) *GetLogsParams
WithTag adds the tag to the get logs params
func (*GetLogsParams) WithTimeout ¶
func (o *GetLogsParams) WithTimeout(timeout time.Duration) *GetLogsParams
WithTimeout adds the timeout to the get logs params
func (*GetLogsParams) WriteToRequest ¶
func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLogsReader ¶
type GetLogsReader struct {
// contains filtered or unexported fields
}
GetLogsReader is a Reader for the GetLogs structure.
func (*GetLogsReader) ReadResponse ¶
func (o *GetLogsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLogsUnauthorized ¶
type GetLogsUnauthorized struct {
}GetLogsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetLogsUnauthorized ¶
func NewGetLogsUnauthorized() *GetLogsUnauthorized
NewGetLogsUnauthorized creates a GetLogsUnauthorized with default headers values
func (*GetLogsUnauthorized) Error ¶
func (o *GetLogsUnauthorized) Error() string
func (*GetLogsUnauthorized) GetPayload ¶
func (o *GetLogsUnauthorized) GetPayload() *models.Error