1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WedataQualityRule
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack

    Provides a resource to create a wedata quality_rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const rule = new tencentcloud.WedataQualityRule("rule", {
        alarmLevel: 1,
        conditionType: 1,
        createRuleScene: 1,
        databaseName: "default",
        datasourceId: "65253",
        description: "tf test rule1",
        name: "at_src_mysql2hive_prod_cq_makeup_09db_1_di_表行数_tf_test",
        projectId: "3016337760439783424",
        qualityDim: 1,
        ruleGroupId: 949,
        ruleTemplateId: 6142,
        sourceEngineTypes: [
            2,
            4,
            16,
            64,
            128,
            256,
            512,
            1024,
        ],
        sourceObjectDataTypeName: "table",
        sourceObjectValue: "表",
        tableId: "175",
        tableName: "at_src_mysql2hive_prod_cq_makeup_09db_1_di",
        type: 1,
        compareRule: {
            computeExpression: "0o1o2",
            cycleStep: 0,
            items: [
                {
                    compareType: 1,
                    operator: ">",
                    valueComputeType: 0,
                    valueLists: [{
                        value: "100",
                        valueType: 3,
                    }],
                },
                {
                    compareType: 1,
                    operator: "<",
                    valueComputeType: 0,
                    valueLists: [{
                        value: "201",
                        valueType: 3,
                    }],
                },
                {
                    compareType: 1,
                    operator: "==",
                    valueComputeType: 0,
                    valueLists: [{
                        value: "102",
                        valueType: 3,
                    }],
                },
            ],
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    rule = tencentcloud.WedataQualityRule("rule",
        alarm_level=1,
        condition_type=1,
        create_rule_scene=1,
        database_name="default",
        datasource_id="65253",
        description="tf test rule1",
        name="at_src_mysql2hive_prod_cq_makeup_09db_1_di_表行数_tf_test",
        project_id="3016337760439783424",
        quality_dim=1,
        rule_group_id=949,
        rule_template_id=6142,
        source_engine_types=[
            2,
            4,
            16,
            64,
            128,
            256,
            512,
            1024,
        ],
        source_object_data_type_name="table",
        source_object_value="表",
        table_id="175",
        table_name="at_src_mysql2hive_prod_cq_makeup_09db_1_di",
        type=1,
        compare_rule={
            "compute_expression": "0o1o2",
            "cycle_step": 0,
            "items": [
                {
                    "compare_type": 1,
                    "operator": ">",
                    "value_compute_type": 0,
                    "value_lists": [{
                        "value": "100",
                        "value_type": 3,
                    }],
                },
                {
                    "compare_type": 1,
                    "operator": "<",
                    "value_compute_type": 0,
                    "value_lists": [{
                        "value": "201",
                        "value_type": 3,
                    }],
                },
                {
                    "compare_type": 1,
                    "operator": "==",
                    "value_compute_type": 0,
                    "value_lists": [{
                        "value": "102",
                        "value_type": 3,
                    }],
                },
            ],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewWedataQualityRule(ctx, "rule", &tencentcloud.WedataQualityRuleArgs{
    			AlarmLevel:      pulumi.Float64(1),
    			ConditionType:   pulumi.Float64(1),
    			CreateRuleScene: pulumi.Float64(1),
    			DatabaseName:    pulumi.String("default"),
    			DatasourceId:    pulumi.String("65253"),
    			Description:     pulumi.String("tf test rule1"),
    			Name:            pulumi.String("at_src_mysql2hive_prod_cq_makeup_09db_1_di_表行数_tf_test"),
    			ProjectId:       pulumi.String("3016337760439783424"),
    			QualityDim:      pulumi.Float64(1),
    			RuleGroupId:     pulumi.Float64(949),
    			RuleTemplateId:  pulumi.Float64(6142),
    			SourceEngineTypes: pulumi.Float64Array{
    				pulumi.Float64(2),
    				pulumi.Float64(4),
    				pulumi.Float64(16),
    				pulumi.Float64(64),
    				pulumi.Float64(128),
    				pulumi.Float64(256),
    				pulumi.Float64(512),
    				pulumi.Float64(1024),
    			},
    			SourceObjectDataTypeName: pulumi.String("table"),
    			SourceObjectValue:        pulumi.String("表"),
    			TableId:                  pulumi.String("175"),
    			TableName:                pulumi.String("at_src_mysql2hive_prod_cq_makeup_09db_1_di"),
    			Type:                     pulumi.Float64(1),
    			CompareRule: &tencentcloud.WedataQualityRuleCompareRuleArgs{
    				ComputeExpression: pulumi.String("0o1o2"),
    				CycleStep:         pulumi.Float64(0),
    				Items: tencentcloud.WedataQualityRuleCompareRuleItemArray{
    					&tencentcloud.WedataQualityRuleCompareRuleItemArgs{
    						CompareType:      pulumi.Float64(1),
    						Operator:         pulumi.String(">"),
    						ValueComputeType: pulumi.Float64(0),
    						ValueLists: tencentcloud.WedataQualityRuleCompareRuleItemValueListArray{
    							&tencentcloud.WedataQualityRuleCompareRuleItemValueListArgs{
    								Value:     pulumi.String("100"),
    								ValueType: pulumi.Float64(3),
    							},
    						},
    					},
    					&tencentcloud.WedataQualityRuleCompareRuleItemArgs{
    						CompareType:      pulumi.Float64(1),
    						Operator:         pulumi.String("<"),
    						ValueComputeType: pulumi.Float64(0),
    						ValueLists: tencentcloud.WedataQualityRuleCompareRuleItemValueListArray{
    							&tencentcloud.WedataQualityRuleCompareRuleItemValueListArgs{
    								Value:     pulumi.String("201"),
    								ValueType: pulumi.Float64(3),
    							},
    						},
    					},
    					&tencentcloud.WedataQualityRuleCompareRuleItemArgs{
    						CompareType:      pulumi.Float64(1),
    						Operator:         pulumi.String("=="),
    						ValueComputeType: pulumi.Float64(0),
    						ValueLists: tencentcloud.WedataQualityRuleCompareRuleItemValueListArray{
    							&tencentcloud.WedataQualityRuleCompareRuleItemValueListArgs{
    								Value:     pulumi.String("102"),
    								ValueType: pulumi.Float64(3),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var rule = new Tencentcloud.WedataQualityRule("rule", new()
        {
            AlarmLevel = 1,
            ConditionType = 1,
            CreateRuleScene = 1,
            DatabaseName = "default",
            DatasourceId = "65253",
            Description = "tf test rule1",
            Name = "at_src_mysql2hive_prod_cq_makeup_09db_1_di_表行数_tf_test",
            ProjectId = "3016337760439783424",
            QualityDim = 1,
            RuleGroupId = 949,
            RuleTemplateId = 6142,
            SourceEngineTypes = new[]
            {
                2,
                4,
                16,
                64,
                128,
                256,
                512,
                1024,
            },
            SourceObjectDataTypeName = "table",
            SourceObjectValue = "表",
            TableId = "175",
            TableName = "at_src_mysql2hive_prod_cq_makeup_09db_1_di",
            Type = 1,
            CompareRule = new Tencentcloud.Inputs.WedataQualityRuleCompareRuleArgs
            {
                ComputeExpression = "0o1o2",
                CycleStep = 0,
                Items = new[]
                {
                    new Tencentcloud.Inputs.WedataQualityRuleCompareRuleItemArgs
                    {
                        CompareType = 1,
                        Operator = ">",
                        ValueComputeType = 0,
                        ValueLists = new[]
                        {
                            new Tencentcloud.Inputs.WedataQualityRuleCompareRuleItemValueListArgs
                            {
                                Value = "100",
                                ValueType = 3,
                            },
                        },
                    },
                    new Tencentcloud.Inputs.WedataQualityRuleCompareRuleItemArgs
                    {
                        CompareType = 1,
                        Operator = "<",
                        ValueComputeType = 0,
                        ValueLists = new[]
                        {
                            new Tencentcloud.Inputs.WedataQualityRuleCompareRuleItemValueListArgs
                            {
                                Value = "201",
                                ValueType = 3,
                            },
                        },
                    },
                    new Tencentcloud.Inputs.WedataQualityRuleCompareRuleItemArgs
                    {
                        CompareType = 1,
                        Operator = "==",
                        ValueComputeType = 0,
                        ValueLists = new[]
                        {
                            new Tencentcloud.Inputs.WedataQualityRuleCompareRuleItemValueListArgs
                            {
                                Value = "102",
                                ValueType = 3,
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataQualityRule;
    import com.pulumi.tencentcloud.WedataQualityRuleArgs;
    import com.pulumi.tencentcloud.inputs.WedataQualityRuleCompareRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var rule = new WedataQualityRule("rule", WedataQualityRuleArgs.builder()
                .alarmLevel(1.0)
                .conditionType(1.0)
                .createRuleScene(1.0)
                .databaseName("default")
                .datasourceId("65253")
                .description("tf test rule1")
                .name("at_src_mysql2hive_prod_cq_makeup_09db_1_di_表行数_tf_test")
                .projectId("3016337760439783424")
                .qualityDim(1.0)
                .ruleGroupId(949.0)
                .ruleTemplateId(6142.0)
                .sourceEngineTypes(            
                    2.0,
                    4.0,
                    16.0,
                    64.0,
                    128.0,
                    256.0,
                    512.0,
                    1024.0)
                .sourceObjectDataTypeName("table")
                .sourceObjectValue("表")
                .tableId("175")
                .tableName("at_src_mysql2hive_prod_cq_makeup_09db_1_di")
                .type(1.0)
                .compareRule(WedataQualityRuleCompareRuleArgs.builder()
                    .computeExpression("0o1o2")
                    .cycleStep(0.0)
                    .items(                
                        WedataQualityRuleCompareRuleItemArgs.builder()
                            .compareType(1.0)
                            .operator(">")
                            .valueComputeType(0.0)
                            .valueLists(WedataQualityRuleCompareRuleItemValueListArgs.builder()
                                .value("100")
                                .valueType(3.0)
                                .build())
                            .build(),
                        WedataQualityRuleCompareRuleItemArgs.builder()
                            .compareType(1.0)
                            .operator("<")
                            .valueComputeType(0.0)
                            .valueLists(WedataQualityRuleCompareRuleItemValueListArgs.builder()
                                .value("201")
                                .valueType(3.0)
                                .build())
                            .build(),
                        WedataQualityRuleCompareRuleItemArgs.builder()
                            .compareType(1.0)
                            .operator("==")
                            .valueComputeType(0.0)
                            .valueLists(WedataQualityRuleCompareRuleItemValueListArgs.builder()
                                .value("102")
                                .valueType(3.0)
                                .build())
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      rule:
        type: tencentcloud:WedataQualityRule
        properties:
          alarmLevel: 1
          conditionType: 1
          createRuleScene: 1
          databaseName: default
          datasourceId: 65253
          description: tf test rule1
          name: at_src_mysql2hive_prod_cq_makeup_09db_1_di_表行数_tf_test
          projectId: 3.0163377604397834e+18
          qualityDim: 1
          ruleGroupId: 949
          ruleTemplateId: 6142
          sourceEngineTypes:
            - 2
            - 4
            - 16
            - 64
            - 128
            - 256
            - 512
            - 1024
          sourceObjectDataTypeName: table
          sourceObjectValue: 
          tableId: 175
          tableName: at_src_mysql2hive_prod_cq_makeup_09db_1_di
          type: 1
          compareRule:
            computeExpression: 0o1o2
            cycleStep: 0
            items:
              - compareType: 1
                operator: '>'
                valueComputeType: 0
                valueLists:
                  - value: 100
                    valueType: 3
              - compareType: 1
                operator: <
                valueComputeType: 0
                valueLists:
                  - value: 201
                    valueType: 3
              - compareType: 1
                operator: ==
                valueComputeType: 0
                valueLists:
                  - value: 102
                    valueType: 3
    

    Create WedataQualityRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WedataQualityRule(name: string, args: WedataQualityRuleArgs, opts?: CustomResourceOptions);
    @overload
    def WedataQualityRule(resource_name: str,
                          args: WedataQualityRuleArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def WedataQualityRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          database_name: Optional[str] = None,
                          type: Optional[float] = None,
                          compare_rule: Optional[WedataQualityRuleCompareRuleArgs] = None,
                          source_engine_types: Optional[Sequence[float]] = None,
                          alarm_level: Optional[float] = None,
                          create_rule_scene: Optional[float] = None,
                          project_id: Optional[str] = None,
                          datasource_id: Optional[str] = None,
                          rule_template_id: Optional[float] = None,
                          source_object_data_type_name: Optional[str] = None,
                          description: Optional[str] = None,
                          field_config: Optional[WedataQualityRuleFieldConfigArgs] = None,
                          index: Optional[str] = None,
                          name: Optional[str] = None,
                          custom_sql: Optional[str] = None,
                          quality_dim: Optional[float] = None,
                          rel_condition_expr: Optional[str] = None,
                          rule_group_id: Optional[float] = None,
                          condition_type: Optional[float] = None,
                          schema_name: Optional[str] = None,
                          condition_expression: Optional[str] = None,
                          database_id: Optional[str] = None,
                          source_object_value: Optional[str] = None,
                          table_id: Optional[str] = None,
                          table_name: Optional[str] = None,
                          target_catalog_name: Optional[str] = None,
                          target_condition_expr: Optional[str] = None,
                          target_database_id: Optional[str] = None,
                          target_database_name: Optional[str] = None,
                          target_object_value: Optional[str] = None,
                          target_schema_name: Optional[str] = None,
                          target_table_id: Optional[str] = None,
                          target_table_name: Optional[str] = None,
                          task_id: Optional[str] = None,
                          catalog_name: Optional[str] = None,
                          wedata_quality_rule_id: Optional[str] = None)
    func NewWedataQualityRule(ctx *Context, name string, args WedataQualityRuleArgs, opts ...ResourceOption) (*WedataQualityRule, error)
    public WedataQualityRule(string name, WedataQualityRuleArgs args, CustomResourceOptions? opts = null)
    public WedataQualityRule(String name, WedataQualityRuleArgs args)
    public WedataQualityRule(String name, WedataQualityRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WedataQualityRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args WedataQualityRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WedataQualityRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WedataQualityRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataQualityRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WedataQualityRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    WedataQualityRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The WedataQualityRule resource accepts the following input properties:

    AlarmLevel double
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    CompareRule WedataQualityRuleCompareRule
    Alarm trigger condition.
    CreateRuleScene double
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    DatabaseName string
    Database name.
    DatasourceId string
    Data source ID.
    ProjectId string
    Project ID.
    SourceEngineTypes List<double>
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    Type double
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    CatalogName string
    Data catalog name, mainly used for DLC data source.
    ConditionExpression string
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    ConditionType double
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    CustomSql string
    Custom SQL. Required when Type=3 (custom SQL).
    DatabaseId string
    Database ID.
    Description string
    Rule description.
    FieldConfig WedataQualityRuleFieldConfig
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    Index string
    Index to distinguish different data when adding.
    Name string
    Rule name.
    QualityDim double
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    RelConditionExpr string
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    RuleGroupId double
    Rule group ID.
    RuleTemplateId double
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    SchemaName string
    Schema name.
    SourceObjectDataTypeName string
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    SourceObjectValue string
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    TableId string
    Data table ID. Either TableId or TableName must be provided.
    TableName string
    Table name. Either TableId or TableName must be provided.
    TargetCatalogName string
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetConditionExpr string
    Target filter condition expression.
    TargetDatabaseId string
    Target database ID.
    TargetDatabaseName string
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetObjectValue string
    Target field name CITY.
    TargetSchemaName string
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetTableId string
    Target table ID.
    TargetTableName string
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TaskId string
    Task ID.
    WedataQualityRuleId string
    ID of the resource.
    AlarmLevel float64
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    CompareRule WedataQualityRuleCompareRuleArgs
    Alarm trigger condition.
    CreateRuleScene float64
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    DatabaseName string
    Database name.
    DatasourceId string
    Data source ID.
    ProjectId string
    Project ID.
    SourceEngineTypes []float64
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    Type float64
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    CatalogName string
    Data catalog name, mainly used for DLC data source.
    ConditionExpression string
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    ConditionType float64
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    CustomSql string
    Custom SQL. Required when Type=3 (custom SQL).
    DatabaseId string
    Database ID.
    Description string
    Rule description.
    FieldConfig WedataQualityRuleFieldConfigArgs
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    Index string
    Index to distinguish different data when adding.
    Name string
    Rule name.
    QualityDim float64
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    RelConditionExpr string
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    RuleGroupId float64
    Rule group ID.
    RuleTemplateId float64
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    SchemaName string
    Schema name.
    SourceObjectDataTypeName string
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    SourceObjectValue string
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    TableId string
    Data table ID. Either TableId or TableName must be provided.
    TableName string
    Table name. Either TableId or TableName must be provided.
    TargetCatalogName string
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetConditionExpr string
    Target filter condition expression.
    TargetDatabaseId string
    Target database ID.
    TargetDatabaseName string
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetObjectValue string
    Target field name CITY.
    TargetSchemaName string
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetTableId string
    Target table ID.
    TargetTableName string
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TaskId string
    Task ID.
    WedataQualityRuleId string
    ID of the resource.
    alarmLevel Double
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    compareRule WedataQualityRuleCompareRule
    Alarm trigger condition.
    createRuleScene Double
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    databaseName String
    Database name.
    datasourceId String
    Data source ID.
    projectId String
    Project ID.
    sourceEngineTypes List<Double>
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    type Double
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    catalogName String
    Data catalog name, mainly used for DLC data source.
    conditionExpression String
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    conditionType Double
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    customSql String
    Custom SQL. Required when Type=3 (custom SQL).
    databaseId String
    Database ID.
    description String
    Rule description.
    fieldConfig WedataQualityRuleFieldConfig
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index String
    Index to distinguish different data when adding.
    name String
    Rule name.
    qualityDim Double
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    relConditionExpr String
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    ruleGroupId Double
    Rule group ID.
    ruleTemplateId Double
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schemaName String
    Schema name.
    sourceObjectDataTypeName String
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    sourceObjectValue String
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    tableId String
    Data table ID. Either TableId or TableName must be provided.
    tableName String
    Table name. Either TableId or TableName must be provided.
    targetCatalogName String
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetConditionExpr String
    Target filter condition expression.
    targetDatabaseId String
    Target database ID.
    targetDatabaseName String
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetObjectValue String
    Target field name CITY.
    targetSchemaName String
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetTableId String
    Target table ID.
    targetTableName String
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    taskId String
    Task ID.
    wedataQualityRuleId String
    ID of the resource.
    alarmLevel number
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    compareRule WedataQualityRuleCompareRule
    Alarm trigger condition.
    createRuleScene number
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    databaseName string
    Database name.
    datasourceId string
    Data source ID.
    projectId string
    Project ID.
    sourceEngineTypes number[]
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    type number
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    catalogName string
    Data catalog name, mainly used for DLC data source.
    conditionExpression string
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    conditionType number
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    customSql string
    Custom SQL. Required when Type=3 (custom SQL).
    databaseId string
    Database ID.
    description string
    Rule description.
    fieldConfig WedataQualityRuleFieldConfig
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index string
    Index to distinguish different data when adding.
    name string
    Rule name.
    qualityDim number
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    relConditionExpr string
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    ruleGroupId number
    Rule group ID.
    ruleTemplateId number
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schemaName string
    Schema name.
    sourceObjectDataTypeName string
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    sourceObjectValue string
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    tableId string
    Data table ID. Either TableId or TableName must be provided.
    tableName string
    Table name. Either TableId or TableName must be provided.
    targetCatalogName string
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetConditionExpr string
    Target filter condition expression.
    targetDatabaseId string
    Target database ID.
    targetDatabaseName string
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetObjectValue string
    Target field name CITY.
    targetSchemaName string
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetTableId string
    Target table ID.
    targetTableName string
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    taskId string
    Task ID.
    wedataQualityRuleId string
    ID of the resource.
    alarm_level float
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    compare_rule WedataQualityRuleCompareRuleArgs
    Alarm trigger condition.
    create_rule_scene float
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    database_name str
    Database name.
    datasource_id str
    Data source ID.
    project_id str
    Project ID.
    source_engine_types Sequence[float]
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    type float
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    catalog_name str
    Data catalog name, mainly used for DLC data source.
    condition_expression str
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    condition_type float
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    custom_sql str
    Custom SQL. Required when Type=3 (custom SQL).
    database_id str
    Database ID.
    description str
    Rule description.
    field_config WedataQualityRuleFieldConfigArgs
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index str
    Index to distinguish different data when adding.
    name str
    Rule name.
    quality_dim float
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    rel_condition_expr str
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    rule_group_id float
    Rule group ID.
    rule_template_id float
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schema_name str
    Schema name.
    source_object_data_type_name str
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    source_object_value str
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    table_id str
    Data table ID. Either TableId or TableName must be provided.
    table_name str
    Table name. Either TableId or TableName must be provided.
    target_catalog_name str
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    target_condition_expr str
    Target filter condition expression.
    target_database_id str
    Target database ID.
    target_database_name str
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    target_object_value str
    Target field name CITY.
    target_schema_name str
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    target_table_id str
    Target table ID.
    target_table_name str
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    task_id str
    Task ID.
    wedata_quality_rule_id str
    ID of the resource.
    alarmLevel Number
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    compareRule Property Map
    Alarm trigger condition.
    createRuleScene Number
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    databaseName String
    Database name.
    datasourceId String
    Data source ID.
    projectId String
    Project ID.
    sourceEngineTypes List<Number>
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    type Number
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    catalogName String
    Data catalog name, mainly used for DLC data source.
    conditionExpression String
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    conditionType Number
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    customSql String
    Custom SQL. Required when Type=3 (custom SQL).
    databaseId String
    Database ID.
    description String
    Rule description.
    fieldConfig Property Map
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index String
    Index to distinguish different data when adding.
    name String
    Rule name.
    qualityDim Number
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    relConditionExpr String
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    ruleGroupId Number
    Rule group ID.
    ruleTemplateId Number
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schemaName String
    Schema name.
    sourceObjectDataTypeName String
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    sourceObjectValue String
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    tableId String
    Data table ID. Either TableId or TableName must be provided.
    tableName String
    Table name. Either TableId or TableName must be provided.
    targetCatalogName String
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetConditionExpr String
    Target filter condition expression.
    targetDatabaseId String
    Target database ID.
    targetDatabaseName String
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetObjectValue String
    Target field name CITY.
    targetSchemaName String
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetTableId String
    Target table ID.
    targetTableName String
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    taskId String
    Task ID.
    wedataQualityRuleId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WedataQualityRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    Rule ID.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.

    Look up Existing WedataQualityRule Resource

    Get an existing WedataQualityRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: WedataQualityRuleState, opts?: CustomResourceOptions): WedataQualityRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_level: Optional[float] = None,
            catalog_name: Optional[str] = None,
            compare_rule: Optional[WedataQualityRuleCompareRuleArgs] = None,
            condition_expression: Optional[str] = None,
            condition_type: Optional[float] = None,
            create_rule_scene: Optional[float] = None,
            custom_sql: Optional[str] = None,
            database_id: Optional[str] = None,
            database_name: Optional[str] = None,
            datasource_id: Optional[str] = None,
            description: Optional[str] = None,
            field_config: Optional[WedataQualityRuleFieldConfigArgs] = None,
            index: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            quality_dim: Optional[float] = None,
            rel_condition_expr: Optional[str] = None,
            rule_group_id: Optional[float] = None,
            rule_id: Optional[str] = None,
            rule_template_id: Optional[float] = None,
            schema_name: Optional[str] = None,
            source_engine_types: Optional[Sequence[float]] = None,
            source_object_data_type_name: Optional[str] = None,
            source_object_value: Optional[str] = None,
            table_id: Optional[str] = None,
            table_name: Optional[str] = None,
            target_catalog_name: Optional[str] = None,
            target_condition_expr: Optional[str] = None,
            target_database_id: Optional[str] = None,
            target_database_name: Optional[str] = None,
            target_object_value: Optional[str] = None,
            target_schema_name: Optional[str] = None,
            target_table_id: Optional[str] = None,
            target_table_name: Optional[str] = None,
            task_id: Optional[str] = None,
            type: Optional[float] = None,
            wedata_quality_rule_id: Optional[str] = None) -> WedataQualityRule
    func GetWedataQualityRule(ctx *Context, name string, id IDInput, state *WedataQualityRuleState, opts ...ResourceOption) (*WedataQualityRule, error)
    public static WedataQualityRule Get(string name, Input<string> id, WedataQualityRuleState? state, CustomResourceOptions? opts = null)
    public static WedataQualityRule get(String name, Output<String> id, WedataQualityRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WedataQualityRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlarmLevel double
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    CatalogName string
    Data catalog name, mainly used for DLC data source.
    CompareRule WedataQualityRuleCompareRule
    Alarm trigger condition.
    ConditionExpression string
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    ConditionType double
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    CreateRuleScene double
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    CustomSql string
    Custom SQL. Required when Type=3 (custom SQL).
    DatabaseId string
    Database ID.
    DatabaseName string
    Database name.
    DatasourceId string
    Data source ID.
    Description string
    Rule description.
    FieldConfig WedataQualityRuleFieldConfig
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    Index string
    Index to distinguish different data when adding.
    Name string
    Rule name.
    ProjectId string
    Project ID.
    QualityDim double
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    RelConditionExpr string
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    RuleGroupId double
    Rule group ID.
    RuleId string
    Rule ID.
    RuleTemplateId double
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    SchemaName string
    Schema name.
    SourceEngineTypes List<double>
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    SourceObjectDataTypeName string
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    SourceObjectValue string
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    TableId string
    Data table ID. Either TableId or TableName must be provided.
    TableName string
    Table name. Either TableId or TableName must be provided.
    TargetCatalogName string
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetConditionExpr string
    Target filter condition expression.
    TargetDatabaseId string
    Target database ID.
    TargetDatabaseName string
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetObjectValue string
    Target field name CITY.
    TargetSchemaName string
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetTableId string
    Target table ID.
    TargetTableName string
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TaskId string
    Task ID.
    Type double
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    WedataQualityRuleId string
    ID of the resource.
    AlarmLevel float64
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    CatalogName string
    Data catalog name, mainly used for DLC data source.
    CompareRule WedataQualityRuleCompareRuleArgs
    Alarm trigger condition.
    ConditionExpression string
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    ConditionType float64
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    CreateRuleScene float64
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    CustomSql string
    Custom SQL. Required when Type=3 (custom SQL).
    DatabaseId string
    Database ID.
    DatabaseName string
    Database name.
    DatasourceId string
    Data source ID.
    Description string
    Rule description.
    FieldConfig WedataQualityRuleFieldConfigArgs
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    Index string
    Index to distinguish different data when adding.
    Name string
    Rule name.
    ProjectId string
    Project ID.
    QualityDim float64
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    RelConditionExpr string
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    RuleGroupId float64
    Rule group ID.
    RuleId string
    Rule ID.
    RuleTemplateId float64
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    SchemaName string
    Schema name.
    SourceEngineTypes []float64
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    SourceObjectDataTypeName string
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    SourceObjectValue string
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    TableId string
    Data table ID. Either TableId or TableName must be provided.
    TableName string
    Table name. Either TableId or TableName must be provided.
    TargetCatalogName string
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetConditionExpr string
    Target filter condition expression.
    TargetDatabaseId string
    Target database ID.
    TargetDatabaseName string
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetObjectValue string
    Target field name CITY.
    TargetSchemaName string
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TargetTableId string
    Target table ID.
    TargetTableName string
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    TaskId string
    Task ID.
    Type float64
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    WedataQualityRuleId string
    ID of the resource.
    alarmLevel Double
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    catalogName String
    Data catalog name, mainly used for DLC data source.
    compareRule WedataQualityRuleCompareRule
    Alarm trigger condition.
    conditionExpression String
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    conditionType Double
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    createRuleScene Double
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    customSql String
    Custom SQL. Required when Type=3 (custom SQL).
    databaseId String
    Database ID.
    databaseName String
    Database name.
    datasourceId String
    Data source ID.
    description String
    Rule description.
    fieldConfig WedataQualityRuleFieldConfig
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index String
    Index to distinguish different data when adding.
    name String
    Rule name.
    projectId String
    Project ID.
    qualityDim Double
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    relConditionExpr String
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    ruleGroupId Double
    Rule group ID.
    ruleId String
    Rule ID.
    ruleTemplateId Double
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schemaName String
    Schema name.
    sourceEngineTypes List<Double>
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    sourceObjectDataTypeName String
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    sourceObjectValue String
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    tableId String
    Data table ID. Either TableId or TableName must be provided.
    tableName String
    Table name. Either TableId or TableName must be provided.
    targetCatalogName String
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetConditionExpr String
    Target filter condition expression.
    targetDatabaseId String
    Target database ID.
    targetDatabaseName String
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetObjectValue String
    Target field name CITY.
    targetSchemaName String
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetTableId String
    Target table ID.
    targetTableName String
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    taskId String
    Task ID.
    type Double
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    wedataQualityRuleId String
    ID of the resource.
    alarmLevel number
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    catalogName string
    Data catalog name, mainly used for DLC data source.
    compareRule WedataQualityRuleCompareRule
    Alarm trigger condition.
    conditionExpression string
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    conditionType number
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    createRuleScene number
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    customSql string
    Custom SQL. Required when Type=3 (custom SQL).
    databaseId string
    Database ID.
    databaseName string
    Database name.
    datasourceId string
    Data source ID.
    description string
    Rule description.
    fieldConfig WedataQualityRuleFieldConfig
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index string
    Index to distinguish different data when adding.
    name string
    Rule name.
    projectId string
    Project ID.
    qualityDim number
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    relConditionExpr string
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    ruleGroupId number
    Rule group ID.
    ruleId string
    Rule ID.
    ruleTemplateId number
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schemaName string
    Schema name.
    sourceEngineTypes number[]
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    sourceObjectDataTypeName string
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    sourceObjectValue string
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    tableId string
    Data table ID. Either TableId or TableName must be provided.
    tableName string
    Table name. Either TableId or TableName must be provided.
    targetCatalogName string
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetConditionExpr string
    Target filter condition expression.
    targetDatabaseId string
    Target database ID.
    targetDatabaseName string
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetObjectValue string
    Target field name CITY.
    targetSchemaName string
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetTableId string
    Target table ID.
    targetTableName string
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    taskId string
    Task ID.
    type number
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    wedataQualityRuleId string
    ID of the resource.
    alarm_level float
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    catalog_name str
    Data catalog name, mainly used for DLC data source.
    compare_rule WedataQualityRuleCompareRuleArgs
    Alarm trigger condition.
    condition_expression str
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    condition_type float
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    create_rule_scene float
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    custom_sql str
    Custom SQL. Required when Type=3 (custom SQL).
    database_id str
    Database ID.
    database_name str
    Database name.
    datasource_id str
    Data source ID.
    description str
    Rule description.
    field_config WedataQualityRuleFieldConfigArgs
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index str
    Index to distinguish different data when adding.
    name str
    Rule name.
    project_id str
    Project ID.
    quality_dim float
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    rel_condition_expr str
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    rule_group_id float
    Rule group ID.
    rule_id str
    Rule ID.
    rule_template_id float
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schema_name str
    Schema name.
    source_engine_types Sequence[float]
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    source_object_data_type_name str
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    source_object_value str
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    table_id str
    Data table ID. Either TableId or TableName must be provided.
    table_name str
    Table name. Either TableId or TableName must be provided.
    target_catalog_name str
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    target_condition_expr str
    Target filter condition expression.
    target_database_id str
    Target database ID.
    target_database_name str
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    target_object_value str
    Target field name CITY.
    target_schema_name str
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    target_table_id str
    Target table ID.
    target_table_name str
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    task_id str
    Task ID.
    type float
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    wedata_quality_rule_id str
    ID of the resource.
    alarmLevel Number
    Alarm trigger level. Valid values: 1 (low), 2 (medium), 3 (high).
    catalogName String
    Data catalog name, mainly used for DLC data source.
    compareRule Property Map
    Alarm trigger condition.
    conditionExpression String
    Conditional scan WHERE condition expression. Required when ConditionType=2 (conditional scan).
    conditionType Number
    Detection range. Required when Type=1 (system template) or 2 (custom template). Valid values: 1 (full table), 2 (conditional scan). Note: When CompareType is 2 (fluctuation value) or using user-defined template containing filter condition ${FILTER}, detection range must be 2 (conditional scan).
    createRuleScene Number
    Rule creation scene. Valid values: 1 (single table multiple rules). Other business scenarios are not currently supported.
    customSql String
    Custom SQL. Required when Type=3 (custom SQL).
    databaseId String
    Database ID.
    databaseName String
    Database name.
    datasourceId String
    Data source ID.
    description String
    Rule description.
    fieldConfig Property Map
    Custom template SQL expression field replacement parameters. Required when Type=2 (custom template).
    index String
    Index to distinguish different data when adding.
    name String
    Rule name.
    projectId String
    Project ID.
    qualityDim Number
    Quality dimension of the rule. Required when Type=3 (custom SQL). Valid values: 1 (accuracy), 2 (uniqueness), 3 (completeness), 4 (consistency), 5 (timeliness), 6 (validity).
    relConditionExpr String
    Source field and target field association condition ON expression. Required only for field data correlation rules (ruleTemplate qualityDim=4 (consistency) and subQualityDim=3 (field data correlation)). Example: sourceTable.model_id=targetTable.model_id.
    ruleGroupId Number
    Rule group ID.
    ruleId String
    Rule ID.
    ruleTemplateId Number
    Rule template ID. Required when Type is not equal to 3 (custom SQL).
    schemaName String
    Schema name.
    sourceEngineTypes List<Number>
    Supported execution engine list for this rule. Valid values: 1 (MYSQL), 2 (HIVE), 4 (SPARK), 8 (LIVY), 16 (DLC), 32 (GBASE), 64 (TCHouse-P), 128 (DORIS), 256 (TCHouse-D), 512 (EMR_STARROCKS), 1024 (TCHouse-X).
    sourceObjectDataTypeName String
    Source data object (table, field, etc.) detailed type. Required when Type=1 (system template). For table corresponds to fixed value table (template is table-level). For field corresponds to field type: int, string, etc. (template is field-level).
    sourceObjectValue String
    Source data object (table, field, etc.) name. Required when Type=1 (system template).
    tableId String
    Data table ID. Either TableId or TableName must be provided.
    tableName String
    Table name. Either TableId or TableName must be provided.
    targetCatalogName String
    Target data catalog name. Required only for system template field data correlation rules and when data source is DLC (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetConditionExpr String
    Target filter condition expression.
    targetDatabaseId String
    Target database ID.
    targetDatabaseName String
    Target database name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetObjectValue String
    Target field name CITY.
    targetSchemaName String
    Target schema name. Required only for system template field data correlation rules and when data source is TCHouse-P (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    targetTableId String
    Target table ID.
    targetTableName String
    Target table name. Required only for system template field data correlation rules (ruleTemplate qualityDim=4 and subQualityDim=3). Used for cross-table data validation and association.
    taskId String
    Task ID.
    type Number
    Rule type. Valid values: 1 (system template), 2 (custom template), 3 (custom SQL).
    wedataQualityRuleId String
    ID of the resource.

    Supporting Types

    WedataQualityRuleCompareRule, WedataQualityRuleCompareRuleArgs

    Items List<WedataQualityRuleCompareRuleItem>
    Comparison condition list.
    ComputeExpression string
    o represents OR, a represents AND, numbers represent items index.
    CycleStep double
    Periodic template default cycle in seconds.
    Items []WedataQualityRuleCompareRuleItem
    Comparison condition list.
    ComputeExpression string
    o represents OR, a represents AND, numbers represent items index.
    CycleStep float64
    Periodic template default cycle in seconds.
    items List<WedataQualityRuleCompareRuleItem>
    Comparison condition list.
    computeExpression String
    o represents OR, a represents AND, numbers represent items index.
    cycleStep Double
    Periodic template default cycle in seconds.
    items WedataQualityRuleCompareRuleItem[]
    Comparison condition list.
    computeExpression string
    o represents OR, a represents AND, numbers represent items index.
    cycleStep number
    Periodic template default cycle in seconds.
    items Sequence[WedataQualityRuleCompareRuleItem]
    Comparison condition list.
    compute_expression str
    o represents OR, a represents AND, numbers represent items index.
    cycle_step float
    Periodic template default cycle in seconds.
    items List<Property Map>
    Comparison condition list.
    computeExpression String
    o represents OR, a represents AND, numbers represent items index.
    cycleStep Number
    Periodic template default cycle in seconds.

    WedataQualityRuleCompareRuleItem, WedataQualityRuleCompareRuleItemArgs

    CompareType double
    Comparison type (required). Valid values: 1 (fixed value), 2 (fluctuation value), 3 (numerical range comparison), 4 (enumeration range comparison), 5 (no comparison), 6 (field data correlation), 7 (fairness).
    Operator string
    Comparison operator type (conditionally required). Required when CompareType belongs to {1,2,6,7}. Valid values: <, <=, ==, =>, >, !=, IRLCRO (within interval, left closed right open), IRLORC (within interval, left open right closed), IRLCRC (within interval, left closed right closed), IRLORO (within interval, left open right open), NRLCRO (not within interval, left closed right open), NRLORC (not within interval, left open right closed), NRLCRC (not within interval, left closed right closed), NRLORO (not within interval, left open right open).
    ValueComputeType double
    Quality statistics value type (conditionally required). Required when CompareType belongs to {2,3,7}. When compareType = 2 (fluctuation value): 1 = absolute value (ABS), 2 = ascending (ASCEND), 3 = descending (DESCEND). When compareType = 3 (numerical range): 4 = within range (WITH_IN_RANGE), 5 = out of range (OUT_OF_RANGE). When compareType = 7 (fairness): 6 = fairness rate (FAIRNESS_RATE), 7 = fairness gap (FAIRNESS_GAP).
    ValueLists List<WedataQualityRuleCompareRuleItemValueList>
    Comparison threshold list (required).
    CompareType float64
    Comparison type (required). Valid values: 1 (fixed value), 2 (fluctuation value), 3 (numerical range comparison), 4 (enumeration range comparison), 5 (no comparison), 6 (field data correlation), 7 (fairness).
    Operator string
    Comparison operator type (conditionally required). Required when CompareType belongs to {1,2,6,7}. Valid values: <, <=, ==, =>, >, !=, IRLCRO (within interval, left closed right open), IRLORC (within interval, left open right closed), IRLCRC (within interval, left closed right closed), IRLORO (within interval, left open right open), NRLCRO (not within interval, left closed right open), NRLORC (not within interval, left open right closed), NRLCRC (not within interval, left closed right closed), NRLORO (not within interval, left open right open).
    ValueComputeType float64
    Quality statistics value type (conditionally required). Required when CompareType belongs to {2,3,7}. When compareType = 2 (fluctuation value): 1 = absolute value (ABS), 2 = ascending (ASCEND), 3 = descending (DESCEND). When compareType = 3 (numerical range): 4 = within range (WITH_IN_RANGE), 5 = out of range (OUT_OF_RANGE). When compareType = 7 (fairness): 6 = fairness rate (FAIRNESS_RATE), 7 = fairness gap (FAIRNESS_GAP).
    ValueLists []WedataQualityRuleCompareRuleItemValueList
    Comparison threshold list (required).
    compareType Double
    Comparison type (required). Valid values: 1 (fixed value), 2 (fluctuation value), 3 (numerical range comparison), 4 (enumeration range comparison), 5 (no comparison), 6 (field data correlation), 7 (fairness).
    operator String
    Comparison operator type (conditionally required). Required when CompareType belongs to {1,2,6,7}. Valid values: <, <=, ==, =>, >, !=, IRLCRO (within interval, left closed right open), IRLORC (within interval, left open right closed), IRLCRC (within interval, left closed right closed), IRLORO (within interval, left open right open), NRLCRO (not within interval, left closed right open), NRLORC (not within interval, left open right closed), NRLCRC (not within interval, left closed right closed), NRLORO (not within interval, left open right open).
    valueComputeType Double
    Quality statistics value type (conditionally required). Required when CompareType belongs to {2,3,7}. When compareType = 2 (fluctuation value): 1 = absolute value (ABS), 2 = ascending (ASCEND), 3 = descending (DESCEND). When compareType = 3 (numerical range): 4 = within range (WITH_IN_RANGE), 5 = out of range (OUT_OF_RANGE). When compareType = 7 (fairness): 6 = fairness rate (FAIRNESS_RATE), 7 = fairness gap (FAIRNESS_GAP).
    valueLists List<WedataQualityRuleCompareRuleItemValueList>
    Comparison threshold list (required).
    compareType number
    Comparison type (required). Valid values: 1 (fixed value), 2 (fluctuation value), 3 (numerical range comparison), 4 (enumeration range comparison), 5 (no comparison), 6 (field data correlation), 7 (fairness).
    operator string
    Comparison operator type (conditionally required). Required when CompareType belongs to {1,2,6,7}. Valid values: <, <=, ==, =>, >, !=, IRLCRO (within interval, left closed right open), IRLORC (within interval, left open right closed), IRLCRC (within interval, left closed right closed), IRLORO (within interval, left open right open), NRLCRO (not within interval, left closed right open), NRLORC (not within interval, left open right closed), NRLCRC (not within interval, left closed right closed), NRLORO (not within interval, left open right open).
    valueComputeType number
    Quality statistics value type (conditionally required). Required when CompareType belongs to {2,3,7}. When compareType = 2 (fluctuation value): 1 = absolute value (ABS), 2 = ascending (ASCEND), 3 = descending (DESCEND). When compareType = 3 (numerical range): 4 = within range (WITH_IN_RANGE), 5 = out of range (OUT_OF_RANGE). When compareType = 7 (fairness): 6 = fairness rate (FAIRNESS_RATE), 7 = fairness gap (FAIRNESS_GAP).
    valueLists WedataQualityRuleCompareRuleItemValueList[]
    Comparison threshold list (required).
    compare_type float
    Comparison type (required). Valid values: 1 (fixed value), 2 (fluctuation value), 3 (numerical range comparison), 4 (enumeration range comparison), 5 (no comparison), 6 (field data correlation), 7 (fairness).
    operator str
    Comparison operator type (conditionally required). Required when CompareType belongs to {1,2,6,7}. Valid values: <, <=, ==, =>, >, !=, IRLCRO (within interval, left closed right open), IRLORC (within interval, left open right closed), IRLCRC (within interval, left closed right closed), IRLORO (within interval, left open right open), NRLCRO (not within interval, left closed right open), NRLORC (not within interval, left open right closed), NRLCRC (not within interval, left closed right closed), NRLORO (not within interval, left open right open).
    value_compute_type float
    Quality statistics value type (conditionally required). Required when CompareType belongs to {2,3,7}. When compareType = 2 (fluctuation value): 1 = absolute value (ABS), 2 = ascending (ASCEND), 3 = descending (DESCEND). When compareType = 3 (numerical range): 4 = within range (WITH_IN_RANGE), 5 = out of range (OUT_OF_RANGE). When compareType = 7 (fairness): 6 = fairness rate (FAIRNESS_RATE), 7 = fairness gap (FAIRNESS_GAP).
    value_lists Sequence[WedataQualityRuleCompareRuleItemValueList]
    Comparison threshold list (required).
    compareType Number
    Comparison type (required). Valid values: 1 (fixed value), 2 (fluctuation value), 3 (numerical range comparison), 4 (enumeration range comparison), 5 (no comparison), 6 (field data correlation), 7 (fairness).
    operator String
    Comparison operator type (conditionally required). Required when CompareType belongs to {1,2,6,7}. Valid values: <, <=, ==, =>, >, !=, IRLCRO (within interval, left closed right open), IRLORC (within interval, left open right closed), IRLCRC (within interval, left closed right closed), IRLORO (within interval, left open right open), NRLCRO (not within interval, left closed right open), NRLORC (not within interval, left open right closed), NRLCRC (not within interval, left closed right closed), NRLORO (not within interval, left open right open).
    valueComputeType Number
    Quality statistics value type (conditionally required). Required when CompareType belongs to {2,3,7}. When compareType = 2 (fluctuation value): 1 = absolute value (ABS), 2 = ascending (ASCEND), 3 = descending (DESCEND). When compareType = 3 (numerical range): 4 = within range (WITH_IN_RANGE), 5 = out of range (OUT_OF_RANGE). When compareType = 7 (fairness): 6 = fairness rate (FAIRNESS_RATE), 7 = fairness gap (FAIRNESS_GAP).
    valueLists List<Property Map>
    Comparison threshold list (required).

    WedataQualityRuleCompareRuleItemValueList, WedataQualityRuleCompareRuleItemValueListArgs

    Value string
    Threshold value (required).
    ValueType double
    Threshold type (required). Valid values: 1 (low threshold), 2 (high threshold), 3 (normal threshold), 4 (enumeration value).
    Value string
    Threshold value (required).
    ValueType float64
    Threshold type (required). Valid values: 1 (low threshold), 2 (high threshold), 3 (normal threshold), 4 (enumeration value).
    value String
    Threshold value (required).
    valueType Double
    Threshold type (required). Valid values: 1 (low threshold), 2 (high threshold), 3 (normal threshold), 4 (enumeration value).
    value string
    Threshold value (required).
    valueType number
    Threshold type (required). Valid values: 1 (low threshold), 2 (high threshold), 3 (normal threshold), 4 (enumeration value).
    value str
    Threshold value (required).
    value_type float
    Threshold type (required). Valid values: 1 (low threshold), 2 (high threshold), 3 (normal threshold), 4 (enumeration value).
    value String
    Threshold value (required).
    valueType Number
    Threshold type (required). Valid values: 1 (low threshold), 2 (high threshold), 3 (normal threshold), 4 (enumeration value).

    WedataQualityRuleFieldConfig, WedataQualityRuleFieldConfigArgs

    tableConfigs List<Property Map>
    Database and table variables.
    whereConfigs List<Property Map>
    WHERE variables.

    WedataQualityRuleFieldConfigTableConfig, WedataQualityRuleFieldConfigTableConfigArgs

    DatabaseId string
    Database ID.
    DatabaseName string
    Database name.
    FieldConfigs List<WedataQualityRuleFieldConfigTableConfigFieldConfig>
    Field variables.
    TableId string
    Table ID.
    TableKey string
    Table key.
    TableName string
    Table name.
    DatabaseId string
    Database ID.
    DatabaseName string
    Database name.
    FieldConfigs []WedataQualityRuleFieldConfigTableConfigFieldConfig
    Field variables.
    TableId string
    Table ID.
    TableKey string
    Table key.
    TableName string
    Table name.
    databaseId String
    Database ID.
    databaseName String
    Database name.
    fieldConfigs List<WedataQualityRuleFieldConfigTableConfigFieldConfig>
    Field variables.
    tableId String
    Table ID.
    tableKey String
    Table key.
    tableName String
    Table name.
    databaseId string
    Database ID.
    databaseName string
    Database name.
    fieldConfigs WedataQualityRuleFieldConfigTableConfigFieldConfig[]
    Field variables.
    tableId string
    Table ID.
    tableKey string
    Table key.
    tableName string
    Table name.
    database_id str
    Database ID.
    database_name str
    Database name.
    field_configs Sequence[WedataQualityRuleFieldConfigTableConfigFieldConfig]
    Field variables.
    table_id str
    Table ID.
    table_key str
    Table key.
    table_name str
    Table name.
    databaseId String
    Database ID.
    databaseName String
    Database name.
    fieldConfigs List<Property Map>
    Field variables.
    tableId String
    Table ID.
    tableKey String
    Table key.
    tableName String
    Table name.

    WedataQualityRuleFieldConfigTableConfigFieldConfig, WedataQualityRuleFieldConfigTableConfigFieldConfigArgs

    FieldDataType string
    Field data type.
    FieldKey string
    Field key.
    FieldValue string
    Field value.
    ValueConfig WedataQualityRuleFieldConfigTableConfigFieldConfigValueConfig
    Field value variable information.
    FieldDataType string
    Field data type.
    FieldKey string
    Field key.
    FieldValue string
    Field value.
    ValueConfig WedataQualityRuleFieldConfigTableConfigFieldConfigValueConfig
    Field value variable information.
    fieldDataType String
    Field data type.
    fieldKey String
    Field key.
    fieldValue String
    Field value.
    valueConfig WedataQualityRuleFieldConfigTableConfigFieldConfigValueConfig
    Field value variable information.
    fieldDataType string
    Field data type.
    fieldKey string
    Field key.
    fieldValue string
    Field value.
    valueConfig WedataQualityRuleFieldConfigTableConfigFieldConfigValueConfig
    Field value variable information.
    field_data_type str
    Field data type.
    field_key str
    Field key.
    field_value str
    Field value.
    value_config WedataQualityRuleFieldConfigTableConfigFieldConfigValueConfig
    Field value variable information.
    fieldDataType String
    Field data type.
    fieldKey String
    Field key.
    fieldValue String
    Field value.
    valueConfig Property Map
    Field value variable information.

    WedataQualityRuleFieldConfigTableConfigFieldConfigValueConfig, WedataQualityRuleFieldConfigTableConfigFieldConfigValueConfigArgs

    FieldDataType string
    Field data type.
    FieldKey string
    Field value key.
    FieldValue string
    Field value.
    FieldDataType string
    Field data type.
    FieldKey string
    Field value key.
    FieldValue string
    Field value.
    fieldDataType String
    Field data type.
    fieldKey String
    Field value key.
    fieldValue String
    Field value.
    fieldDataType string
    Field data type.
    fieldKey string
    Field value key.
    fieldValue string
    Field value.
    field_data_type str
    Field data type.
    field_key str
    Field value key.
    field_value str
    Field value.
    fieldDataType String
    Field data type.
    fieldKey String
    Field value key.
    fieldValue String
    Field value.

    WedataQualityRuleFieldConfigWhereConfig, WedataQualityRuleFieldConfigWhereConfigArgs

    FieldDataType string
    Field data type.
    FieldKey string
    Field key.
    FieldValue string
    Field value.
    ValueConfig WedataQualityRuleFieldConfigWhereConfigValueConfig
    Field value variable information.
    FieldDataType string
    Field data type.
    FieldKey string
    Field key.
    FieldValue string
    Field value.
    ValueConfig WedataQualityRuleFieldConfigWhereConfigValueConfig
    Field value variable information.
    fieldDataType String
    Field data type.
    fieldKey String
    Field key.
    fieldValue String
    Field value.
    valueConfig WedataQualityRuleFieldConfigWhereConfigValueConfig
    Field value variable information.
    fieldDataType string
    Field data type.
    fieldKey string
    Field key.
    fieldValue string
    Field value.
    valueConfig WedataQualityRuleFieldConfigWhereConfigValueConfig
    Field value variable information.
    field_data_type str
    Field data type.
    field_key str
    Field key.
    field_value str
    Field value.
    value_config WedataQualityRuleFieldConfigWhereConfigValueConfig
    Field value variable information.
    fieldDataType String
    Field data type.
    fieldKey String
    Field key.
    fieldValue String
    Field value.
    valueConfig Property Map
    Field value variable information.

    WedataQualityRuleFieldConfigWhereConfigValueConfig, WedataQualityRuleFieldConfigWhereConfigValueConfigArgs

    FieldDataType string
    Field data type.
    FieldKey string
    Field value key.
    FieldValue string
    Field value.
    FieldDataType string
    Field data type.
    FieldKey string
    Field value key.
    FieldValue string
    Field value.
    fieldDataType String
    Field data type.
    fieldKey String
    Field value key.
    fieldValue String
    Field value.
    fieldDataType string
    Field data type.
    fieldKey string
    Field value key.
    fieldValue string
    Field value.
    field_data_type str
    Field data type.
    field_key str
    Field value key.
    field_value str
    Field value.
    fieldDataType String
    Field data type.
    fieldKey String
    Field value key.
    fieldValue String
    Field value.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    Viewing docs for tencentcloud 1.82.79
    published on Friday, Mar 27, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.