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
| JSON field | Type | Meaning |
|---|---|---|
expected | ConnectionIdentity | Full identity of the connection the caller resolved. The runtime compares it to its own identity before serving the request. |
selector | Selector | Provider selector identifying the source to inspect. |
budget | Budget | Deadline 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
| JSON field | Type | Meaning |
|---|---|---|
schema | RowSchema (explicit presence) | Logical row schema if the provider can describe it. |
detectedFormats | list of string | Source data formats the provider recognized. |
metadata | SourceMetadata | Estimates and their source observation time and basis. |
diagnostics | list of Diagnostic | Problems or limitations encountered during inspection. |
usage | Usage | Measured usage for this inspection. |
collectedAt | RFC 3339 timestamp | Time 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"
}