Uploading Logs
POST /v1/smart_capture/device/:deviceId/logs
DESCRIPTION: Push logs emitted by a registered device
URL parameters:
| Parameter Name | Required | Description |
|---|---|---|
| deviceId | Required | ID of the device to push logs for. |
Body Parameters:
| Parameter Name | Required | Description |
|---|---|---|
| logs | Required | List of log objects to be uploaded |
Log Object:
| Parameter Name | Required | Description |
|---|---|---|
| timestamp | Required | Datetime string of the log entry |
| type | Required | One of INFO, WARN, or ERROR |
| log_info | Required | JSON containing the message or any other metadata for the log |
| trigger_id | Optional | The trigger id if the log pertained to a trigger |
| offending_field | Optional | The state key if the log pertained to a particular field from the state object |
| offending_value | Optional | The state value if the log pertained to a particular value from the state object |
Updated 10 months ago
Did this page help you?