Querying the Synchronization Status of a Professional Event Job
Function
This API is used to query the synchronization status of a professional event job.
URI
POST /v1/{project_id}/eventrouter/jobs/{job_id}/syncDetail
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant resource space ID. |
job_id |
Yes |
String |
Job ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
Yes |
Integer |
Offset. The value ranges from 0 to 10000. |
limit |
Yes |
Integer |
The number of records displayed on a page. The value ranges from 10 to 1000. |
conditions |
No |
Array of Condition objects |
Condition. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
X-Request-Id |
String |
Request ID. |
Parameter |
Type |
Description |
---|---|---|
metadata |
MQSyncDetailMetadata object |
Metadata. |
total |
Integer |
Total number. |
size |
Integer |
Quantity. |
type |
String |
Type. |
items_kafka |
Array of KafkaSyncDetaiData objects |
Return value of the Kafka type. The value is items instead of _kafka. |
items_rocketmq |
Array of RocketMQSyncDetaiData objects |
Return value of the RocketMQ type. The value is items instead of _rocketmq. |
items_redis |
Array of RedisSyncDetaiData objects |
Return value of the Redis type. The value is items instead of _redis. |
Parameter |
Type |
Description |
---|---|---|
sync_remain_total |
Integer |
The total number of remaining events to be synchronized. |
source_key_num |
Integer |
Number of DCS source keys. |
sink_key_num |
Integer |
Number of DCS target keys. |
Parameter |
Type |
Description |
---|---|---|
topic |
String |
Topic. |
number |
Integer |
Quantity. |
sync_remain_num |
Integer |
The number of remaining events to be synchronized. |
offset_details |
Array of OffsetDetail objects |
Offset details. |
Parameter |
Type |
Description |
---|---|---|
partition |
KafkaPartition object |
Partition. |
offset |
KafkaOffset object |
Offset. |
Parameter |
Type |
Description |
---|---|---|
cluter |
String |
Cluster. |
topic |
String |
Topic. |
partition |
Integer |
Partition. |
Parameter |
Type |
Description |
---|---|---|
offset |
Integer |
Offset. |
max_offset |
Integer |
Maximum offset. |
Parameter |
Type |
Description |
---|---|---|
topic |
String |
Topic. |
number |
Integer |
Quantity. |
sync_remain_num |
Integer |
The number of remaining events to be synchronized. |
offset_details |
Array of RocketMQOffsetDetail objects |
Offset details. |
Parameter |
Type |
Description |
---|---|---|
queue |
RocketMQQueueInfo object |
Queue. |
offset |
RocketMQOffsetInfo object |
Offset. |
Parameter |
Type |
Description |
---|---|---|
rocketmq_topic |
String |
RocketMQ topic. |
rocketmq_broker |
String |
RocketMQ broker. |
rocketmq_queue |
Integer |
RocketMQ queue. |
Parameter |
Type |
Description |
---|---|---|
rocketmq_offset |
Integer |
RocketMQ offset. |
max_offset |
Integer |
Maximum offset of RocketMQ. |
Parameter |
Type |
Description |
---|---|---|
sourceAddr |
String |
Source IP address + port, which describes the source address information. |
sinkAddr |
String |
Target IP address + port: which describes the target address information. |
taskProgress |
String |
Job progress. The value is within the range [0,1]. 1 indicates that the progress is 100%. |
syncPhase |
String |
Synchronization phase. Options: full, full+incremental. Currently, only the full+incremental mode is supported. |
sourceOffset |
Integer |
Source offset, which indicates the number of synchronized events in source. |
sinkOffset |
Integer |
Target offset, which indicates the number of synchronized events in target. |
taskStatus |
String |
Job status. Options: created, syncing, failed, stopped, finish. |
Example Requests
Check the synchronization status of the professional event stream job whose ID is 123.
POST https://{eg_endpoint}/v1/{project_id}/eventrouter/jobs/123/syncDetail { "offset" : 0, "limit" : 1000 }
Example Responses
Status code: 200
Request succeeded.
{ "metadata" : { "sync_remain_total" : 0, "source_key_num" : 4, "sink_key_num" : 1 }, "total" : 1, "size" : 1, "type" : "DCS" }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot