CatalogService.WatchSnapshotBuild
Stream the initial SnapshotBuild and subsequent modifications or deletion. Supply the UID to detect a same-name replacement. Each response is one event.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/WatchSnapshotBuild
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 | Optional UID from a prior read. Supply it to fail rather than observe a replacement object with the same name. |
Example request
{
"namespace": "analytics",
"name": "build-events",
"uid": "7ed5f1f4-990e-51f4-a2d4-2397f01135e6"
}
Response fields
| JSON field | Type | Meaning |
|---|---|---|
type | WatchEventType | Whether this event is the initial observation, a modification, or deletion. |
resource | Resource | Resource projection for the object affected by the operation. |
Example response message
{
"type": "WATCH_EVENT_TYPE_SNAPSHOT",
"resource": {
"namespace": "analytics",
"name": "build-events",
"uid": "7ed5f1f4-990e-51f4-a2d4-2397f01135e6",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"request": {
"requestId": "retry-001",
"ordinal": 1,
"snapshotRef": {
"kind": "TableSnapshot",
"name": "events-snapshot",
"uid": "f5d66dad-e2ca-5db3-8ea8-7569d0eaa226"
},
"dataRequestDigest": "sha256:fda8e2881d694c1a37a2bd187acc3c9b1e0b31fd202c091901ba7ce1c8a5e93b"
}
}
}
}
Kubernetes reference
See the SnapshotBuild reference for the resource configuration and controller observations.