user.alert.ack.list
user.alert.ack.list 命令用于查找用户确认的用户警报。
TR50 请求
{
"1": {
"command": "user.alert.ack.list",
"params": {
"offset": 0,
"limit": 10
}
}
}
请求参数
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
| offset | 整数 | 用于分页的起始列表偏移量,如果未指定,则默认值为 0。 | |
| limit | 整数 |
限制返回的用户警报数量。可以设置的最大值为 2000.默认值为 2000。 |
TR50 响应
如果命令发送成功,将返回一条成功消息 <other details>。否则,将返回错误和错误消息。
{
"cmd": {
"success": true,
"params": {
"count": 42,
"result": [
{
"id": "52a1d3db169e1fd032179408",
"message": "",
"priority": 0,
"level": "normal",
"ackOnDismissal": false,
"ackMessage": "",
"ackButton": "",
"ts": "2023-07-01T12:34:56.789T",
"button": "button text",
"dismissal": true
}
]
}
}
}
结果参数
| 名称 | 类型 | 描述 |
|---|---|---|
| count | 整数 | 警报数量。 |
| alerts | 数组 |
警报记录的数组 |
警报记录参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | 字符串 | 警报的唯一标识符。 |
| message | 字符串 | 警报的消息。 |
| priority | 整数 | 警报的优先级。 |
| level | 字符串 | 警报的级别,可能的级别有:"normal"、"info"、"warning" 和 "critical"。 |
| ackOnDismissal | 布尔型 | 显示是否可以确认警报。 |
| ackMessage | 字符串 | 确认警报后会提供此消息。 |
| ackButton | 字符串 | 确认警报后会提供此按钮信息。 |
| ts | 字符串 | 确认此警报的时间戳。 |
| button | 字符串 | 确认时按下的按钮上的文本。 |
| dismissal | 布尔型 | 如果警报被解除(未按下确认按钮)。 |