Skip to main content

ConnectorService.ProbeConnection

Check whether a resolved connection is usable. The workspace planner supplies a deadline and budget. Inspect diagnostics when usable is false.

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

POST /prokrust.connector.v1.ConnectorService/ProbeConnection

Request fields​

ProbeConnectionRequest

JSON fieldTypeMeaning
expectedConnectionIdentityFull identity of the connection the caller resolved. The runtime compares it to its own identity before serving the request.
budgetBudgetDeadline and upstream usage limits for the probe.

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"
},
"budget": {
"deadline": "2026-03-10T12:02:00Z",
"maxSourceBytes": "1048576",
"maxStagedBytes": "0"
}
}

Response fields​

ProbeConnectionResponse

JSON fieldTypeMeaning
usableboolTrue when the provider considers the connection usable.
diagnosticslist of DiagnosticProblems or warnings found during the check.
usageUsageMeasured usage for the completed probe.

Example response​

{
"usable": true,
"usage": {
"sourceBytes": {
"value": "0",
"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"
}
}