DataSphere Jobs API v2, gRPC: ProjectJobService.ReadLogs
Статья создана
Обновлена 26 ноября 2024 г.
Returns stream of job logs.
gRPC request
rpc ReadLogs (ReadProjectJobLogsRequest) returns (stream ReadProjectJobLogsResponse)
ReadProjectJobLogsRequest
{
"job_id": "string",
"offset": "int64"
}
Field |
Description |
job_id |
string ID of the job. |
offset |
int64 Log offset. |
ReadProjectJobLogsResponse
{
"logs": [
{
"content": "bytes",
"created_at": "google.protobuf.Timestamp",
// Includes only one of the fields `standard_stream`, `file_path`
"standard_stream": "StandardStream",
"file_path": "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. |
created_at |
Log message creation timestamp. |
standard_stream |
enum StandardStream Program standard streams. Includes only one of the fields
|
file_path |
string System debug log files. Includes only one of the fields |