tencent cloud

文档反馈

DescribeRuleGroupsByPage

最后更新时间:2024-06-21 15:11:44

1. API Description

Domain name for API request: wedata.tencentcloudapi.com.

[Filter Criteria]
{Table Name (TableName), supports fuzzy matching} {Table Owner (TableOwnerName), supports fuzzy matching} {Monitoring Methods (MonitorTypes), 1. Not Configured 2. Linked to Production Scheduling 3. Offline Periodic Inspection, supports multiple selections} {Subscriber (ReceiverUin)}
[Required Fields]
{Data Source (DatasourceId)}

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: DescribeRuleGroupsByPage.
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.
PageNumber No Integer Pagination Index
PageSize No Integer Page size
Filters.N No Array of Filter Filter criteria, each request's Filters limit is 10, Filter.Values limit is 5
OrderFields.N No Array of OrderField Sorting Method
ProjectId No String Project ID

3. Output Parameters

Parameter Name Type Description
Data RuleGroupPage Rule Group 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.

4. Example

Example1 Pagination Query Rule Group Interface

Input Example

POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRuleGroupsByPage
<Common Request Parameters>{
    "OrderFields": [
        {
            "Direction": "ASC",
            "Name": "id"
        }
    ],
    "PageNumber": 1,
    "Filters": [
        {
            "Values": [
                "78yguhbu78yguh"
            ],
            "Name": "tableId"
        }
    ],
    "PageSize": 1,
    "ProjectId": "1"
}

Output Example

{
    "Response": {
        "Data": {
            "TotalCount": 1,
            "Items": [
                {
                    "RuleGroupId": 1,
                    "DatasourceId": "IBw6DFI_pGVj1F73Q",
                    "DatasourceName": "hive-emr-asda",
                    "DatasourceType": 1,
                    "MonitorType": 1,
                    "UpdateTime": "2022-09-08",
                    "TableName": "table1",
                    "TableId": "IBw6DFI_pGVj1F73Q",
                    "TableOwnerName": "zhangsan",
                    "ExecStrategy": {
                        "RuleGroupId": 1,
                        "MonitorType": 1,
                        "ExecQueue": "default",
                        "ExecutorGroupId": "1",
                        "ExecutorGroupName": "default",
                        "Tasks": [
                            {
                                "WorkflowId": "workflow_dq_1008997",
                                "TaskId": "202403567999922",
                                "TaskName": "shell_test1",
                                "CycleType": 0
                            }
                        ],
                        "StartTime": "2023-09-07 09:09:09",
                        "EndTime": "2023-09-08 09:09:09",
                        "CycleType": "D",
                        "DelayTime": 1,
                        "CycleStep": 1,
                        "TaskAction": "",
                        "ExecEngineType": "HIVE",
                        "ExecPlan": "2024-04-07 00:00:00 ~ 2099-12-31 23:59:59, Execute Every 10 Minutes",
                        "RuleId": 1,
                        "RuleName": "Rule Name",
                        "TriggerTypes": [
                            "1"
                        ]
                    },
                    "Subscription": {
                        "RuleGroupId": 1,
                        "Receivers": [
                            {
                                "ReceiverUserId": 1078892223332,
                                "ReceiverName": "zhangsan"
                            }
                        ],
                        "SubscribeType": [
                            1
                        ],
                        "WebHooks": [
                            {
                                "HookType": "feishu",
                                "HookAddress": "http://aassdd.com"
                            }
                        ],
                        "RuleId": 1,
                        "RuleName": "Rule Name"
                    },
                    "DatabaseId": "IBw6DFI_pGVj1F73Q",
                    "DatabaseName": "dq_test1",
                    "Permission": true,
                    "RuleCount": 1,
                    "MonitorStatus": true,
                    "TableOwnerUserId": 1,
                    "InstanceId": "emr-asda",
                    "CreateTime": "2022-09-08",
                    "StrategyConfig": true,
                    "SubscribeConfig": true,
                    "DsEnvType": 0
                }
            ]
        },
        "RequestId": "e06e90e7-40e0-4cf4--5566c"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.
InternalError An internal error occurs.
InvalidParameter Parameter error.
InvalidParameter.InvalidFilterParameter Incorrect Query Filter Parameter.
UnauthorizedOperation.UserNotInProject User is not a member of the current project.