Skip to main content

ConnectorService.InspectSource

Ask the provider for available schema, formats and estimates before staging rows. The example inspects the synthetic events dataset. Compare source observation time with collection time.

ConnectorService · Connector runtime API for provider implementers. The platform calls the provider runtime using its authenticated workload transport.

POST /prokrust.connector.v1.ConnectorService/InspectSource

Request fields​

InspectSourceRequest

JSON fieldTypeMeaning
expectedConnectionIdentityFull identity of the connection the caller resolved. The runtime compares it to its own identity before serving the request.
selectorSelectorProvider selector identifying the source to inspect.
budgetBudgetDeadline and upstream usage limits for the inspection.

Example request​

{
"expected": {
"installationNamespaceUid": "00000000-0000-4000-8000-000000000001",
"workspaceNamespaceUid": "00000000-0000-4000-8000-000000000002",
"connection": {
"apiVersion": "sources.prokrust.ai/v1beta1",
"kind": "SyntheticConnection",
"namespace": "analytics",
"name": "fixture",
"uid": "00000000-0000-4000-8000-000000000003"
},
"providerId": "prokrust.ai/synthetic",
"providerMajor": 1,
"configDigest": "sha256:b0d4913f313bf0e18b6ec2d81d84ff748bdd415a26cb32243978b22b248567bc"
},
"selector": {
"schemaVersion": "v1",
"canonicalJson": "eyJkYXRhc2V0IjoiZXZlbnRzIn0="
},
"budget": {
"deadline": "2026-03-10T12:02:00Z",
"maxSourceBytes": "1048576",
"maxStagedBytes": "0"
}
}

Response fields​

InspectSourceResponse

JSON fieldTypeMeaning
schemaRowSchema (explicit presence)Logical row schema if the provider can describe it.
detectedFormatslist of stringSource data formats the provider recognized.
metadataSourceMetadataEstimates and their source observation time and basis.
diagnosticslist of DiagnosticProblems or limitations encountered during inspection.
usageUsageMeasured usage for this inspection.
collectedAtRFC 3339 timestampTime when the runtime collected this response.

Example response​

{
"detectedFormats": [
"csv"
],
"metadata": {
"estimatedRows": "128",
"estimatedBytes": "7092",
"estimatedObjects": "2",
"observedAt": "2026-03-10T12:00:00Z",
"basis": "synthetic-generator-metadata"
},
"usage": {
"sourceBytes": {
"value": "145",
"certainty": "USAGE_CERTAINTY_EXACT"
},
"stagedBytes": {
"value": "0",
"certainty": "USAGE_CERTAINTY_EXACT"
},
"sourceRequests": {
"value": "0",
"certainty": "USAGE_CERTAINTY_EXACT"
},
"final": true,
"invocationId": "00000000-0000-4000-8000-000000000005"
},
"collectedAt": "2026-03-10T12:00:00Z"
}