lts__ListActiveOrHistoryAlarms
Queries active or historical Huawei Cloud LTS alarms with time-range, alarm-level, keyword, and pagination filters for monitoring and incident review.
Instructions
[LTS] 该接口用于查询告警列表
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain_id": "<domain_id>",
"project_id": "<project_id>",
"type": "<type>",
"whether_custom_field": "<whether_custom_field>"
},
"name": "lts__ListActiveOrHistoryAlarms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | 排序检索条件 | |
| step | No | 关键字检索条件 | |
| type | Yes | 是活动告警还是历史告警 | |
| limit | No | 每页数据量 | |
| marker | No | 取值为上一页数据的最后一条记录的id(填写上一页数据返回得previous_marker或者next_marker值。) | |
| search | No | 关键字检索条件 | |
| end_time | No | 自定义时间段结束时间(时间戳) | |
| domain_id | Yes | domainId | None |
| project_id | Yes | 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 | None |
| start_time | No | 自定义时间段开始时间(时间戳) | |
| time_range | No | 非自定义时间段时间范围(单位为分钟) | |
| alarm_level_ids | No | 告警级别("Critical","Major","Minor","Info") | |
| whether_custom_field | Yes | 是否自定义查询时间段 |