PredictionService.StreamPredictionRunLogs
Stream log lines for one verified PredictionRun workflow pod and container. Select the target with ListPredictionRunLogTargets. Each response contains one line.
PredictionService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.PredictionService/StreamPredictionRunLogs
This RPC uses a response stream. The example shows one message. Use a streaming Connect client for the sequence.
Request fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
name | string | Kubernetes metadata.name of the selected resource in this namespace. |
uid | string | Required. Pod and container must come from List*LogTargets. |
podName | string | Name of the workflow pod that owns this log target. |
container | string | Container name within the selected pod. Use a value returned by the log target listing. |
tailLines | int64 | 0 reads from the beginning; otherwise 1..10000. |
follow | bool | True keeps the stream open for new log lines after the initial tail. |
Example request
{
"namespace": "analytics",
"name": "predict-values",
"uid": "7c787fd5-3835-58e1-8901-bd16ab9dec09",
"podName": "worker-0",
"container": "main",
"tailLines": "100",
"follow": true
}
Response fields
| JSON field | Type | Meaning |
|---|---|---|
podName | string | Name of the workflow pod that owns this log target. |
container | string | Container name within the selected pod. Use a value returned by the log target listing. |
line | string | One log line from the selected container. |
Example response message
{
"podName": "worker-0",
"container": "main",
"line": "Worker started."
}