日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ListQualityResultsByRule - 校驗數據源質量

根據校驗規則校驗數據源的質量,并查詢校驗結果。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

當前API暫無授權信息透出。

請求參數

名稱類型必填描述示例值
RuleIdlong

使用的校驗規則 ID。您可以使用該規則 ID 與分區表達式等信息進行聯合查詢。

152322134
StartDatestring

業務日期起始時間,格式為 yyyy-MM-dd HH:mm:ss。

該參數與 EndDate 配合使用,二者所取的時間區間不能大于 7 天。

2020-09-20 00:00:00
EndDatestring

業務日期截止時間,格式為 yyyy-MM-dd HH:mm:ss。

該參數與 StartDate 配合使用,二者所取的時間區間不能大于 7 天。

2020-09-22 00:00:00
PageSizeinteger

每頁顯示的條數,默認為 10 條,最大 20 條。

10
PageNumberinteger

頁碼數。

1
ProjectNamestring

需要進行數據質量校驗的引擎或者數據源名稱。

autotest
ProjectIdlong

DataWorks 項目空間 ID。

12345

返回參數

名稱類型描述示例值
object

校驗結果

HttpStatusCodeinteger

HTTP 狀態碼。

200
ErrorMessagestring

錯誤信息。

You have no permission.
RequestIdstring

請求 ID。

CBA58543-00D4-41****
ErrorCodestring

錯誤碼。

401
Successboolean

請求是否成功。

true
Dataobject

校驗結果的頂層結構體。

PageNumberinteger

頁碼數。

1
PageSizeinteger

每頁顯示的條數,默認為 10 條,最大 100 條。

10
TotalCountlong

數據的總記錄數。

200
RuleChecksarray<object>

校驗結果的列表。

RuleChecksobject

校驗結果

BlockTypeinteger

校驗規則的強弱。強弱表示規則的重要程度。取值如下:

  • 1,表示強規則。
  • 0,表示弱規則。 您可以根據實際需求設置重要的規則為強規則。如果使用強規則并觸發了紅色告警,則會阻塞調度任務。
1
WarningThresholdfloat

橙色閾值。表示與樣本預期的偏離程度,您可以根據業務需求自定義該閾值。

0.1
Propertystring

規則屬性的字段,即被校驗數據源表的 column 名稱。

type
TableNamestring

進行校驗的表名稱。

dual
Commentstring

校驗規則的描述。

規則的描述信息。
CheckResultStatusinteger

校驗結果狀態。

2
TemplateNamestring

使用的校驗模板的名稱。

字段唯一值個數期望值校驗
CheckerNamestring

校驗器的名稱。

fulx
RuleIdlong

規則 ID。

123421
FixedCheckboolean

是否為固定值校驗。取值如下:

  • true:是固定值校驗。
  • false:非固定值校驗。
false
Opstring

比較符。

>
UpperValuefloat

預測上限。設置閾值后自動生成。

22200
ActualExpressionstring

被校驗的數據源表的實際分區。

ds=20200925
ExternalIdstring

調度任務的節點 ID。

123112232
TimeCoststring

執行校驗任務花費的時間。

10
Trendstring

校驗結果的趨勢。

up
ExternalTypestring

調度系統的類型。目前僅支持 CWF。

CWF2
BizDatelong

業務日期。如果被校驗的業務主體為離線數據,則業務日期通常為執行校驗操作的前一天。

1600704000000
CheckResultinteger

校驗結果。

2
ResultStringstring

校驗結果的字符串形式。

ResultString
MatchExpressionstring

分區表達式。

ds=$[yyyymmdd]
CheckerTypeinteger

校驗器的類型。

0
ProjectNamestring

需要進行數據質量校驗的引擎或者數據源名稱。

autotest
BeginTimelong

執行校驗操作的開始時間。

1600704000000
DateTypestring

調度周期的類型。通常為 YMD,即年任務、月任務、天任務。

YMD
CriticalThresholdfloat

紅色閾值。表示與樣本預期的偏離程度。您可以根據業務需求自定義該閾值。使用強規則并觸發紅色閾值,會阻塞調度任務。

0.6
IsPredictionboolean

是否為預測的結果。取值如下:

  • true:是預測的結果。
  • false:不是預測的結果。
false
RuleNamestring

規則的名稱。

規則的名稱。
CheckerIdinteger

校驗器的 ID。

7
DiscreteCheckboolean

是否為離散校驗。取值如下:

  • true:是離散校驗。
  • false:非離散校驗。
true
EndTimelong

查詢校驗結果的截止時間。

1600704000000
MethodNamestring

采集樣本數據的方法。包括 avg、count、sum、min、max、count_distinct、user_defined、table_count、table_size、table_dt_load_count、table_dt_refuseload_count、null_value、null_value/table_count、(table_count-count_distinct)/table_count、table_count-count_distinct 等。

max
LowerValuefloat

預測下限。根據您設置的閾值自動生成。

2344
EntityIdlong

分區表達式 ID。

14534343
WhereConditionstring

校驗任務使用的過濾條件。

type!='type2'
ExpectValuefloat

期望值。

90
TemplateIdinteger

使用的校驗模板的 ID。

5
TaskIdstring

校驗任務的 ID。

16008552981681a0d6****
Idlong

主鍵 ID。

2231123
ReferenceValuearray<object>

歷史樣本值。

ReferenceValueobject

校驗結果

DiscretePropertystring

通過 group by 分組后的樣本字段取值。例如 group by 性別字段,則 DiscreteProperty 為男生、女生和 null。

type1
Valuefloat

樣本值。

20
BizDatestring

業務日期。如果被校驗的業務主體為離線數據,則業務日期通常為執行校驗操作的前一天。

1600704000000
SingleCheckResultinteger

校驗結果的字符串。

2
Thresholdfloat

閾值。

0.2
SampleValuearray<object>

當前使用的樣本。

SampleValueobject

校驗結果

DiscretePropertystring

通過 group by 分組后的樣本字段取值。例如 group by 性別字段,則 DiscreteProperty 為男生、女生和 null。

type2
BizDatestring

業務日期。如果被校驗的業務主體為離線數據,則業務日期通常為執行校驗操作的前一天。

1600704000000
Valuefloat

樣本值。

23
Openboolean

規則是否開啟。

true

示例

正常返回示例

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": "規則的描述信息。",
        "CheckResultStatus": 2,
        "TemplateName": "字段唯一值個數期望值校驗",
        "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": "規則的名稱。",
        "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-10API 內部配置變更,不影響調用查看變更詳情
2023-03-08OpenAPI 入參發生變更查看變更詳情