提交 e973400e authored 作者: blu's avatar blu

feature: report status

上级 315735e2
...@@ -242,6 +242,7 @@ get value for specified key in cloud db. keys list is queried by /keys api ...@@ -242,6 +242,7 @@ get value for specified key in cloud db. keys list is queried by /keys api
e.g.: http://evcloud.ilabservice.cloud:8089/ipcstatus?sn=all e.g.: http://evcloud.ilabservice.cloud:8089/ipcstatus?sn=all
##### description ##### description
get status of ipc camera(s) get status of ipc camera(s)
```
if sn presents: if sn presents:
if sn == "all": if sn == "all":
ret with summary and detials for all ip cameras ret with summary and detials for all ip cameras
...@@ -249,13 +250,14 @@ if sn presents: ...@@ -249,13 +250,14 @@ if sn presents:
ret with summary and detail of the ipc camera labeled with sn ret with summary and detail of the ipc camera labeled with sn
else: else:
ret with summary info only. ret with summary info only.
```
##### params ##### params
sn: string, optinal. serial number of ip camera; "all" for all ipcs sn: string, optinal. serial number of ip camera; "all" for all ipcs
##### return ##### return
- type: json - type: json
- field data.summary.ok: array of ipc sn that has not any issue (current status is the same as expected). - field data.summary.ok: array of ipc sn that has not any issue (current status is the same as expected).
- field data.summary.problematic: array of ipc sn that has at least one issue (current status is different to expected). - field data.summary.problematic: array of ipc sn that has at least one issue (current status is different from expected).
- field data.detail: only presents when sn provided. the detail status of ipc specified with sn. - field data.detail: only presents when sn provided. the detail status of ipc specified with sn.
- ex1: no sn - ex1: no sn
``` ```
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论