Read Live Algorithm

Logs

Introduction

Get the logs of a specific live algorithm.

Request

Information about the algorithm to read live logs from. The /live/logs/read API accepts requests in the following format:

ReadLiveLogsRequest Model - Request to read the logs of a specific algorithm. The difference between 'startLine' and 'endLine' must be smaller than 250, else an error will be thrown.
format object
example: json

Format of the log results.
projectId integer
Project Id of the live running algorithm.
algorithmId string
Deploy Id (Algorithm Id) of the live running algorithm.
startLine integer
Start line of logs to read.
endLine integer
End line of logs to read.
Example
{
  "format": "json",
  "projectId": 0,
  "algorithmId": "string",
  "startLine": 0,
  "endLine": 0
}

Responses

The /live/logs/read API provides a response in the following format:

200 Success

ReadLiveLogsResponse Model - Logs from a live algorithm.
logs string Array
List of logs from the live algorithm.
length integer
Total amount of rows in the logs.
deploymentOffset integer
Amount of log rows before the current deployment.
success boolean
Indicate if the API request was successful.
errors string Array
List of errors with the API call.
Example
{
  "logs": [
    "string"
  ],
  "length": 0,
  "deploymentOffset": 0,
  "success": true,
  "errors": [
    "string"
  ]
}

401 Authentication Error

UnauthorizedError Model - Unauthorized response from the API. Key is missing, invalid, or timestamp is too old for hash.
www_authenticate string
Header

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: