See Stacksync in action with a solution architect. Book a demo ↗
Syncs

Syncs

Get sync diagnostics

GET
/v1/workspaces/{workspace_id}/bases/{base_id}/diagnostics

The work queued, in flight, locked and waiting for a rescrape per app and table of a sync, and how much of it is stuck.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

base_id*string

The sync.

Formatuuid

Query Parameters

region*Regions

The region of the sync

Value in"besg""usnv"
stuck_threshold_in_seconds?Stuck Threshold In Seconds

Work older than this is counted as stuck, in seconds

Range1 <= value
Default3600

Response Body

OK

application/json
  1. response

GET /bases/<base_id>/diagnostics

base_id*Base Id
stuck_threshold_in_seconds*Stuck Threshold In Seconds
apps*array<>
Get sync diagnostics
curl -X GET 'https://api.stacksync.com/v1/workspaces/0/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/diagnostics?region=besg'
{  "base_id": "<base_id>",  "stuck_threshold_in_seconds": 0,  "apps": [    {      "app_id": "<app_id>",      "tables": [        {          "table_mapping_id": "<table_mapping_id>",          "table_name": "<table_name>",          "change_queue_count": 0,          "change_queue_future_count": 0,          "change_queue_stuck_count": 0,          "ongoing_write_count": 0,          "ongoing_write_stuck_count": 0,          "record_locks_count": 0,          "record_locks_stuck_count": 0,          "rescrape_count": 0,          "rescrape_stuck_count": 0        }      ]    }  ]}