Skip to main content
POST
/
tables
/
{tableName}
/
restream
Restream data from a stream to a new table. Then replace the table
curl --request POST \
  --url https://dev.startree.ai/tables/{tableName}/restream \
  --header 'Authorization: <api-key>'
{
  "timeElapsedSinceStartInSeconds": 123,
  "jobId": "<string>",
  "stage": "INIT",
  "restreamConfig": {
    "debugPause": false,
    "destTableNameWithType": "newTableName_REALTIME",
    "maxRebalanceTimeMin": 120,
    "destServerTenant": "restreamTenant",
    "destBrokerTenant": "restreamTenant",
    "maxTableStreamLag": 5000,
    "tableNameWithType": "tableName_REALTIME"
  },
  "tableStreamProgress": {
    "lastProbedLag": 123,
    "lastProbeTimeMs": 123,
    "startTime": 123
  },
  "verboseTableStreamLag": {},
  "forceCommitProgress": {
    "lastProbeTimeMs": 123,
    "startTime": 123,
    "totalConsumingSegments": 123,
    "consumingSegmentsCommitted": 123
  },
  "segmentsToBeCommitted": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

The format of the key is "Basic <token>" or "Bearer <token>"

Path Parameters

tableName
string
required

Name of the table with type to restream

Query Parameters

destTableNameWithType
string
required

Name of the destination table with type

destTenant
string
required

Name of the tenant of the destination table

destBrokerTenant
string

Name of the tenant of the destination table

debugPause
boolean

Pause at start

maxTableStreamLag
integer

Max TableStream Lag

maxRebalanceTimeMin
integer

Max Rebalance Time (Mins)

Response

200 - application/json

successful operation

timeElapsedSinceStartInSeconds
integer
jobId
string
stage
enum<string>
Available options:
INIT,
TABLE_STREAM,
FORCE_COMMIT,
REBALANCE,
DONE,
FAILED,
CANCELLED
restreamConfig
object
tableStreamProgress
object
verboseTableStreamLag
object
forceCommitProgress
object
segmentsToBeCommitted
string[]
I