Domain name for API request: pts.intl.tencentcloudapi.com.
This API is used to query alert records.
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: DescribeAlertRecords. |
Version | Yes | String | Common Params. The value used for this API: 2021-07-28. |
Region | No | String | Common Params. This parameter is not required for this API. |
ProjectIds.N | Yes | Array of String | Array of Project ID. |
ScenarioIds.N | No | Array of String | Array of Scenario ID. |
JobIds.N | No | Array of String | Array of Job ID. |
Ascend | No | Boolean | Whether in ascending order. |
OrderBy | No | String | Column for sorting. |
Offset | No | Integer | Offset. Default value is 0. |
Limit | No | Integer | Number of returns. Default value is 20, maximum is 100 |
ScenarioNames.N | No | Array of String | Filter by Scenario names. |
Parameter Name | Type | Description |
---|---|---|
AlertRecordSet | Array of AlertRecord | Alert records list. Note: This field may return null, indicating that no valid value is found. |
Total | Integer | Total number of Alert records. Note: This field may return null, indicating that no valid value is found. |
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: pts.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAlertRecords
<Common request parameters>
{
"OrderBy": "asc",
"JobIds": [
"job-xx"
],
"Ascend": true,
"Limit": 1,
"Offset": 1,
"ProjectIds": [
"project-xx"
],
"ScenarioIds": [
"scenario-xx"
]
}
{
"Response": {
"AlertRecordSet": [
{
"CreatedAt": "2021-12-22T15:04:36+08:00",
"UpdatedAt": "2021-12-22T15:04:36+08:00",
"AppId": 123,
"Uin": "123",
"SubAccountUin": "123",
"AlertRecordId": "alert-q5qn20zy",
"ProjectId": "project-cphgtuvq",
"ScenarioId": "scenario-lkbg8f20",
"ScenarioName": "my-scenario",
"JobId": "job-b8eklbx8",
"JobSLAId": "sla-954oc2vs",
"JobSLADescription": "this is a test",
"Status": {
"AbortJob": 1,
"SendNotice": 1
},
"Target": "abc"
}
],
"RequestId": "req-xx",
"Total": 1
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.