Domain name for API request: wedata.tencentcloudapi.com.
Query Quality Rule List
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: DescribeRules. |
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. |
ProjectId | No | String | Project ID |
RuleGroupId | No | Integer | Rule Group ID |
EngineType | No | String | The running execution engine, if not specified, the default execution engine under this data source will be requested |
Parameter Name | Type | Description |
---|---|---|
Data | Array of Rule | Rule list 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. |
POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRules
<Common request parameters>
{
"ProjectId": "153161111111111111",
"RuleGroupId": 1,
"EngineType": "HIVE"
}
{
"Response": {
"Data": [
{
"RuleId": 1,
"RuleGroupId": 1,
"TableId": "79tyugihbksda",
"Name": "Regulations",
"Type": 1,
"RuleTemplateId": 1,
"RuleTemplateContent": "Accuracy:Number of table rows",
"QualityDim": 1,
"SourceObjectType": 1,
"SourceObjectDataType": 1,
"SourceObjectDataTypeName": "string",
"SourceObjectValue": "1",
"ConditionType": 1,
"ConditionExpression": ">",
"CustomSql": "abc",
"CompareRule": {
"Items": [
{
"CompareType": 1,
"Operator": ">",
"ValueComputeType": 1,
"ValueList": [
{
"ValueType": 1,
"Value": "1"
}
]
}
],
"CycleStep": 1,
"ComputeExpression": "0"
},
"AlarmLevel": 1,
"Description": "Description",
"Operator": "zhangsan",
"TargetDatabaseId": "easdsad-dasdas",
"TargetDatabaseName": "db1",
"TargetTableId": "dsadxc-dsada",
"TargetTableName": "table1",
"TargetConditionExpr": "0",
"RelConditionExpr": "sourceTable.id = targetTable.id",
"FieldConfig": {
"WhereConfig": [
{
"FieldKey": "name",
"FieldValue": "zhangsan",
"FieldDataType": "string"
}
],
"TableConfig": [
{
"DatabaseId": "7p9gyuih78tgy",
"DatabaseName": "dbTest",
"TableId": "7t8ygihb670ygo",
"TableName": "test",
"TableKey": "asdfsdf",
"FieldConfig": [
{
"FieldKey": "id",
"FieldValue": "12",
"FieldDataType": "int"
}
]
}
]
},
"MultiSourceFlag": true,
"WhereFlag": true,
"TemplateSql": "select count(*) from a",
"SubQualityDim": 1,
"TargetObjectType": 1,
"TargetObjectDataType": 1,
"TargetObjectDataTypeName": "int",
"TargetObjectValue": "1",
"SourceEngineTypes": [
2
],
"TableName": "abc",
"TableOwnerName": "abc",
"ExecStrategy": {
"RuleGroupId": 1,
"MonitorType": 1,
"ExecQueue": "default",
"ExecutorGroupId": "2",
"ExecutorGroupName": "Resource Group",
"Tasks": [
{
"WorkflowId": "32131232323",
"TaskId": "321321321321",
"TaskName": "shell1",
"CycleType": 1
}
],
"StartTime": "2023-10-01",
"EndTime": "2023-10-01",
"CycleType": "D",
"DelayTime": 1,
"CycleStep": 1,
"TaskAction": "",
"ExecEngineType": "HIVE",
"ExecPlan": "From 2024-04-07 00:00:00 to 2099-12-31 23:59:59, executes every 10 minutes",
"RuleId": 1,
"RuleName": "Regulations",
"TriggerTypes": [
"2"
]
},
"Subscription": {
"RuleGroupId": 1,
"Receivers": [
{
"ReceiverUserId": 1,
"ReceiverName": "zhangsan"
}
],
"SubscribeType": [
1
],
"WebHooks": [
{
"HookType": "1",
"HookAddress": "http://www.test.com"
}
],
"RuleId": 1,
"RuleName": "Rule 1"
},
"CreateTime": "2023-10-01",
"DatasourceId": 1,
"DatabaseId": "sddyhhjj-daskk",
"MonitorStatus": 0,
"TriggerCondition": "Fixed value Less than 2"
}
],
"RequestId": "0ff4e8ab68e69"
}
}
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. |
UnauthorizedOperation.UserNotInProject | User is not a member of the current project. |
Was this page helpful?