| 英文 | 韩文 | 中文 | 日文 |
第5章 状态信息API
日志状态请求
Request
http://<address>:<port>/reqStatus?category=log[&startIdx=<idx>]
Response
{
"logs": [
{
"idx": 0,
"time": "2022-01-18T06:22:43.000Z",
"type": "SYSTEM",
"msg": "VMS Start (Version=1.0.3.3)"
},
...
]
}
存储状态请求
Request
http://<address>:<port>/reqStatus?category=storage
Response
{
"storage": [
{
"poolId": 1,
"channels": [1, 2, 3, 4,],
"info": [
{
"drive": "L:",
"minFreeSpaceMB": "100",
"diskTotalSpaceGB": "11",
"diskFreeSpaceGB": "3",
"timePartAStart": "2022-02-13T23:00:00.000Z",
"timePartAFinish": "2022-02-13T23:00:00.000Z",
"timePartBStart": "2022-02-14T01:00:00.000Z",
"timePartBFinish": "2022-02-15T07:00:00.000Z",
"isRecording": true
},
...
]
},
...
]}
· poolId: 归档文件为0,录像视频为1及以上。
HDD S.M.A.R.T. 状态请求
Request
http://<address>:<port>/reqStatus?category=smart
Response
{
"smart": [
{
"idx": 0,
"model": "Samsung SSD 840 Series",
"serial": "S19BNEAD300547Y",
"fw_rev": "DXT07B0QSamsung SSD 840 Series",
"cache": 0,
"buffer": 0,
"drives": "C:,E:",
"status": [
{
"id": 5,
"name": "重映射扇区计数",
"isCritical": true,
"value": 100,
"worst": 100,
"attribValue": 0,
"threshold": 10
},
...
]
},
...
]}
线程状态请求
Request
http://<address>:<port>/reqStatus?category=threads
Response
{
"threads": [
{
"section": "System",
"threads": [
{
"title": "Init",
"active": 0,
"total": 0
},
...
]
},
...
]
}
内存状态请求
Request
http://<address>:<port>/?category=memory[&startIdx=<idx>]
Response
{
"memory": [
{
"idx": 0,
"time": "2022-01-18T06:22:45.000Z",
"memoryUsageMB": 107,
},
...
]
}

