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
| Header | Value and purpose |
|---|---|
Authorization | Use Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session. |
Content-Type | application/json selects ProtoJSON for this unary request. |
Connect-Protocol-Version | 1 selects version 1 of the Connect protocol. |
Request fields
GetTableSnapshotProfileRequest
| 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 | Kubernetes 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 field | Type | Meaning |
|---|---|---|
snapshotRef | ActivityReference | Identity of the TableSnapshot whose verified statistics are reported. |
manifestDigest | string | SHA-256 identity of the verified manifest. Keep it with file indices so they refer to the same publication. |
rowCount | uint64 (explicit presence) | Number of rows in the full published snapshot when the manifest supplies it. Absence means unknown. |
eventTimeColumn | string | Name of the event-time column for the reported temporal bounds. |
minimumEventTime | string (explicit presence) | Earliest recorded event time in the full snapshot, when available. |
maximumEventTime | string (explicit presence) | Latest recorded event time in the full snapshot, when available. |
nullCount | uint64 (explicit presence) | Number of null event-time values across the snapshot, when available. |
declaredCoverage | JSON object | Requested snapshot coverage. Compare the requested boundary with actual event-time statistics. |
scope | string | Scope of the checked statistics. FullSnapshot describes the committed snapshot as a whole. |
unavailableReason | string | Reason execution or profile data cannot be shown, such as a missing workflow, missing publication, or denied read. |
publishedArtifactDigest | string | Digest 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"
}