alarmHistoryPage
POST
/v2/openapi/alarm/alarmPageContains all warning information
Query the historical alarm records of the device, and the time interval for each query must be within 30 days;
The source of the alarmType comes from the 'alarmTypeList'
Request
Body Params application/json
pageSize
integer | null
optional
Default:
10
pageIndex
integer | null
optional
Default:
1
deviceIds
string | null
required
deviceIds split by ,
startTime
string | null
required
startTime ,UTC = 0 yyyy-MM-dd HH:mm:ss
The query interval must be less than 30 days
endTime
string | null
required
endTime ,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
Example
{
"pageSize": "10",
"pageIndex": "1",
"deviceIds": "string",
"startTime": "string",
"endTime": "string",
"alarmType": "string"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer | null
optional
data
object (PageResult«ApiReportAlarmVO»)
optional
records
array[object (ApiReportAlarmVO) {11}] | 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": ""
}
],
"total": 0,
"size": 0,
"current": 0
},
"msg": ""
}
Last modified: a month ago