Domain name for API request: wedata.tencentcloudapi.com.
Query Task Alert 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: DescribeTaskAlarmRegulations. |
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 | Yes | String | Project ID |
PageNumber | Yes | Integer | Current Page |
PageSize | Yes | Integer | Number of records per page |
Filters.N | No | Array of Filter | Filter criteria (name includes RegularStatus, AlarmLevel, AlarmIndicator, RegularName) |
OrderFields.N | No | Array of OrderField | Sorting criteria (RegularId) |
TaskId | No | String | Task ID |
TaskType | No | Integer | Task Type (201 for real-time task, 202 for offline task) |
Parameter Name | Type | Description |
---|---|---|
TaskAlarmInfos | Array of TaskAlarmInfo | Alert Rule Information Note: This field may return null, indicating that no valid value can be obtained. |
TotalCount | Integer | Number of recordsNote: 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. |
Query alarm rule list
POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTaskAlarmRegulations
<Common request parameters>
{
"Filters": [
{
"Values": [
"TaskId"
],
"Name": "j224b9321-3be0-45de-ad6a-8fed924036a4"
}
],
"PageSize": 10,
"ProjectId": "123",
"OrderFields": [
{
"Direction": "DESC",
"Name": "CreateTime"
}
],
"PageNumber": 1,
"TaskId": "j224b9321-3be0-45de-ad6a-8fed924036a4",
"TaskType": 201
}
{
"Response": {
"TaskAlarmInfos": [
{
"Id": "",
"TaskId": "j224b9321-3be0-45de-ad6a-8fed924036a4",
"RegularId": "1768",
"RegularName": "Rule Name",
"RegularStatus": 1,
"AlarmLevel": 1,
"AlarmIndicator": 1,
"TriggerType": 1,
"EstimatedTime": 1,
"AlarmWay": "7",
"AlarmRecipientId": "100035441697",
"TaskType": 201,
"ProjectId": "1486446569620893696",
"Creater": "100035441697",
"AlarmRecipientName": "username",
"AlarmIndicatorDesc": "",
"Operator": 1,
"NodeId": "",
"NodeName": "",
"AlarmIndicatorInfos": [
{
"Id": "",
"AlarmIndicator": 12,
"AlarmIndicatorDesc": "Cumulative number of restarts within every 10 minutes",
"TriggerType": 5,
"EstimatedTime": 1,
"Operator": 1,
"AlarmIndicatorUnit": "ms",
"Duration": 0,
"DurationUnit": "ms",
"MaxTimes": 1,
"Threshold": 0
}
],
"AlarmRecipientType": 0,
"QuietPeriods": [
{
"DaysOfWeek": [
6,
7
],
"EndTime": "06:00:00",
"StartTime": "00:00:00"
}
],
"WeComHook": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=50d83e54-97e3-41234567890",
"UpdateTime": "2024-02-27 14:45:12",
"OperatorUin": "100035441697",
"TaskCount": 0,
"MonitorType": 0,
"MonitorObjectIds": [
"k753e8924-a3ed-4201-b5d3-35ce683b589c"
],
"Description": "",
"LatestAlarmInstanceId": "",
"LatestAlarmTime": "",
"LarkWebHooks": ""
}
],
"TotalCount": 10,
"RequestId": "ec06dfed-ce42-4a5c-b23c-14a3a2227b39"
}
}
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 |
---|---|
AuthFailure | CAM Signature/Authentication Error. |
AuthFailure.SignatureExpire | Not logged in or login has expired. |
FailedOperation | Operation Failure. |
InternalError | An internal error occurs. |
InvalidParameter | Parameter error. |
InvalidParameterValue | Parameter value error. |
MissingParameter | Missing Parameter Error. |
ResourceNotFound | The resource does not exist. |
UnauthorizedOperation | Unauthorized Operation. |
UnsupportedOperation | Operation not supported. |
Was this page helpful?