alarmPageByUser
POST
/v2/openapi/alarm/user/pageQuery the device history alarms of the currently logged in user by page. Interface data includes alarms of users and subordinate client devices to which they have authority.
Request
Body Params application/json
pageSize
integer | null
optional
Default:
10
pageIndex
integer | null
optional
Default:
1
start
string | null
required
Start time,UTC = 0 yyyy-MM-dd HH:mm:ss
The query interval must be less than 30 days
end
string | null
required
End time,UTC = 0 yyyy-MM-dd HH:mm:ss
The query interval must be less than 30 days
alarmType
string | null
optional
alarmType split by , can be empty,default all
source from alarmTypeList
alarmType:acc、accOff、accOff...
Example
{
"pageSize": "10",
"pageIndex": "1",
"start": "string",
"end": "string",
"alarmType": "string"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer | null
optional
data
object (PageResult«ApiReportAlarmByUserVO»)
optional
records
array[object (ApiReportAlarmByUserVO) {12}] | null
optional
total
integer | null
optional
size
integer | null
optional
current
integer | null
optional
msg
string | null
optional
Example
{
"code": 0,
"data": {
"records": [
{
"id": "",
"deviceName": "",
"deviceId": "",
"alarmTs": "",
"alarmTsEnd": "",
"alarmType": "",
"lat": 0,
"lon": 0,
"alarmText": 0,
"serialNo": "",
"fenceId": "",
"fileNum": 0
}
],
"total": 0,
"size": 0,
"current": 0
},
"msg": ""
}
Last modified: 1 个月前