Skip to main content

CatalogService.WatchTableSnapshot

Stream the initial TableSnapshot 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/WatchTableSnapshot

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": "events-snapshot",
"uid": "db607470-6181-53ce-91b8-615446c4e0fa"
}

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": "events-snapshot",
"uid": "db607470-6181-53ce-91b8-615446c4e0fa",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"data": {
"tableRef": {
"name": "events",
"uid": "17bfeac6-baf4-5465-ae61-1fcd073ab5f2",
"generation": 1,
"semanticDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6"
},
"expectedTableDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6",
"coverage": {
"completeThrough": "2026-05-12T10:00:00Z"
},
"source": {
"mode": "ResolveCurrent"
}
}
}
}
}

Kubernetes reference​

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