Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonDeviceServiceAPI ¶
type AnonDeviceServiceAPI struct { RouterRegister routing.RouteRegister // contains filtered or unexported fields }
func NewAnonDeviceServiceAPI ¶
func NewAnonDeviceServiceAPI( cfg *setting.Cfg, anonstore anonstore.AnonStore, accesscontrol accesscontrol.AccessControl, routerRegister routing.RouteRegister, ) *AnonDeviceServiceAPI
func (*AnonDeviceServiceAPI) ListDevices ¶
func (api *AnonDeviceServiceAPI) ListDevices(c *contextmodel.ReqContext) response.Response
swagger:route GET /stats devices listDevices
Lists all devices within the last 30 days ¶
Produces: - application/json
Responses:
200: devicesResponse 401: unauthorisedError 403: forbiddenError 404: notFoundError 500: internalServerError
func (*AnonDeviceServiceAPI) RegisterAPIEndpoints ¶
func (api *AnonDeviceServiceAPI) RegisterAPIEndpoints()
func (*AnonDeviceServiceAPI) SearchDevices ¶
func (api *AnonDeviceServiceAPI) SearchDevices(c *contextmodel.ReqContext) response.Response
swagger:route POST /search devices SearchDevices
Lists all devices within the last 30 days ¶
Produces: - application/json
Responses:
200: devicesSearchResponse 401: unauthorisedError 403: forbiddenError 404: notFoundError 500: internalServerError
type DevicesResponse ¶
type DevicesResponse struct {
// in:body
Body []deviceDTO `json:"body"`
}
swagger:response devicesResponse
type DevicesSearchResponse ¶
type DevicesSearchResponse struct { // in:body Body anonstore.SearchDeviceQueryResult `json:"body"` }
swagger:response devicesSearchResponse
Click to show internal directories.
Click to hide internal directories.