Mengkueri detail tugas validasi Kualitas Data.
API ini telah ditinggalkan. Kami merekomendasikan migrasi ke dataworks-public(2024-05-18) - CreateDataQualityScan guna memperoleh fungsionalitas yang lebih baik dan dukungan berkelanjutan. Meskipun API yang telah ditinggalkan ini masih dapat diakses sementara, tidak akan ada pembaruan atau perbaikan bug lebih lanjut.
Deskripsi operasi
Available only with DataWorks Basic Edition or higher.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
ID pemantauan Kualitas Data. |
1006455182 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF |
| DataQualityEvaluationTask |
object |
Data quality monitoring details. |
|
| Target |
object |
Data quality monitoring object. |
|
| Type |
string |
The type of the monitoring object.
|
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.meta_open_api_test_sz.test_partition_tbl |
| PartitionSpec |
string |
Data quality monitoring partition range settings. |
pt=$[yyyymmdd-1] |
| Description |
string |
Description of the quality monitoring task. |
The description of the quality monitoring task. |
| Trigger |
object |
Trigger configuration of the data quality validation task. |
|
| Type |
string |
The trigger type of the monitor. Valid values:
|
ByScheduledTaskInstance |
| TaskIds |
array |
The IDs of scheduling tasks. This parameter is valid only if you set Type to ByScheduledTaskInstance. |
|
|
integer |
The ID of the scheduling task. |
30001 |
|
| RuntimeConf |
string |
Extended configuration. A JSON-formatted string. Only takes effect for EMR-type data quality monitoring.
|
{ "queue": "default", "sqlEngine": "SPARK_SQL" } |
| Id |
integer |
Data quality monitoring ID. |
2178 |
| Name |
string |
Name of the quality monitoring task. |
OpenAPI create a data quality monitoring test |
| ProjectId |
integer |
Workspace ID. |
2626 |
| Hooks |
array<object> |
Callback settings. |
|
|
object |
Hook |
||
| Type |
string |
The hook type. Only one hook type is supported.
|
BlockTaskInstance |
| Condition |
string |
The hook trigger condition. When this condition is met, the hook action is triggered. Only two conditional expressions are supported:
|
(${severity} == "High" AND ${status} == "Critical") OR (${severity} == "Normal" AND ${status} == "Critical") OR (${severity} == "Normal" AND ${status} == "Error") |
| Notifications |
object |
Notification subscription configuration. |
|
| Condition |
string |
The notification trigger condition. When this condition is met, the alert notification is triggered. Only two conditional expressions are supported:
|
(${severity} == "High" AND ${status} == "Critical") OR (${severity} == "Normal" AND ${status} == "Critical") OR (${severity} == "Normal" AND ${status} == "Error") |
| Notifications |
array<object> |
The configurations of alert notifications. |
|
|
array<object> |
|||
| NotificationReceivers |
array<object> |
The configurations of alert recipients. |
|
|
object |
|||
| ReceiverType |
string |
The additional parameters that are required when alerts are sent. The parameters are JSON-formatted strings. The following keys are supported:
Valid values:
Valid values:
|
DingdingUrl |
| Extension |
string |
The extended information. |
{ "atAll": true } |
| ReceiverValues |
array |
The alert recipients. |
|
|
string |
The value of the receiver.
|
https://api.fc.aliyuncs.com/webhook |
|
| NotificationChannels |
array<object> |
The alert notification methods. |
|
|
object |
|||
| Channels |
array |
The alert notification methods. |
|
|
string |
The alert notification method. Valid values:
|
|
|
| DataSourceId |
integer |
Data source ID used by the quality monitoring task. |
45238 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF",
"DataQualityEvaluationTask": {
"Target": {
"Type": "Table",
"DatabaseType": "maxcompute",
"TableGuid": "odps.meta_open_api_test_sz.test_partition_tbl",
"PartitionSpec": "pt=$[yyyymmdd-1]"
},
"Description": "The description of the quality monitoring task.",
"Trigger": {
"Type": "ByScheduledTaskInstance",
"TaskIds": [
30001
]
},
"RuntimeConf": "{ \"queue\": \"default\", \"sqlEngine\": \"SPARK_SQL\" }\n",
"Id": 2178,
"Name": "OpenAPI create a data quality monitoring test",
"ProjectId": 2626,
"Hooks": [
{
"Type": "BlockTaskInstance",
"Condition": "(${severity} == \"High\" AND ${status} == \"Critical\") OR (${severity} == \"Normal\" AND ${status} == \"Critical\") OR (${severity} == \"Normal\" AND ${status} == \"Error\")"
}
],
"Notifications": {
"Condition": "(${severity} == \"High\" AND ${status} == \"Critical\") OR (${severity} == \"Normal\" AND ${status} == \"Critical\") OR (${severity} == \"Normal\" AND ${status} == \"Error\")",
"Notifications": [
{
"NotificationReceivers": [
{
"ReceiverType": "DingdingUrl",
"Extension": "{ \"atAll\": true }\n",
"ReceiverValues": [
"https://api.fc.aliyuncs.com/webhook\n"
]
}
],
"NotificationChannels": [
{
"Channels": [
"Mail"
]
}
]
}
]
},
"DataSourceId": 45238
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.