Domain name for API request: monitor.intl.tencentcloudapi.com.
Query alarm notification history as needed
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: DescribeAlarmNotifyHistories. |
| Version | Yes | String | Common Params. The value used for this API: 2023-06-16. |
| Region | No | String | Common Params. This parameter is not required. |
| MonitorType | Yes | String | Monitoring type |
| QueryBaseTime | Yes | Integer | Start time, used as a Unix timestamp in seconds. |
| QueryBeforeSeconds | Yes | Integer | Period to query before QueryBaseTime, in seconds. |
| PageParams | Yes | PageByNoParams | Pagination parameter. |
| Namespace | No | String | Fill in when the monitoring type is MT_QCE. Namespace of the affiliation. |
| ModelName | No | String | Fill in when the monitoring type is MT_QCE. Alarm policy type |
| PolicyId | No | String | Query the notification history of a policy |
| Parameter Name | Type | Description |
|---|---|---|
| AlarmNotifyHistoryList | Array of AlarmNotifyHistory | Alarm history |
| PageResult | PageByNoResult | Pagination condition |
| 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: monitor.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAlarmNotifyHistories
<Common request parameters>
{
"MonitorType": "MT_PROME",
"QueryBaseTime": 1734576676,
"QueryBeforeSeconds": 172000,
"PageParams": {
"PerPage": 1,
"PageNo": "1"
}
}
{
"Response": {
"AlarmNotifyHistoryList": [
{
"AlarmContent": "This is the message body\nThis is the second line of the message body\n<font color=\"green\">This is the green message body</font>",
"AlarmObject": "New amp API alarm"
"ChannelSet": [
"DingDing",
"FeiShu",
"WeWork",
"WebHook"
],
"ChannelsReceivers": [
{
"ChannelName": "DingDing",
"Receivers": [
"https://oapi.dingtalk.com/robot/send?access_token=c1090c31391e5766b6e509d6ed0ac9930447231f8c151a5b8aa61ffb637db3ec"
],
"SendStatus": "NotifyChannelExecSucc"
},
{
"ChannelName": "FeiShu",
"Receivers": [
"https://open.feishu.cn/open-apis/bot/v2/hook/58151696-a863-47e8-ae49-dfa982e48b25"
],
"SendStatus": "NotifyChannelExecSucc"
},
{
"ChannelName": "QCloudYehe",
"Receivers": [
"907876075",
"906793755"
],
"SendStatus": "NotifyChannelExecSucc"
},
{
"ChannelName": "WeWork",
"Receivers": [
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=12d11141-d6e8-44df-b00e-03285ad65415"
],
"SendStatus": "NotifyChannelExecSucc"
},
{
"ChannelName": "WebHook",
"Receivers": [
"http://118.24.173.149:9090/test/sendAlerts"
],
"SendStatus": "NotifyChannelExecSucc"
}
],
"Notices": [
{
"NoticeId": "notice-625w0q92",
"NoticeName": "Prom notification test WeCom Chatbot"
}
],
"NotifyId": "b476ba3696525213f0c88033e56e8675_c1u82",
"NotifyTime": 1734497292,
"PolicyId": "alert-p8yurlq0",
"PolicyName": "Can it be received/aaaaa",
"PromeInstanceID": "prom-pysf4frm",
"PromeInstanceRegion": "ap-guangzhou",
"SessionId": "prom-pysf4frm_3ef6b8b216aa56e9",
"TriggerLevel": "Invalid",
"TriggerStatus": "Recovery",
"TriggerTime": 1734491764
}
],
"PageResult": {
"CurrentPageNo": 1,
"IsEnd": false,
"TotalCount": 19,
"TotalPage": 19
},
"RequestId": "efc734bb-1caa-4a4f-a159-97115b57125a"
}
}
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 |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback