DataQualityRuleTemplate

Updated at:

Parameter

Type

Description

Example

object

The quality rule template.

Code

string

The globally unique code of the rule template.

USER_DEFINED:123

Name

string

The name of the rule template.

Table row count check

TenantId

integer

The DataWorks tenant ID.

ProjectId

integer

The DataWorks workspace ID.

2043

SamplingConfig

object

The sample collection settings.

Metric

string

The name of the sampled metric.

Min

MetricParameters

string

The parameters required for sample collection.

{ "SQL": "SELECT min(id) from table;" }

SettingConfig

string

The runtime parameter setting statements inserted before the execution of the sampling statement. The maximum length is 1,000 characters. Currently, only MaxCompute is supported.

SET odps.sql.udf.timeout=600s;

CheckingConfig

object

The sample check settings.

Type

string

The threshold calculation method.

Fixed

ReferencedSamplesFilter

string

The expression used to query referenced samples. Some threshold types require querying referenced samples and aggregating their values to derive the comparison threshold.

{ "bizdate": [ "-1", "-7", "-1m" ] }

VisibleScope

string

The visibility scope of the template.

Project

DirectoryPath

string

The category directory where the custom template is stored. Levels are separated by forward slashes.

/ods/OrderData