Domain name for API request: wedata.tencentcloudapi.com.
Submit Rule Group to Run Task Interface
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: CommitRuleGroupTask. |
Version | Yes | String | Common Params. The value used for this API: 2021-08-20. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
RuleGroupId | No | Integer | Rule Group ID |
TriggerType | No | Integer | Trigger Type 1. Manual Trigger 2. In-process Scheduling Trigger 3. Periodic Scheduling Trigger |
ExecRuleConfig.N | No | Array of RuleConfig | Rule Configuration List |
ExecConfig | No | RuleExecConfig | Execution configuration |
ProjectId | No | String | Project ID |
EngineType | No | String | The execution engine that this rule runs. If this parameter is not passed, the default execution engine under this data source will be requested. |
Parameter Name | Type | Description |
---|---|---|
Data | RuleGroupExecResult | Rule Group Execution ID Note: This field may return null, indicating that no valid value can be obtained. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Submit Rule Group to Run Task Interface
POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CommitRuleGroupTask
<Common request parameters>
{
"RuleGroupId": 1,
"TriggerType": 1,
"ExecRuleConfig": [
{
"RuleId": 1,
"ConditionType": 1,
"Condition": "2024-04-11 11:00:00",
"TargetCondition": "ct='${yyyy-mm-dd-1}'"
}
],
"ExecConfig": {
"QueueName": "default",
"ExecutorGroupId": "567890",
"EngineType": "2"
},
"ProjectId": "456789",
"EngineType": "HIVE"
}
{
"Response": {
"Data": {
"RuleGroupExecId": 1,
"RuleGroupId": 1,
"TriggerType": 1,
"ExecTime": "1712804400000",
"Status": 1,
"AlarmRuleCount": 1,
"TotalRuleCount": 1,
"TableOwnerName": "zhangsan",
"TableName": "dq",
"TableId": "697ytfgquhewfa21we",
"DatabaseId": "85rft7qie3svwukacdavk",
"DatasourceId": "456789",
"Permission": true,
"ExecDetail": "2023-09-07 - 2099-12-31, Execute once at 07:00 every day",
"EngineType": "HIVE",
"RuleExecResultVOList": [
{
"RuleExecId": 1,
"RuleGroupExecId": 1,
"RuleGroupId": 1,
"RuleId": 1,
"RuleName": "Regulations",
"RuleType": 1,
"SourceObjectDataTypeName": "int",
"SourceObjectValue": "age",
"ConditionExpression": "pt=substring('${yyyyMMddHHmmss-1H}',1,10)",
"ExecResultStatus": 1,
"TriggerResult": "",
"CompareResult": {
"Items": [
{
"FixResult": 1,
"ResultValue": "0",
"Values": [
{
"ValueType": 1,
"Value": "2"
}
],
"Operator": ">",
"CompareType": 1,
"ValueComputeType": 1
}
],
"TotalRows": 1,
"PassRows": 1,
"TriggerRows": 1
},
"TemplateName": "Template",
"QualityDim": 1,
"TargetDBTableName": "targaetName",
"TargetObjectValue": "value",
"TargetObjectDataType": "1",
"FieldConfig": {
"WhereConfig": [
{
"FieldKey": "param_1",
"FieldValue": "id",
"FieldDataType": "int"
}
],
"TableConfig": [
{
"DatabaseId": "NW0VL_YYPESvi8w",
"DatabaseName": "default",
"TableId": "EHdPET2IKQ2KBhGw",
"TableName": "dq_student",
"TableKey": "table_1",
"FieldConfig": [
{
"FieldKey": "table_1.column_1",
"FieldValue": "id",
"FieldDataType": "int"
}
]
}
]
},
"RelConditionExpr": "sourceTable.id=targetTable.id",
"StartTime": "2023-10-01",
"AlarmLevel": 1
}
]
},
"RequestId": "0ff4e8ae-ebea-4a41-8aa2-1f6bc4b68e69"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation | Operation Failure. |
Was this page helpful?