Skip to main content

PredictionService.WatchPredictionRun

Stream the initial PredictionRun and subsequent modifications or deletion. Supply the UID to detect a same-name replacement. Each response is one event.

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

POST /prokrust.api.v1alpha1.PredictionService/WatchPredictionRun

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

Request fields​

WatchResourceRequest

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.
uidstringOptional UID from a prior read. Supply it to fail rather than observe a replacement object with the same name.

Example request​

{
"namespace": "analytics",
"name": "predict-values",
"uid": "7c787fd5-3835-58e1-8901-bd16ab9dec09"
}

Response fields​

WatchResourceResponse

JSON fieldTypeMeaning
typeWatchEventTypeWhether this event is the initial observation, a modification, or deletion.
resourceResourceResource projection for the object affected by the operation.

Example response message​

{
"type": "WATCH_EVENT_TYPE_SNAPSHOT",
"resource": {
"namespace": "analytics",
"name": "predict-values",
"uid": "7c787fd5-3835-58e1-8901-bd16ab9dec09",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"modelSource": {
"kind": "TrainingRun",
"name": "train-values"
},
"graphSnapshotSource": {
"kind": "SnapshotPreparation",
"name": "prepare-events"
},
"resources": {
"requests": {
"cpu": "250m",
"memory": "512Mi",
"ephemeral-storage": "512Mi"
},
"limits": {
"cpu": "500m",
"memory": "2Gi",
"ephemeral-storage": "2Gi"
}
},
"output": {
"format": "Parquet",
"partitionCount": 1
}
}
}
}

Kubernetes reference​

See the PredictionRun reference for the resource configuration and controller observations.