tencent cloud

Feedback

DescribeRuleGroupExecResultsByPage

Last updated: 2024-06-21 15:11:46

1. API Description

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

Rule Group Execution Result Pagination Query Interface

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: DescribeRuleGroupExecResultsByPage.
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
OrderFields.N No Array of OrderField Sort Fields
ProjectId No String Project ID

3. Output Parameters

Parameter Name Type Description
Data RuleGroupExecResultPage Rule Group Execution Result 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 Rule Group Execution Result Pagination Query Interface

Input Example

POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRuleGroupExecResultsByPage
<Common request parameters>

{
    "PageNumber": 1,
    "PageSize": 1,
    "Filters": [
        {
            "Name": "StartTime",
            "Values": [
                "1712160000"
            ]
        }
    ],
    "OrderFields": [
        {
            "Name": "CitationCount",
            "Direction": "DESC"
        }
    ],
    "ProjectId": "66661616161616161616"
}

Output Example

{
    "Response": {
        "Data": {
            "Items": [
                {
                    "AlarmRuleCount": 1,
                    "DatabaseId": "sqhsS5G57A",
                    "DatasourceId": "92",
                    "EngineType": "HIVE",
                    "ExecDetail": "2024-04-07 00:00:00 ~ 2099-12-31 23:59:59, Execute Every 10 Minutes",
                    "ExecTime": "2024-04-10 17:01:23",
                    "Permission": true,
                    "RuleExecResultVOList": [
                        {
                            "AlarmLevel": 3,
                            "CompareResult": {
                                "Items": [
                                    {
                                        "CompareType": 1,
                                        "FixResult": 1,
                                        "Operator": ">",
                                        "ResultValue": "2.0000",
                                        "ValueComputeType": null,
                                        "Values": [
                                            {
                                                "Value": "1",
                                                "ValueType": 3
                                            }
                                        ]
                                    }
                                ],
                                "PassRows": null,
                                "TotalRows": null,
                                "TriggerRows": null
                            },
                            "ConditionExpression": null,
                            "ExecResultStatus": 2,
                            "FieldConfig": null,
                            "QualityDim": 2,
                            "RelConditionExpr": null,
                            "RuleExecId": 3047,
                            "RuleGroupExecId": 1071,
                            "RuleGroupId": 1726,
                            "RuleId": 14723,
                            "RuleName": "File Upload Rules",
                            "RuleType": 3,
                            "SourceObjectDataTypeName": "table",
                            "SourceObjectValue": "Table",
                            "StartTime": "2024-04-10 17:01:23",
                            "TargetDBTableName": "null.null",
                            "TargetObjectDataType": null,
                            "TargetObjectValue": null,
                            "TemplateName": "User-Defined SQL",
                            "TriggerResult": "Send Alert Successfully, Block Task Successful"
                        }
                    ],
                    "RuleGroupExecId": 1057371,
                    "RuleGroupId": 1726,
                    "Status": 4,
                    "TableId": "fr7xvusttwfQ",
                    "TableName": "at_1",
                    "TableOwnerName": "AUEST",
                    "TotalRuleCount": 1,
                    "TriggerType": 3
                }
            ],
            "TotalCount": 1
        },
        "RequestId": "15bb9da3584b"
    }
}

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.
InvalidParameter.InvalidFilterParameter Incorrect Query Filter Parameter.