영어 | 한국어 | 중국어 | 일본어

제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 시작 (버전=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 시리즈",
      "serial": "S19BNEAD300547Y",
      "fw_rev": "DXT07B0QSamsung SSD 840 시리즈",
      "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,
    },
     ...
  ]
}