品質モニタリングタスクインスタンスリストのページング照会を実行します。
この API は廃止されました。一時的にアクセス可能ですが、更新やバグ修正対応は一切行われません。代わりに dataworks-public(2024-05-18) - ListDataQualityScanRuns への移行を推奨します。より強化された機能に加え、サポートも引き続きご利用いただけます。
操作説明
この機能を使用するには、DataWorks Basic Edition 以上を購入する必要があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dataworks:* |
list |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ProjectId |
integer |
必須 |
DataWorks ワークスペースの ID。 |
100 |
| DataQualityEvaluationTaskId |
integer |
任意 |
データ品質評価タスクの ID。 |
10000 |
| TableGuid |
string |
任意 |
Data Map におけるテーブルの一意の ID。 |
odps.unit_test.tb_unit_test |
| CreateTimeFrom |
integer |
任意 |
データ品質評価タスクインスタンスの最も早い開始時刻。 |
1710239005403 |
| CreateTimeTo |
integer |
任意 |
データ品質評価タスクインスタンスの最も遅い開始時刻。 |
1710239005403 |
| BizdateFrom |
string |
任意 |
品質評価タスクのビジネス開始日。 |
2024-04-01 |
| BizdateTo |
string |
任意 |
品質評価タスクのビジネス終了日。 |
2024-05-01 |
| TriggerClientId |
string |
任意 |
TriggerContext 内の TriggerClientId。 |
1001 |
| TriggerClient |
string |
任意 |
TriggerContext 内の TriggerClient。 |
CWF2 |
| PageSize |
integer |
必須 |
リストのページング照会のページサイズ。デフォルト値: 10。 |
10 |
| PageNumber |
integer |
必須 |
リストのページング照会のページ番号。デフォルト値: 1。 |
1 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
戻り値。 |
||
| RequestId |
string |
API リクエスト ID。 |
691CA452-D37A-4ED**** |
| PagingInfo |
object |
品質評価タスクインスタンスのページング照会結果。 |
|
| PageNumber |
integer |
ページ番号。 |
1 |
| PageSize |
integer |
ページサイズ。 |
10 |
| TotalCount |
integer |
レコードの総数。 |
294 |
| DataQualityEvaluationTaskInstances |
array<object> |
正常にトリガーされた TaskInstance。 |
|
|
array<object> |
|||
| Id |
integer |
The ID of the instance. |
10001 |
| CreateTime |
integer |
The time at which the instance was generated. |
1710239005403 |
| FinishTime |
integer |
The time at which the instance finished running. |
1710239005403 |
| Status |
string |
The status of the instance. Valid values:
|
Critical |
| Parameters |
string |
The parameters configured for the instance. |
{ "bizdate": "20240517", "triggerTime": "1710239005403" } |
| TriggerContext |
string |
The information about the trigger module of the instance. |
{ "TriggerClientId": 10001, "TriggerClient": "CWF2" } |
| ProjectId |
integer |
The DataWorks workspace ID. |
100 |
| Task |
object |
The snapshot of the configurations for the task when the task starts. |
|
| Id |
integer |
The task ID. |
10001 |
| Description |
string |
The description of the task. |
This is a daily run data quality evaluation plan. |
| ProjectId |
integer |
The workspace ID. |
100 |
| Target |
object |
The monitored object of the task. |
|
| Type |
string |
The type of the monitored object. Valid values:
|
Table |
| DatabaseType |
string |
The type of the database to which the table belongs. Valid values:
|
maxcompute |
| TableGuid |
string |
The ID of the table in Data Map. |
odps.unit_test.tb_unit_test |
| PartitionSpec |
string |
The configuration of the partitioned table. |
ds=$[yyyymmdd-1] |
| Trigger |
object |
The trigger configuration of the task. |
|
| Type |
string |
The trigger condition of the task. Valid values:
|
ByScheduledTaskInstance |
| TaskIds |
array |
The IDs of the auto triggered nodes of which the instances are successfully run. |
|
|
integer |
The ID of the auto triggered node. |
10000 |
|
| RuntimeConf |
string |
The configuration of the data source. The value of the queue field is default, and that of the sqlEngine field can be set to SPARK_SQL, KYUUBI, PRESTO_SQL, or HIVE_SQL. The value default indicates the YARN queue for E-MapReduce (EMR) tasks. |
{ "queue": "default", "sqlEngine": "SPARK_SQL" } |
| Hooks |
array<object> |
The callback configurations of the task during the instance lifecycle. Blocking an auto triggered node is a type of callback event. Only this type is supported. |
|
|
object |
|||
| Type |
string |
The type of the callback event. Valid values:
|
BlockTaskInstance |
| Condition |
string |
The trigger configuration of the callback event. |
${severity} == "High" AND ${status} == "Critical" |
| Notifications |
object |
The configurations for alert notifications. |
|
| Condition |
string |
The trigger condition of the alert notification. |
${severity} == "High" |
| Notifications |
array<object> |
The configurations for the alert notification. |
|
|
array<object> |
|||
| NofiticationReceivers |
array<object> |
The alert recipients. |
|
|
object |
|||
| ReceiverType |
string |
The type of the alert recipient. Valid values:
|
AliUid |
| Extension |
string |
The extended information in the JSON format. For example, the DingTalk chatbot can remind all members in a DingTalk group by using the at sign (@). |
{"atAll":"true"} |
| ReceiverValues |
array |
The alert recipients. |
|
|
string |
The alert recipient. |
10000001 |
|
| NotificationChannels |
array<object> |
The alert notification methods. |
|
|
object |
|||
| Channels |
array |
The alert notification methods. |
|
|
string |
|
|
|
| Name |
string |
The name of the monitor. |
Quality verification task |
例
成功レスポンス
JSONJSON
{
"RequestId": "691CA452-D37A-4ED****",
"PagingInfo": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 294,
"DataQualityEvaluationTaskInstances": [
{
"Id": 10001,
"CreateTime": 1710239005403,
"FinishTime": 1710239005403,
"Status": "Critical",
"Parameters": "{\n \"bizdate\": \"20240517\",\n \"triggerTime\": \"1710239005403\"\n}",
"TriggerContext": "{\n \"TriggerClientId\": 10001,\n \"TriggerClient\": \"CWF2\"\n}",
"ProjectId": 100,
"Task": {
"Id": 10001,
"Description": "This is a daily run data quality evaluation plan.",
"ProjectId": 100,
"Target": {
"Type": "Table",
"DatabaseType": "maxcompute",
"TableGuid": "odps.unit_test.tb_unit_test",
"PartitionSpec": "ds=$[yyyymmdd-1]"
},
"Trigger": {
"Type": "ByScheduledTaskInstance",
"TaskIds": [
10000
]
},
"RuntimeConf": "{ \"queue\": \"default\", \"sqlEngine\": \"SPARK_SQL\" }",
"Hooks": [
{
"Type": "BlockTaskInstance",
"Condition": "${severity} == \"High\" AND ${status} == \"Critical\""
}
],
"Notifications": {
"Condition": "${severity} == \"High\"",
"Notifications": [
{
"NofiticationReceivers": [
{
"ReceiverType": "AliUid",
"Extension": "{\"atAll\":\"true\"}",
"ReceiverValues": [
"10000001"
]
}
],
"NotificationChannels": [
{
"Channels": [
"Mail"
]
}
]
}
]
},
"Name": "Quality verification task"
}
}
]
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。