Skip to main content

CatalogService.WatchGraphSnapshot

Stream the initial GraphSnapshot 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/WatchGraphSnapshot

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-graph-snapshot",
"uid": "6b0df018-5f6c-5e46-84ef-4fcb307f82b2"
}

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-graph-snapshot",
"uid": "6b0df018-5f6c-5e46-84ef-4fcb307f82b2",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"data": {
"graphRef": {
"name": "events-graph",
"uid": "07a43e9d-0b29-5681-a27f-3eeb77e209be",
"generation": 1,
"semanticDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6"
},
"expectedGraphDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6",
"formatVersion": "prokrust.graph/v2",
"samplerVersion": "prokrust.sampler/v1",
"tableSnapshots": {
"events": {
"name": "events-snapshot",
"uid": "f5d66dad-e2ca-5db3-8ea8-7569d0eaa226",
"artifactDigest": "sha256:a24f9f019381d4c071608fa7ed700a44ea2879f0d1ae614069668671e13af510",
"dataIdentity": "sha256:8a2144119702b4ffb0b24b311c4667ce8e22cdcc420c24b8abe5b7f0d87099ad"
}
}
}
}
}
}

Kubernetes reference​

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