UpdateDataQualityEvaluationTask
Updates a data quality check task.
This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - UpdateDataQualityScan for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Operation description
You must purchase DataWorks Basic Edition or later to use this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateDataQualityEvaluationTask |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Target |
object |
No |
The monitored object for data quality monitoring. |
|
| DatabaseType |
string |
No |
The database type of the table. Valid values:
|
maxcompute |
| TableGuid |
string |
No |
The unique ID of the table in DataWorks Data Map. |
odsp.openapi.ods_d_openapi_log |
| PartitionSpec |
string |
No |
The partition settings of the partitioned table. |
dt=$[yyyymmdd-1] |
| Description |
string |
No |
The description of the quality monitoring task. |
OpenAPI data quality monitoring test. |
| Name |
string |
No |
The name of the quality monitoring task. |
OpenAPI data quality monitoring test. |
| RuntimeConf |
string |
No |
The extension configuration. This parameter is a character string in JSON format and takes effect only for EMR data quality monitoring.
|
{ "queue": "default", "sqlEngine": "SPARK_SQL" } |
| Trigger |
object |
No |
The trigger configuration of the data quality check task. |
|
| Type |
string |
No |
The trigger type of the quality monitoring task. Valid values:
|
ByScheduledTaskInstance |
| TaskIds |
array |
No |
The list of scheduled task IDs. This parameter takes effect only when Type is set to ByScheduledTaskInstance. |
|
|
integer |
No |
The ID of the scheduled task node. |
1004979033 |
|
| ProjectId |
integer |
Yes |
The workspace ID. |
10000 |
| Hooks |
array<object> |
No |
The hook settings. |
|
|
object |
No |
Hook |
||
| Type |
string |
No |
The hook action executed after the data quality check is completed. Valid values:
|
ByScheduledTaskInstance |
| Condition |
string |
No |
The Cause of the hook. When this Cause is met, the hook action is triggered. Currently, only the following two types of conditional expressions are supported:
|
${severity} == "High" AND ${status} == "Critical" |
| Notifications |
object |
No |
The notification subscription configuration. |
|
| Condition |
string |
No |
The Cause of the notification. When this Cause is met, a message notification is triggered. Currently, only the following two types of conditional expressions are supported:
|
${severity} == "High" AND ${status} == "Critical" |
| Notifications |
array<object> |
No |
The notification settings. |
|
|
array<object> |
No |
The notification settings. |
||
| NotificationReceivers |
array<object> |
No |
The alert recipient settings. |
|
|
object |
No |
The alert recipient settings. |
||
| ReceiverType |
string |
No |
The alert recipient type. Valid values:
|
DingdingUrl |
| Extension |
string |
No |
The additional parameter settings when an alert is sent. This parameter is in JSON format. Supported keys:
|
{ "atAll": true } |
| ReceiverValues |
array |
No |
The alert recipients. |
|
|
string |
No |
The value of the recipient.
|
https://api.fc.aliyuncs.com/webhook |
|
| NotificationChannels |
array<object> |
No |
The notification methods. |
|
|
object |
No |
The notification methods. |
||
| Channels |
array |
No |
The notification methods. |
|
|
string |
No |
The notification method. Valid values:
|
|
|
| DataSourceId |
integer |
No |
The data source ID. You can call the ListDataSources operation to obtain the data source ID. |
358750 |
| DataQualityRules |
array<object> |
No |
The list of data quality rules associated with data quality monitoring. |
|
|
array<object> |
No |
|||
| Name |
string |
No |
The name of the data quality rule. |
OpenAPI test rules |
| Enabled |
boolean |
No |
Specifies whether the data quality rule is enabled. |
true |
| Severity |
string |
No |
The severity level of the rule for the business, which corresponds to the strong and weak rules on the page. Valid values:
Valid values:
|
Normal |
| Description |
string |
No |
The description of the data quality rule. |
OpenAPI test rules |
| TemplateCode |
string |
No |
The unique identifier of the rule template referenced by the rule. |
SYSTEM:field:null_value:fixed:0 |
| SamplingConfig |
object |
No |
The parameters required for sample collection. |
|
| Metric |
string |
No |
The name of the sampled metric. Valid values:
|
CountNotIn |
| MetricParameters |
string |
No |
The parameters required for sample collection. |
{ "Columns": [ "id", "name" ] , "SQL": "select count(1) from table;"} |
| SettingConfig |
string |
No |
The runtime parameter setting statements inserted before the execution of sampling statements. The maximum length is 1,000 characters. Only MaxCompute is supported. |
odps.sql.type.system.odps2=True,odps.sql.hive.compatible=True |
| SamplingFilter |
string |
No |
The conditions used to filter out unneeded data during sampling. The maximum length is 16,777,215 characters. |
status != 'Succeeded' |
| CheckingConfig |
object |
No |
The sample check settings. |
|
| Type |
string |
No |
The threshold calculation method. Valid values:
|
Fixed |
| ReferencedSamplesFilter |
string |
No |
The expression used to specify the query method for reference samples. Some threshold types require querying reference samples and aggregating their values to derive the comparison threshold. |
{"bizdate": ["-1"]} |
| Thresholds |
object |
No |
The check threshold settings. |
|
| Expected |
object |
No |
The expected threshold settings. |
|
| Operator |
string |
No |
The comparison operator. Valid values:
|
= |
| Value |
string |
No |
The threshold value. |
0 |
| Expression |
string |
No |
The threshold expression. For fluctuation rules, you must use an expression to represent the fluctuation threshold. Examples:
Fixed value rules can also use expressions to configure thresholds. If both are configured, the expression takes precedence over Operator and Value. |
$checkValue > 0.01 |
| Warned |
object |
No |
The threshold settings for normal warnings. |
|
| Operator |
string |
No |
The comparison operator. Valid values:
|
> |
| Value |
string |
No |
The threshold value. |
0.001 |
| Expression |
string |
No |
The threshold expression. For fluctuation rules, you must use an expression to represent the fluctuation threshold. Examples:
Fixed value rules can also use expressions to configure thresholds. If both are configured, the expression takes precedence over Operator and Value. |
$checkValue > 0.01 |
| Critical |
object |
No |
The threshold settings for critical warnings. |
|
| Operator |
string |
No |
The comparison operator. Valid values:
|
> |
| Value |
string |
No |
The threshold value. |
0.01 |
| Expression |
string |
No |
The threshold expression. For fluctuation rules, you must use an expression to represent the fluctuation threshold. Examples:
Fixed value rules can also use expressions to configure thresholds. If both are configured, the expression takes precedence over Operator and Value. |
$checkValue > 0.01 |
| ErrorHandlers |
array<object> |
No |
The error handlers for quality rule check issues. |
|
|
object |
No |
|||
| Type |
string |
No |
The handler type. Valid values:
|
SaveErrorData |
| ErrorDataFilter |
string |
No |
The SQL statement used to filter error data. This parameter is required if the rule is a custom SQL rule. |
SELECT * FROM ods_d_openapi_log WHERE status = 'Error' |
| Id |
integer |
No |
The ID of the check rule. You can call the ListQualityRules operation to obtain the rule ID. |
1022171560 |
| Id |
integer |
Yes |
The ID of the data quality monitoring task. |
7227061794 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Success |
boolean |
Indicates whether the request is successful. |
true |
| RequestId |
string |
The request ID. You can use the ID to locate logs and troubleshoot issues. |
8abcb91f-d266-4073-b907-2ed670378ed1 |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "8abcb91f-d266-4073-b907-2ed670378ed1"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.