BladePipe 1.6.0 supports Snowflake, Hologres and CloudBerry.
跳到主要内容

Query DataJob Metrics

Interface Overview

Query monitoring metric data of a task by task ID, including task health status, current task type, delay, progress, and other information.

Interface Address

/cloudcanal/console/api/v1/openapi/datajob/queryjobmetric

Request Manner

POST

Request Parameters

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
jobIdDataJob IDbodyTruelong

Public Response Results

ParameterNameParameter DescriptionType(Java)NotNull
code1: Success, 0: FailurestringTrue
dataobjectFalse
msgstringFalse
requestIdstringTrue

Data Parameter Description

Returns the monitoring metric information of the task.

ParameterNameParameter DescriptionNotNullType(Java)
isHealthyWhether the task is healthyTrueboolean
curTaskTypeCurrently running task type. Options: FULL, INCREMENT, CHECK, REVISEFalsestring
increDelayMsIncremental sync delay (milliseconds)Falselong
fullAvgProgressAverage full migration progress (0-100)Falsedecimal
checkedPercentVerification completion percentage (0-100)Falsedecimal
ccDataTaskStatusTask running status. Options: RUNNING, STOP, COMPLETE, etc.Falsestring

Response Example

{
"code": "1",
"msg": "request success",
"data": {
"curTaskType": "INCREMENT",
"increDelayMs": 496245537,
"fullAvgProgress": null,
"checkedPercent": null,
"ccDataTaskStatus": "STOP",
"healthy": false
},
"requestId": "f428d850-ce6d-11f0-8388-f3c768d5e432"
}