调用ListQualityRules根据分区表达式获取校验规则列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| ProjectName | string | 是 | 引擎或者数据源的名称。您可以从数据源配置中获取名称。  | autotest | 
| EntityId | long | 是 | 分区表达式的 ID。您可以调用 GetQualityEntity 获取分区表达式 ID。  | 12345 | 
| PageNumber | integer | 是 | 页码数。  | 1 | 
| PageSize | integer | 是 | 每页显示的条数,默认为 10 条,最大为 20 条。  | 20 | 
| ProjectId | long | 是 | DataWorks 项目空间 ID  | 12345 | 
返回参数
示例
正常返回示例
JSON格式
{
  "HttpStatusCode": 200,
  "RequestId": "38cbdef0-f6cf-49****",
  "ErrorMessage": "You have no permission.",
  "Success": true,
  "ErrorCode": "Invalid.Tenant.ConnectionNotExists",
  "Data": {
    "PageNumber": 1,
    "PageSize": 20,
    "TotalCount": 400,
    "Rules": [
      {
        "BlockType": 0,
        "OnDutyAccountName": "test",
        "Property": "id",
        "WarningThreshold": 10,
        "TableName": "dual",
        "OnDuty": "1912****",
        "Comment": "Verify table rules",
        "RuleCheckerRelationId": 132323,
        "FixCheck": true,
        "MethodId": 21,
        "TemplateName": "Number of SQL task table rows, 1, 7, and 30 days wave detection",
        "Trend": "abs",
        "HistoryWarningThreshold": "history max:40%,history min:10%",
        "RuleType": 0,
        "MatchExpression": "dt=$[yyyymmdd]",
        "ProjectName": "autotest",
        "PropertyKey": "table_count",
        "CriticalThreshold": 40,
        "HistoryCriticalThreshold": "history max:80%,history min:50%",
        "MethodName": "count/table_count",
        "CheckerId": 7,
        "EntityId": 1234,
        "ExpectValue": 1000,
        "TemplateId": 7,
        "Id": 1234,
        "RuleName": "test"
      }
    ]
  }
}错误码
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|---|---|
| 2024-01-22 | OpenAPI 返回结构发生变更 | 查看变更详情 | 
| 2023-07-11 | API 内部配置变更,不影响调用 | 查看变更详情 | 
| 2023-03-08 | OpenAPI 入参发生变更 | 查看变更详情 | 
| 2021-10-26 | OpenAPI 返回结构发生变更 | 查看变更详情 | 
