Skip to main content

CatalogService.StreamGraphSnapshotLogs

Stream log lines for one verified GraphSnapshot workflow pod and container. Select the target with ListGraphSnapshotLogTargets. Each response contains one line.

CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.

POST /prokrust.api.v1alpha1.CatalogService/StreamGraphSnapshotLogs

This RPC uses a response stream. The example shows one message. Use a streaming Connect client for the sequence.

Request fields​

StreamLogsRequest

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
namestringKubernetes metadata.name of the selected resource in this namespace.
uidstringRequired. Pod and container must come from List*LogTargets.
podNamestringName of the workflow pod that owns this log target.
containerstringContainer name within the selected pod. Use a value returned by the log target listing.
tailLinesint640 reads from the beginning; otherwise 1..10000.
followboolTrue keeps the stream open for new log lines after the initial tail.

Example request​

{
"namespace": "analytics",
"name": "events-graph-snapshot",
"uid": "6b0df018-5f6c-5e46-84ef-4fcb307f82b2",
"podName": "worker-0",
"container": "main",
"tailLines": "100",
"follow": true
}

Response fields​

StreamLogsResponse

JSON fieldTypeMeaning
podNamestringName of the workflow pod that owns this log target.
containerstringContainer name within the selected pod. Use a value returned by the log target listing.
linestringOne log line from the selected container.

Example response message​

{
"podName": "worker-0",
"container": "main",
"line": "Worker started."
}