Skip to main content

CatalogService.GetTableSnapshotProfile

Read verified full-snapshot statistics using the current snapshot UID. Bind displayed counts or time bounds to the returned manifest digest.

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

POST /prokrust.api.v1alpha1.CatalogService/GetTableSnapshotProfile

Request headers​

HeaderValue and purpose
AuthorizationUse Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session.
Content-Typeapplication/json selects ProtoJSON for this unary request.
Connect-Protocol-Version1 selects version 1 of the Connect protocol.

Request fields​

GetTableSnapshotProfileRequest

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.
uidstringKubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance.

Example request​

Set PROKRUST_URL to the installation’s HTTPS origin and PROKRUST_TOKEN to your caller token. Replace the sample values with values from your installation.

curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $PROKRUST_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Connect-Protocol-Version: 1' \
"$PROKRUST_URL/prokrust.api.v1alpha1.CatalogService/GetTableSnapshotProfile" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "events-snapshot",
"uid": "db607470-6181-53ce-91b8-615446c4e0fa"
}
JSON

Response fields​

GetTableSnapshotProfileResponse

JSON fieldTypeMeaning
snapshotRefActivityReferenceIdentity of the TableSnapshot whose verified statistics are reported.
manifestDigeststringSHA-256 identity of the verified manifest. Keep it with file indices so they refer to the same publication.
rowCountuint64 (explicit presence)Number of rows in the full published snapshot when the manifest supplies it. Absence means unknown.
eventTimeColumnstringName of the event-time column for the reported temporal bounds.
minimumEventTimestring (explicit presence)Earliest recorded event time in the full snapshot, when available.
maximumEventTimestring (explicit presence)Latest recorded event time in the full snapshot, when available.
nullCountuint64 (explicit presence)Number of null event-time values across the snapshot, when available.
declaredCoverageJSON objectRequested snapshot coverage. Compare the requested boundary with actual event-time statistics.
scopestringScope of the checked statistics. FullSnapshot describes the committed snapshot as a whole.
unavailableReasonstringReason execution or profile data cannot be shown, such as a missing workflow, missing publication, or denied read.
publishedArtifactDigeststringDigest of the published artifact associated with these statistics.

Example response​

{
"snapshotRef": {
"namespace": "analytics",
"kind": "TableSnapshot",
"name": "events-snapshot",
"uid": "db607470-6181-53ce-91b8-615446c4e0fa"
},
"scope": "FullSnapshot",
"manifestDigest": "sha256:05b3abf2579a5eb66403cd78be557fd860633a1fe2103c7642030defe32c657f",
"rowCount": "128",
"publishedArtifactDigest": "sha256:c7c5c1d70c5dec4416ab6158afd0b223ef40c29b1dc1f97ed9428b94d4cadb1c"
}