dis__ShowCursor
Obtains a data cursor for a DIS stream partition, letting you read records from a chosen position using sequence numbers, timestamps, TRIM_HORIZON, or LATEST.
Instructions
[DIS] 本接口用于获取数据游标。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"partition-id": "<partition-id>",
"project_id": "<project_id>",
"stream-name": "<stream-name>"
},
"name": "dis__ShowCursor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timestamp | No | 开始读取数据记录的时间戳,与游标类型AT_TIMESTAMP强相关,二者共同确定读取数据的位置。 | |
| project_id | Yes | 项目ID。 | |
| cursor-type | No | 游标类型。 | |
| stream-name | Yes | 已创建的通道名称。 | |
| partition-id | Yes | 通道的分区标识符。 | |
| starting-sequence-number | No | 序列号。序列号是每个记录的唯一标识符。序列号由DIS在数据生产者调用PutRecords操作以添加数据到DIS数据通道时DIS服务自动分配的。同一分区键的序列号通常会随时间变化增加。PutRecords请求之间的时间段越长,序列号越大。 |