获取告警日志列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
alidns:ListCloudGtmAlertLogs |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Lang |
string |
否 |
返回信息的语言类型:
|
zh-CN |
| ActionType |
string |
否 |
告警类型:
|
ALERT |
| EntityType |
string |
否 |
告警对象:
|
GTM_ADDRESS |
| Keyword |
string |
否 |
搜索关键词,一般为地址 ID、地址池 ID、域名信息等。 |
pool-895280232254422016 |
| StartTimestamp |
integer |
是 |
查询的开始时间(时间戳)。 |
1611328826977 |
| EndTimestamp |
integer |
是 |
查询的结束时间(时间戳)。 |
1711328826977 |
| PageNumber |
integer |
是 |
当前页数,起始值为 1,默认为 1。 |
1 |
| PageSize |
integer |
是 |
分页查询时设置的每页行数,最大值 100,默认为 20。 |
20 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
唯一请求识别码。 |
536E9CAD-DB30-4647-AC87-AA5CC38C5382 |
| PageNumber |
integer |
当前页数,起始值为 1,默认为 1。 |
1 |
| PageSize |
integer |
分页查询时设置的每页行数,最大值 100,默认为 20。 |
20 |
| TotalPages |
integer |
总页数。 |
1 |
| TotalItems |
integer |
告警日志总条目数。 |
15 |
| Logs |
object |
||
| Log |
array<object> |
告警日志列表。 |
|
|
object |
告警日志信息。 |
||
| ActionType |
string |
告警类型:
|
ALERT |
| EntityType |
string |
告警对象:
|
GTM_ADDRESS |
| Content |
string |
告警内容。 |
"Pool name:华东\nType:IPv4\nReason: Normal health determination\nNumber of addresses in the pool : 2\nAbnormal address: --\nDetermination conditions : Any address in the addresspool is available address\nAffected domain names: www.cloud-example.com" |
| Timestamp |
integer |
告警日志时间(时间戳)。 |
1711328826977 |
示例
正常返回示例
JSON格式
{
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"PageNumber": 1,
"PageSize": 20,
"TotalPages": 1,
"TotalItems": 15,
"Logs": {
"Log": [
{
"ActionType": "ALERT",
"EntityType": "GTM_ADDRESS",
"Content": "\"Pool name:华东\\nType:IPv4\\nReason: Normal health determination\\nNumber of addresses in the pool : 2\\nAbnormal address: --\\nDetermination conditions : Any address in the addresspool is available address\\nAffected domain names: www.cloud-example.com\"",
"Timestamp": 1711328826977
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。