tencent cloud

APIs

DescribeAlarmNotifyHistories

Download
Focus Mode
Font Size
Last updated: 2026-07-02 11:47:04

1. API Description

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.

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: 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

3. Output Parameters

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.

4. Example

Example1 Querying Prometheus Notification History

Input Example

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"
    }
}

Output Example

{
    "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"
    }
}

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
InternalError Internal error.
InvalidParameter Parameter error.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback