文档
测试

设备监控

POST
http://192.168.1.88:8080/api/device_monitor/

请求头

参数名
类型
描述
必填
Authorization
string
示例:jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTk5MDE3MTQ0LCJlbWFpbCI6IiJ9.b7ck_L64UqV-e31vjouT4rsSKxnTiqeWBBWAQfu8Mgg
必填

请求参数

参数名
类型
描述
必填
language
cn
必填
area_id
0
必填
device_id
0
必填
page
1
必填
size
10
必填

响应参数

参数名
类型
描述
必填
current_page
int
示例:1
必填
next
string
示例:http://192.168.1.73:8080/api/device_monitor/?area_id=0&device_id=0&language=cn&page=2&size=10
必填
count
int
示例:18
必填
results
array
数据列表
必填
id
int
示例:1
必填
name
string
示例:A电表
必填
status_display
string
示例:正常运行
必填
position
string
示例:A栋/1楼/1楼东区
必填
point
string
示例:U,I,E
必填
desc
object
示例:null
必填
normal_count
int
示例:18
必填
offline_count
int
示例:0
必填
alias
string
示例:A电表
必填
use_peak_valley_plain
boolean
示例:false
必填
is_electricity_meter
boolean
示例:true
必填
previous
object
示例:null
必填
size
int
示例:10
必填
pages
int
示例:2
必填

说明 / 示例

# ****以下是响应内容示例**** { "current_page": 1, "next": "http://192.168.1.73:8080/api/device_monitor/?area_id=0&device_id=0&language=cn&page=2&size=10", "count": 18, "results": [ { "id": 1, "name": "A电表", "status_display": "正常运行", "position": "A栋/1楼/1楼东区", "point": "U,I,E", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "A电表", "use_peak_valley_plain": false, "is_electricity_meter": true }, { "id": 2, "name": "B电表", "status_display": "正常运行", "position": "A栋/1楼/1楼西区", "point": "U,I,E", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "B电表", "use_peak_valley_plain": false, "is_electricity_meter": true }, { "id": 3, "name": "A水表", "status_display": "正常运行", "position": "B栋/1楼/1楼东区", "point": "SF,LF", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "A水表", "use_peak_valley_plain": false, "is_electricity_meter": false }, { "id": 4, "name": "B水表", "status_display": "正常运行", "position": "B栋/1楼/1楼西区", "point": "SF,LF", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "B水表", "use_peak_valley_plain": false, "is_electricity_meter": false }, { "id": 5, "name": "C电表", "status_display": "正常运行", "position": "A栋/2楼/2楼东区", "point": "U,I,E", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "C电表", "use_peak_valley_plain": false, "is_electricity_meter": true }, { "id": 6, "name": "A气表", "status_display": "正常运行", "position": "E栋", "point": "SF,LF", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "A气表", "use_peak_valley_plain": false, "is_electricity_meter": false }, { "id": 7, "name": "D电表", "status_display": "正常运行", "position": "A栋/2楼/2楼西区", "point": "U,I,E", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "D电表", "use_peak_valley_plain": false, "is_electricity_meter": true }, { "id": 8, "name": "A热量表", "status_display": "正常运行", "position": "C栋", "point": "SF,LF", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "A热量表", "use_peak_valley_plain": false, "is_electricity_meter": false }, { "id": 9, "name": "A冷量表", "status_display": "正常运行", "position": "D栋", "point": "SF,LF", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "A冷量表", "use_peak_valley_plain": false, "is_electricity_meter": false }, { "id": 10, "name": "test电表1", "status_display": "正常运行", "position": "", "point": "", "desc": null, "normal_count": 18, "offline_count": 0, "alias": "test电表1", "use_peak_valley_plain": false, "is_electricity_meter": true } ], "previous": null, "size": 10, "pages": 2 }