查询告警通知的历史发送列表。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListSendAlert | 接口名称。当前 API 的名称为 ListSendAlert 。 |
Version | String | 是 | 2018-01-01 | 接口版本。当前 API 的版本为 2018-01-01 。 |
AlertGroupId | String | 否 | 633508858e241506ac****** | 告警历史列表 ID。 |
PageNumber | Integer | 否 | 1 | 列表的页码,取值 > 0,默认值为1。要查询的列表范围为:
|
PageSize | Integer | 否 | 10 | 分页查询时每页的行数,默认值为 10。 |
POST https://open.volcengineapi.com?Action=ListSendAlert&Version=2018-01-01
Content-Type: application/json
{
"AlertGroupId": "633508858e241506ac******",
"PageNumber": 1,
"PageSize": 10
}
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Array of SendAlertVO | - | 返回数据。 |
TotalCount | Integer | 2 | 时间段内的告警记录总数。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Id | String | 63340e8f4f5b3bdee9b***** | 历史告警 ID。 |
SendAt | String | 2022-09-28T09:06:23.65Z | 历史告警发送时间。 |
SendResult | Array of SendResult | - | 历史告警的内容。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
ErrMsg | String | 错误消息。 | |
Success | Boolean | true | 告警消息发送结果。
|
Receiver | String | 63329d689e5b169425****** | 告警发送记录 ID。例如:当告警方式为邮件时,此参数为告警接收者的邮箱。 |
AlertMethod | String | API | 告警发送的通知方式。
|
{
"ResponseMetadata": {
"Action": "ListSendAlert",
"Region": "cn-beijing",
"Service": "volc_observe",
"Version": "2018-01-01",
"RequestId": "20230604110420****100232280022D31"
},
"Result": {
"Data": [
{
"Id": "63340e8f4f5b3bdee9b*****",
"SendAt": "2022-09-28T09:06:23.65Z",
"SendResult": [
{
"ErrMsg": "",
"Success": true,
"Receiver": "63329d689e5b169425******",
"AlertMethod": "API"
},
{
"ErrMsg": "",
"Success": true,
"Receiver": "abc@example.com",
"AlertMethod": "Email"
},
{
"ErrMsg": "",
"Success": true,
"Receiver": "1503875****",
"AlertMethod": "SMS"
}
]
}
],
"PageSize": 30,
"PageNumber": 1,
"TotalCount": 2
}
}
本接口无特有的错误码,更多信息请参见 错误码。