DataSphere Jobs API v2, gRPC: ProjectJobService.ReadLogs
Written by
Updated at October 17, 2024
Returns stream of job logs.
gRPC request
rpc ReadLogs (ReadProjectJobLogsRequest) returns (stream ReadProjectJobLogsResponse)
ReadProjectJobLogsRequest
{
"jobId": "string",
"offset": "int64"
}
Field |
Description |
jobId |
string ID of the job. |
offset |
int64 Log offset. |
ReadProjectJobLogsResponse
{
"logs": [
{
"content": "bytes",
"createdAt": "google.protobuf.Timestamp",
// Includes only one of the fields `standardStream`, `filePath`
"standardStream": "StandardStream",
"filePath": "string"
// end of the list of possible fields
}
],
"offset": "int64"
}
Field |
Description |
logs[] |
|
offset |
int64 Log offset. |
LogMessage
Field |
Description |
content |
bytes Log message contents. |
createdAt |
Log message creation timestamp. |
standardStream |
enum StandardStream Program standard streams. Includes only one of the fields
|
filePath |
string System debug log files. Includes only one of the fields |