根据校验规则校验数据源的质量,并查询校验结果。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| RuleId | long | 是 | 使用的校验规则 ID。您可以使用该规则 ID 与分区表达式等信息进行联合查询。  | 152322134 | 
| StartDate | string | 是 | 业务日期起始时间,格式为 yyyy-MM-dd HH:mm:ss。 该参数与 EndDate 配合使用,二者所取的时间区间不能大于 7 天。  | 2020-09-20 00:00:00 | 
| EndDate | string | 是 | 业务日期截止时间,格式为 yyyy-MM-dd HH:mm:ss。 该参数与 StartDate 配合使用,二者所取的时间区间不能大于 7 天。  | 2020-09-22 00:00:00 | 
| PageSize | integer | 是 | 每页显示的条数,默认为 10 条,最大 20 条。  | 10 | 
| PageNumber | integer | 是 | 页码数。  | 1 | 
| ProjectName | string | 是 | 需要进行数据质量校验的引擎或者数据源名称。  | autotest | 
| ProjectId | long | 是 | DataWorks 项目空间 ID。  | 123456 | 
返回参数
示例
正常返回示例
JSON格式
{
  "HttpStatusCode": 200,
  "ErrorMessage": "You have no permission.",
  "RequestId": "CBA58543-00D4-41****",
  "ErrorCode": 401,
  "Success": true,
  "Data": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 200,
    "RuleChecks": [
      {
        "BlockType": 1,
        "WarningThreshold": 0.1,
        "Property": "type",
        "TableName": "dual",
        "Comment": "The description of the rule.",
        "CheckResultStatus": 2,
        "TemplateName": "Expected value verification",
        "CheckerName": "fulx",
        "RuleId": 123421,
        "FixedCheck": false,
        "Op": ">",
        "UpperValue": 22200,
        "ActualExpression": "ds=20200925",
        "ExternalId": 123112232,
        "TimeCost": 10,
        "Trend": "up",
        "ExternalType": "CWF2",
        "BizDate": 1600704000000,
        "CheckResult": 2,
        "ResultString": "ResultString",
        "MatchExpression": "ds=$[yyyymmdd]",
        "CheckerType": 0,
        "ProjectName": "autotest",
        "BeginTime": 1600704000000,
        "DateType": "YMD",
        "CriticalThreshold": 0.6,
        "IsPrediction": false,
        "RuleName": "The name of the rule.",
        "CheckerId": 7,
        "DiscreteCheck": true,
        "EndTime": 1600704000000,
        "MethodName": "max",
        "LowerValue": 2344,
        "EntityId": 14534343,
        "WhereCondition": "type!='type2'",
        "ExpectValue": 90,
        "TemplateId": 5,
        "TaskId": "16008552981681a0d6****",
        "Id": 2231123,
        "ReferenceValue": [
          {
            "DiscreteProperty": "type1",
            "Value": 20,
            "BizDate": 1600704000000,
            "SingleCheckResult": 2,
            "Threshold": 0.2
          }
        ],
        "SampleValue": [
          {
            "DiscreteProperty": "type2",
            "BizDate": 1600704000000,
            "Value": 23
          }
        ],
        "Open": true
      }
    ]
  }
}错误码
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|---|---|
| 2024-05-10 | API 内部配置变更,不影响调用 | 查看变更详情 | 
| 2023-03-08 | OpenAPI 入参发生变更 | 查看变更详情 | 
