Updates a data quality monitoring rule template.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Code | string | Yes | The code for the template. | USER_DEFINED:123 |
Name | string | No | The name of the template. The name can be up to 512 characters in length and can contain digits, letters, and punctuation marks. | |
ProjectId | long | Yes | The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID. You must configure this parameter to specify the DataWorks workspace to which the API operation is applied. | 10000 |
DirectoryPath | string | No | The directory in which the template is stored. Slashes (/) are used to separate directory levels. The name of each directory level can be up to 1,024 characters in length. It cannot contain whitespace characters or slashes (/). | |
SamplingConfig | object | No | The sampling settings. | |
Metric | string | No | The metrics used for sampling. Valid values:
| Max |
MetricParameters | string | No | The parameters required for sampling. | {"SQL": "select count(1) from table;"} |
SettingConfig | string | No | The statements that are used to configure the parameters required for sampling before you execute the sampling statements. The statements can be up to 1,000 characters in length. Only the MaxCompute database is supported. | SET odps.sql.udf.timeout=600s; SET odps.sql.python.version=cp27; |
CheckingConfig | object | No | The check settings for sample data. | |
Type | string | No | The type of the monitored object. Valid values:
| Table |
ReferencedSamplesFilter | string | No | The method that is used to query the referenced samples. To obtain some types of thresholds, you need to query reference samples and perform aggregate operations on the reference values. In this example, an expression is used to specify the query method of referenced samples. | { "bizdate": [ "-1", "-7", "-1m" ] } |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "691CA452-D37A-4ED0-9441\n",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|