Fetch machine logs stream data
POST/api/v1/machines/:machineIdOrAlias/logs/streams
This API endpoint retrieve streams data of logs data for the machine identified by the provided machineId or machine alias.
Request
Path Parameters
machineIdOrAlias stringrequired
The machineId - unique id of the machine, alias - machine alias
- application/json
Body
required
The request body containing the required details to get machine logs streams
start int64
Timestamp in epoch nanoseconds
end int64
Timestamp in epoch nanoseconds
Responses
- 200
Success response
- application/json
- Schema
- Example (from schema)
- Fetch machine logs stream example
Schema
success boolean
message string
status string
statusCode int32
errorCode string
subErrors object[]
payload
object
Schema for machine logs stream response
status string
data string[]
{
"success": true,
"message": "string",
"status": "string",
"statusCode": 0,
"errorCode": "string",
"subErrors": [
{}
],
"payload": {
"status": "string",
"data": [
"string"
]
}
}
Fetch machine logs stream response example
{
"success": true,
"message": "Streams fetched successfully",
"status": "OK",
"statusCode": 200,
"errorCode": "",
"subErrors": [
{}
],
"payload": {
"status": "success",
"data": [
"log_stream"
]
}
}
Loading...