object history.clear(array itemids)
此方法允许 clear 监控项 历史数据。
此方法仅对 管理员 和 超级管理员 用户类型可用。调用该方法的权限可以在用户角色设置中撤销。更多信息请参见 User roles。
(array)
要清除的 监控项 的 ID。
(object)
返回一个 object,其中包含在 itemids
属性下列出的已清除 监控项 的 ID。
执行请求:
响应:
```json
{
"jsonrpc": "2.0",
"result": {
"itemids": [
"10325",
"13205"
]
},
"id": 1
}
```
ui/include/classes/api/services/CHistory.php 中的 CHistory::clear()。