You need to enable JavaScript to run this app.
导航
DescribeValidationTaskResult
最近更新时间:2024.12.31 11:00:39首次发布时间:2024.12.31 11:00:39

调用 DescribeValidationTaskResult 接口查看数据校验结果。

请求类型

同步请求。

请求参数

参数类型是否必选示例值描述

TaskId

String

b75b64b9fd134026a18420f3******

数据校验任务 ID。

说明

您可以调用 DescribeValidationTasks 接口查看数据校验任务的 ID。

PageNumberInteger1页码。取值范围 1~1000,默认值为 1。
PageSizeInteger10每页记录数。取值范围 1~1000,默认值为 10。

返回参数

参数类型示例值描述

ValidationResult

Object

{
     "FileState": "Unknown",
     "FullValidationResult": [
         {
             "DiffNum": 0,
             "EstimateNum": 100000,
             "FinishTime": 1733964705706,
             "StartTime": 1733964542000
         }
      ],
      "TaskSubType": "FullRowCompare",
      "Total": 1,
      "TotalDiffNum": 0
   }
}

数据校验结果的详细信息。更多参数解释,请参见 ValidationResult

请求示例

POST /?Action=DescribeValidationTaskResult&Version=2022-10-01 HTTP/1.1
Content-Type: application/json
Host:dts.volcengineapi.com
X-Date: 20221001T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****

{
    "TaskId": "b75b64b9fd134026a18420f3******",
    "PageNumber": 1,
    "PageSize": 10
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20241217142238DFA631C9D4A54ACA0885-542ca0",
        "Action": "DescribeValidationTaskResult",
        "Version": "2022-10-01",
        "Service": "dts",
        "Region": "cn-beijing"
    },
    "Result": {
        "ValidationResult": {
            "FileState": "Generated",
            "FullValidationResult": [
                {
                    "DiffNum": 5441,
                    "EstimateNum": 199796,
                    "FinishTime": 1734387280919,
                    "StartTime": 1734387225000,
                    "Database": {
                        "DestObjName": "test****",
                        "ObjectType": "Database",
                        "SrcObjName": "test****"
                    },
                    "Object": {
                        "DestObjName": "test****",
                        "ObjectType": "Database",
                        "SrcObjName": "test****"
                    }
                }
            ],
            "TaskSubType": "FullRowCompare",
            "Total": 1,
            "TotalDiffNum": 5441
        }
    }
}

错误码

更多详情,请参见错误码