Query log
Last updated on August 26, 2022
If there is a problem with the device, look at the request log. It displays all requests processed by the SberDevices IoT Agent: both requests from the Sber Smart Home to the controller and requests from the controller to the Sber Smart Home.
For each request, you can see what time the request was sent, what kind of request it was and what kind of response was returned.
To find and view the necessary queries:
- In SmartMarket Studio open your workspace. Select the desired project.
- On the left part of the screen, click on .
- In the fields of the form, specify the dates for which you want to upload logs. The fields Username in your system (controller ID) and x-request-id list (request IDs) are not currently used to search for logs.
- Click Download logs.
- Wait until the download batch is formed – the download link will appear below the form.
The logs reflect the following query details:
created_at | Date and time query was sent |
partner_id | ID of your project in SmartMarket Studio |
user_id | Controller ID |
request_id | Unique ID assigned by Sber Smart Home to the query |
device_id | Device ID on the controller |
direction | Query direction:
|
operation | Name of the sent request. See Webhook queries for a list of possible queries |
address | Protocol and address used to send the query |
execution_time | Time until response (in milliseconds) |
error_code | Response code:
|
error_text | The text of the returned error message |
device_type_id | Model ID |
category_name | Device type (см. Devices) |
request_body | Request text |
response_body | Response text |